Skip to content

42-Course/dino_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 Dino Color Game (WASM Edition)

An interactive color-matching game built in C, rendered via WebAssembly, and playable directly in the browser. The player adjusts RGB sliders to match a target circle color.

Screenshot from 2025-06-25 14-42-04


🕹️ Gameplay

Objective: Match the inner circle's color to the outer circle using RGB sliders.

Rules (displayed in-game):

  • Use keys to adjust red, green, and blue values.
  • Try to make both circles visually match.
  • Submit your guess and see if you're right!

🧱 Built With

  • C – core game logic and rendering
  • Emscripten – compiles C code to WebAssembly
  • HTML/CSS – styled interface and deployment layer
  • WebGL (via MLX-like API) – graphical rendering backend

📦 Folder Structure

├── demo.html       # Full game HTML page
├── embed.html      # Minimal canvas-only version for embedding
├── demo.js         # Emscripten JS glue code
├── demo.wasm       # Compiled WebAssembly binary
├── demo.data       # (optional) game assets
├── README.md

📎 Embedding

Use this <iframe> to embed the game anywhere:

<iframe 
  src="https://42-course.github.io/dino_game/embed.html"
  width="800" 
  height="600" 
  style="border: none; border-radius: 10px; box-shadow: 0 0 20px rgba(0,255,180,0.3);"
  loading="lazy">
</iframe>

📃 License

Just don't take the credit for creating the game, if you mention me it's awesome!


About

MLX42 based game, published with WebAssembly via emscripten

Topics

Resources

Stars

Watchers

Forks

Languages