https://github.com/sumitst05/cosmic-dodge
A mini dodge to survive type Space Game written in Java using java.awt and java.swing
https://github.com/sumitst05/cosmic-dodge
Last synced: 12 months ago
JSON representation
A mini dodge to survive type Space Game written in Java using java.awt and java.swing
- Host: GitHub
- URL: https://github.com/sumitst05/cosmic-dodge
- Owner: sumitst05
- License: mit
- Created: 2023-02-04T10:44:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T10:17:36.000Z (about 3 years ago)
- Last Synced: 2025-04-23T02:16:20.427Z (over 1 year ago)
- Language: Java
- Size: 181 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 👾 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.

## 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
```bash
javac CosmicDodge.java
```
3. Run the game using
```bash
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.

## 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](https://replit.com/@sumitst05/Cosmic-Dodge?v=1). (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](LICENSE).