Skip to content

ThreadPlay - a multithreaded Java game library featuring classic games like Tic-Tac-Toe, Flappy Bird, Ping Pong, and Pacman. Leveraging Swing, AWT, and Java Sound

License

Notifications You must be signed in to change notification settings

Kunal-Sobti/Gaming-Library

 
 

Repository files navigation

ThreadPlay: A Java Game Library

ThreadPlay is a versatile and interactive game library written entirely in Java, featuring four classic games: Tic-Tac-Toe, Flappy Bird, Ping Pong, and Pacman. Designed with a focus on multithreading, ThreadPlay allows users to enjoy multiple games simultaneously, delivering a seamless and engaging experience.

Key Features

  • Game Selection Interface: Easily choose and launch any game from the intuitive interface.
  • Multithreading Support: Play multiple games at the same time without performance hiccups.
  • Classic Game Collection:
    • Tic-Tac-Toe: A timeless strategy game for two players.
    • Flappy Bird: A reflex-based endless flier.
    • Ping Pong: An arcade-style classic for quick matches.
    • Pacman: A maze-chase game that revives nostalgic fun.
  • Efficient Performance: Built using optimized data structures, algorithms, and thread management.
  • Immersive GUI and Sound: Created with Swing, AWT, and Java Sound for a rich gaming experience.

Technical Highlights

  • Java Libraries Used:
    • Swing and AWT: For GUI design.
    • Javax Sound: For audio effects and background music.
    • Threading: To support simultaneous game execution.
  • OOP Principles: Modular, reusable, and maintainable code.
  • Game Logic: Carefully implemented using efficient algorithms and data structures.

How to Play?

  1. Download GameLibrary.jar
  2. enjoy :)

game Interface

Games Available:

1. Flappy Bird

Alt text

Controls: Space-bar

2. Ping Pong

Alt text

Controls: W/S KEY and UP/DOWN ARROW KEYS

3. Pac-Man

Alt text

Controls: UP/DOWN/LEFT/RIGHT ARROW KEYS and Space-bar to RESET

4. Tic-Tac-Toe

Alt text

More games coming soon..

Games

About

ThreadPlay - a multithreaded Java game library featuring classic games like Tic-Tac-Toe, Flappy Bird, Ping Pong, and Pacman. Leveraging Swing, AWT, and Java Sound

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%