|
| 1 | +# Dino Game |
| 2 | + |
| 3 | +## Description |
| 4 | + |
| 5 | +Dino Game is a simple yet addictive game built using Python and Pygame library. It's inspired by the classic Chrome Dinosaur game, where the player controls a dinosaur that must jump over obstacles to survive. The game features a dinosaur character, cactus obstacles, and a score system. I have created a simple clone of the game. Feel free to look through the code and run it. |
| 6 | + |
| 7 | +## Features |
| 8 | + |
| 9 | +- Control a dinosaur character to jump over obstacles. |
| 10 | +- Dodge incoming cactus obstacles to survive. |
| 11 | +- Track and display the player's score as they progress through the game. |
| 12 | +- Simple controls: Press the spacebar to make the dinosaur jump. |
| 13 | +- Press Enter to restart the game after a game over. |
| 14 | + |
| 15 | +## Installation |
| 16 | + |
| 17 | +1. Ensure you have Python installed on your system. You can download it from [python.org](https://www.python.org/). |
| 18 | +2. Clone this repository to your local machine: |
| 19 | + |
| 20 | +``` |
| 21 | +git clone https://github.com/sahilrw/dino |
| 22 | +``` |
| 23 | + |
| 24 | +3. Navigate to the project directory: |
| 25 | + |
| 26 | +``` |
| 27 | +cd dino-game |
| 28 | +``` |
| 29 | + |
| 30 | +4. Install the required dependencies using pip: |
| 31 | + |
| 32 | +``` |
| 33 | +pip install pygame |
| 34 | +``` |
| 35 | + |
| 36 | +## Usage |
| 37 | + |
| 38 | +1. Run the game by executing the following command: |
| 39 | + |
| 40 | +``` |
| 41 | +python dino.py |
| 42 | +``` |
| 43 | + |
| 44 | +2. Use the spacebar to make the dinosaur jump over obstacles. |
| 45 | +3. Avoid colliding with cactus obstacles to keep the game going. |
| 46 | +4. Your score will increase as you progress. Try to beat your high score! |
| 47 | +5. If the dinosaur collides with an obstacle, the game will end. Press Enter to restart and play again. |
| 48 | + |
| 49 | +## Screenshots |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | +## Credits |
| 55 | + |
| 56 | +- This game was created by Sahil Wankhade. |
0 commit comments