An Endless 2D Runner Game
Conquer obstacles, collect coins, and adapt to AI-driven challenges in this unique endless-runner experience.
Choose from four intelligent difficulty generators that shape the gameplay dynamically.
In COIN CRUSADE: KNIGHT'S QUEST, players take on the role of a brave knight navigating an endless world filled with AI-generated obstacles and challenges. Your objective is to run, jump, and collect coins while the game intelligently adjusts its difficulty based on your gameplay.
The game features four unique AI-based difficulty generators, each offering a different experience:
- The difficulty increases progressively over time, independent of the player's performance.
- Difficulty adapts dynamically based on the player's performance in each section of the game.
- Inspired by Stock Theory.
- Adjusts gameplay difficulty using data collected during your runs, analyzed through a neural network.
- Uses reinforcement learning to optimize challenges as you play.
- The longer you play, the smarter the game becomes at estimating your skill level.
Master the controls to succeed on your quest:
-
Move Right: Press the Right Arrow to accelerate forward.
right_movement.mp4
-
Move Left: Press the Left Arrow to accelerate backward.
left_movement.mp4
-
Power Jump: Hold Up Arrow or Space Bar to jump.
The longer you hold, the higher you jump.jumping.mp4
Tip: Plan your jumps carefully! A new jump cannot start until the previous one finishes.
Customize the game experience with configurable settings:
| Setting | Description |
|---|---|
| Heal Rate | Time in seconds before a player's life regenerates. |
| Base Time | Starting time credited to the player. |
| Max Player Lives | Maximum number of lives a player can have. |
| Immortality Duration | Duration of post-hit immortality (in milliseconds). |
| Coin Time Bonus | Time added after collecting a specific number of coins. |
⚠️ Warning: Modifying default settings may affect gameplay balance.
The project leverages cutting-edge technologies to deliver a smooth and intelligent gaming experience:
- TypeScript: Ensuring clean, maintainable, and type-safe code.
- Phaser.js: A powerful HTML5 game development framework for 2D games.
- Next.js: Building a responsive and interactive game interface.
- AI Algorithms: For adaptive difficulty adjustments:
- Neural Networks
- Reinforcement Learning
- Adaptive Heuristics
- PNPM: For efficient dependency management.
- HTML5 Canvas: Rendering 2D graphics with optimal performance.
- CSS: Styling the game components beautifully.
- Clone the repository:
git clone <repository-url>
cd coin-crusade-knights-quest- Install dependencies using pnpm:
pnpm install- Run the development server:
pnpm dev- Open the game in your browser:
http://localhost:8080Found a bug or have a suggestion? Let us know!
- Email: lukasbriza@seznam.cz
- GitHub: Source Code
I'd love to hear your ideas for improvements or new features. Happy gaming! 🎉