Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.74 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.74 KB

👾 COSMIC DODGE 👾 - README

This is a space game created using Java, mainly using the java.awt and java.swing libraries. In this game, the player controls an alien that moves around in the game window. The objective is to dodge the randomly generated asteroids to survive as long as possible. The game ends when a collision between the alien and asteroid is detected.

swappy-20230603_195042

Getting Started

To run the game, you will need to have Java 8 or higher installed on your computer.

  1. Download the source code from the repository and cd to Cosmic-Dodge/src
  2. Compile the code using
javac CosmicDodge.java
  1. Run the game using
java CosmicDodge

OR

You can just download the Cosmic-Dodge.jar executable jar file and run it.

How to Play

  1. Use the arrow keys to control the movement of the alien.
  2. Dodge the randomly generated asteroids to avoid collision.
  3. The game ends when a collision is detected between the alien and an asteroid.

swappy-20230603_170508

Link to Replit

You can also play this game on Replit without having to clone the repository or downloading the jar file. Just follow this link : Cosmic-Dodge. (Just make sure to go full-screen before you run the repl). Do like the repl if you liked the game! 😉

Contributing

Contributions to the game are welcome. If you find a bug, have a suggestion or an improvement, please feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.