Cosmic Escape is an exciting space-themed mini game where players control a ship, dodging incoming meteors while racking up points. Built for the ESP8266 microcontroller, this game showcases the power of embedded programming and real-time graphics on a 128x64 LCD display. Now with space-themed background music!
- Simple Controls: Move your ship left and right using two buttons.
- Challenging Gameplay: Avoid meteors that fall from the top of the screen and try to survive as long as possible.
- Scoring System: Increase your score by letting meteors pass without collision. Score resets if you hit a meteor!
- Graphics: Beautifully rendered graphics on a 128x64 pixel display using the U8g2 library.
- Space Music: Background music plays while you dodge meteors, adding to the space atmosphere.
To run this project, you will need the following hardware:
- ESP8266 Microcontroller: A Wi-Fi enabled microcontroller that allows for easy programming and integration with various components (other microcontrollers can work with proper connections).
- 128x64 LCD Display: A graphical display to show the game interface.
- Two Push Buttons: For controlling the movement of the ship (left and right).
- Connecting Wires: To connect the display and buttons to the ESP8266.
- Clone this repository to your local machine.
- Open the project in your Arduino IDE.
- Make sure you have the U8g2 library installed. You can install it through the Arduino Library Manager.
- Connect the hardware as specified in the code.
- Upload the code to your microcontroller.
- Enjoy dodging meteors in space, now with background music!
- Use the left button to move your ship left.
- Use the right button to move your ship right.
- Avoid the falling meteors to keep your score going and stay in the game.
This project is open-source and available under the MIT License.
Thanks to the open-source community for the libraries and resources that made this project possible!