RayLib 2D Challenge Part 11 - Collecting Coins (a.k.a., Making Objects Interact in the Game World)

6 months ago
3

Part 10 of the RayLib 2D Challenge ended with shiny coins beautifully animated using a texture atlas. Poor Scarfy, though. He couldn't collect the coins because the collection code hadn't been written yet. All he could do was push the coins around, and off a cliff.

In this episode we add the missing coin collection code, complete with a satisfying "clink" sound. We also add a display overlay, so that we can count all our cash. Clink, clink, clink!

Click the following link for a summary, and to download the code:
https://keasigmadelta.com/blog/raylib-2d-challenge-part-11-collecting-coins-a-k-a-making-objects-interact-in-the-game-world

Loading comments...