Skip to content

An endless runner game with RPG elements — jump, collect coins, fight enemies, and trade with merchants!

License

Notifications You must be signed in to change notification settings

imshota1009/PixelRPGRun

Repository files navigation

Dino RPG Runner 🦖✨

A simple JavaScript endless runner game inspired by Chrome’s dino game, enhanced with RPG elements!

HTML5 CSS3 JavaScript Tailwind CSS


🎮 About The Game

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.

Push-up Counter Screenshot

✨ Features

  • 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.

🎮 How To Play

  1. Start: Click the Start button or press the space key to begin.
  2. Jump: Use the space key or tap the screen to leap over obstacles.
  3. Objective:
    • Avoid brown rocks (obstacles) — hitting them ends the game.
    • Collect yellow coins.
    • Defeat red enemies automatically with your character’s attacks.
  4. Merchant Trading:
    • Every 1000 points, a merchant will appear.
    • Use coins to purchase items and make your run easier.

🛠️ Technologies Used

  • HTML5 – Game structure
  • CSS3 (Tailwind CSS) – UI & styling
  • JavaScript (ES6+) – Core game logic

🚀 Setup

To run this game locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/YOUR_USERNAME/dino-rpg-runner.git
  2. Move into the project directory:
    cd dino-rpg-runner
  3. Open the index.html file 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.js
  • dino_player.png (player sprite)
  • merchant1.png (merchant 1 sprite)
  • merchant2.png (merchant 2 sprite)
  • background_music.mp3 (BGM file)

📜 License

This project is licensed under the MIT License.

About

An endless runner game with RPG elements — jump, collect coins, fight enemies, and trade with merchants!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published