Skip to content

ANSHIKATYAGI30/CollectingTreasureGame

Repository files navigation

🏆 Collecting Treasure Game

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!


🎮 Gameplay

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


🗃️ Repository Contents

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.

🚀 How It Works

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.


About

This game is quite easy to play and at the same time it's interesting. I would like to share my creation with you'll and I'll be happy if you'll try playing this at least once! You'll be addicted to it! I personally loved this game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors