A simple JavaScript endless runner game inspired by Chrome’s dino game, enhanced with RPG elements!
Dino RPG Runner is an original game based on the classic dino runner, but with added RPG elements such as coin collection, auto battles, and merchant trading.
Jump over obstacles and see how far you can push your score!
As you reach certain score milestones, unique merchants will appear randomly, allowing you to spend coins on items that help you progress further.
- Simple Controls: Jump with the space key or screen tap.
- RPG Elements: Auto battles with enemies, coin collection, and a scoring system.
- Random Merchants: Two types of merchants appear randomly every 1000 points.
- Power-up Items:
- Shield – Prevents one collision with an obstacle.
- Score Boost – Doubles points gained when defeating enemies.
- Progressive Difficulty: Game speed increases as your score rises.
- BGM & Mute Option: Background music with toggle support.
- Start: Click the
Startbutton or press the space key to begin. - Jump: Use the space key or tap the screen to leap over obstacles.
- Objective:
- Avoid brown rocks (obstacles) — hitting them ends the game.
- Collect yellow coins.
- Defeat red enemies automatically with your character’s attacks.
- Merchant Trading:
- Every 1000 points, a merchant will appear.
- Use coins to purchase items and make your run easier.
- HTML5 – Game structure
- CSS3 (Tailwind CSS) – UI & styling
- JavaScript (ES6+) – Core game logic
To run this game locally, follow these steps:
- Clone the repository:
git clone https://github.com/YOUR_USERNAME/dino-rpg-runner.git
- Move into the project directory:
cd dino-rpg-runner - Open the
index.htmlfile in your browser.
Note: Make sure the following files are in the same directory as index.html for the game to display and function properly:
game.jsdino_player.png(player sprite)merchant1.png(merchant 1 sprite)merchant2.png(merchant 2 sprite)background_music.mp3(BGM file)
This project is licensed under the MIT License.