The Gravity Simulation Game is a 2D space-themed game developed in Python using the Pygame library. In this game, the player controls a spaceship that can be navigated using arrow keys or WASD. The objective is to reach a specific destination while avoiding collisions with celestial bodies that exert gravitational forces on the spaceship.
- Navigate the spaceship using arrow keys or WASD to control movement.
- Experience realistic gravitational effects from celestial bodies on the spaceship's trajectory.
- Multiple levels with increasing difficulty, each with different celestial bodies and positions.
- Fuel management: The spaceship consumes fuel while moving, and you need to collect fuel power-ups to refill it.
- Score and Timer: Try to reach the destination in the shortest time to achieve a higher score.
- Thrusters Animation: Animated thrusters give a visual representation of propulsion while controlling the spaceship.
- Sound Effects: Enjoy sound effects for spaceship movement, collisions, and other interactions.
- Gravity Indicator: Get a visual indicator of the direction and strength of gravitational forces from nearby celestial bodies.
- Background Music: Engage in the game with a background music track.
- Install Python and Pygame.
- Clone this repository to your local machine.
- Run the game using the command:
python gravity_simulation_game.py
. - Use arrow keys or WASD to control the spaceship's movement.
- Avoid collisions with celestial bodies by navigating carefully.
- Collect fuel power-ups to replenish your fuel tank.
- Reach the destination to progress to the next level.
- Python 3.x
- Pygame
Enjoy the game and have fun exploring space!