Skip to content

humbleCapybara/DapperDasher

Repository files navigation

🎩 Dapper Dasher

Dapper Dasher is a 2D side-scrolling runner game inspired by the classic Google Dino Game — but with more style, animations, and sound! Built in C++ using the raylib library, it’s a fun and fast-paced project showcasing animation handling, collision detection, and simple physics.

🕹 Features

-> Animated main character (Scarfy) with smooth running and jumping
-> Multiple obstacles (Nebulae) with animated sprites
-> Parallax scrolling background layers for depth and immersion
-> Gravity and jump physics for realistic motion
-> Victory and loss conditions with replay options
-> Integrated sound effects and background music

⚙️ Technical Highlights

-> Uses a custom AnimData struct to manage animations
-> Frame-based update logic running at 60 FPS
-> Efficient collision detection using rectangle overlap checks
-> Randomized obstacle placement for varied runs
-> Audio management with jump, victory, and loss sounds
-> Clean resource management (textures, sounds, music)

💾 How to Run

1️⃣ Clone the repository:

git clone https://github.com/your-username/dapper-dasher.git

2️⃣ Make sure you have raylib installed.

You can install it via your package manager or build from source:
https://github.com/raysan5/raylib

3️⃣ Compile the code (example using g++):

g++ main.cpp -o dapper-dasher -lraylib -lm -ldl -lpthread -lGL -lrt -lX11

4️⃣ Run the game:

./dapper-dasher

🎶 Assets & Credits

Textures: Scarfy and Nebula sprite sheets (from raylib examples)
Sounds: Custom jump, victory, and loss sound effects
Background Music: Looping track for atmosphere

🚀 Future Improvements

-> Add power-ups and bonuses
-> Introduce multiple levels or biomes
-> High score tracking and leaderboard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published