Skip to content

Latest commit

 

History

59 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 COIN CRUSADE: KNIGHT'S QUEST

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.

🧠 Dynamic Difficulty Generators

The game features four unique AI-based difficulty generators, each offering a different experience:

🔹 Linear Generator

  • The difficulty increases progressively over time, independent of the player's performance.

🔹 Hamlet System

  • Difficulty adapts dynamically based on the player's performance in each section of the game.
  • Inspired by Stock Theory.

🔹 Neural Network Generator

  • Adjusts gameplay difficulty using data collected during your runs, analyzed through a neural network.

🔹 Reinforcement Learning Generator

  • Uses reinforcement learning to optimize challenges as you play.
  • The longer you play, the smarter the game becomes at estimating your skill level.

🕹️ Controls

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.


⚙️ Game Settings

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.

🛠️ Built With

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.

🚀 Installation & Setup

  1. Clone the repository:
git clone <repository-url>
cd coin-crusade-knights-quest
  1. Install dependencies using pnpm:
pnpm install
  1. Run the development server:
pnpm dev
  1. Open the game in your browser:
http://localhost:8080

✉️ Contact

Found a bug or have a suggestion? Let us know!

I'd love to hear your ideas for improvements or new features. Happy gaming! 🎉


About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages