Collecting Treasure Game is a simple and addictive browser-based game where you control a runner to collect valuable treasures while avoiding obstacles. The goal is to grab as many treasures (cash, jewels, diamonds, etc.) as possible before the game ends!
- Jump, run, and collect different treasures (like cash, diamonds, jewels).
- Avoid obstacles and survive as long as you can.
- The game gets more fun the longer you play!
🎯 The game is easy to play, engaging, and designed for quick casual play sessions.
| File / Asset | Description |
|---|---|
index.html |
Main HTML file — game container |
sketch.js |
Game logic using the p5.js framework |
style.css |
Styles for UI and layout |
p5.js, p5.play.js |
Libraries for rendering & gameplay |
p5.sound.min.js |
Sound support for effects |
*.png asset files |
Sprites for runner, treasure, obstacles, etc. |
This project uses p5.js and p5.play.js to handle:
- Sprite creation & animation
- Player movement and controls
- Treasure and obstacle spawning
- Collision detection and scoring
The player moves across the scene, collecting treasures and avoiding hazards. Each collectible increases your score and keeps the game engaging.