A simple infinite runner game inspired by the classic Chrome Dino game, built using the p5.js library.
This project is a browser-based game where the player controls a T-Rex that runs continuously. The objective is to avoid obstacles (cacti) by jumping over them. The game speeds up as the score increases, making it progressively more challenging.
- Start the Game: Open
index.htmlin your web browser. - Jump: Press the Spacebar to make the T-Rex jump.
- Avoid Obstacles: Jump over the incoming obstacles to keep running.
- Game Over: If the T-Rex hits an obstacle, the game ends.
- Restart: Click the restart icon on the screen to play again.
- Infinite Runner: The game continues until the player hits an obstacle.
- Score Tracking: Score increases as you progress.
- Dynamic Speed: The game speed increases as your score goes up.
- Randomized Obstacles: Different types of obstacles appear randomly.
- Game States: Includes Play and End states with a Game Over screen.
- p5.js: A JavaScript library for creative coding.
- p5.play: A library for game interactions and sprites.
- HTML/CSS: For structure and styling.
To run this game locally:
- Clone or download this repository.
- Open the
index.htmlfile in any modern web browser.
- Images and assets used in this game are part of the project resources.
- Built with p5.js.