💀 In Episode 5 of Snake Rewind the game gets serious.
We complete the core gameplay loop by adding collision detection*, *game over logic and a clean *restart game system*.
🎮 What we cover:
Detecting self collision and clone collisions
Freezing player input and showing a game over message
Letting clones keep moving after you die (for style)
Adding a restart prompt and resetting the game cleanly
Game Over overlay animation (scale and shake)
Now every food pickup brings risk. Every past movement is a possible trap.
📺 Full Snake Rewind Series Playlist: • Snake Rewind: Building a Retro Snake Game ...
📖 Companion Blog Post: https://letsreinventthewheel.github.i...
🧠 Source code: https://github.com/letsreinventthewhe...
Snake Rewind isn't just a remake. It is Snake with a twist:
🐍 Clone snakes that retrace your path
✨ Retro shaders: bloom, scanlines, chromasep
🎮 Reactive UI, game feel, and juicy feedback
🎧 Music and SFX polish (hopefully we can find free sounds)
💬 Got questions? Drop a comment.
👍 Like what you see? Hit the like button.
📌 Want more projects like this? Subscribe and stay tuned...
00:00 Previous episode recap
00:10 Episode goals
00:22 Adding game_over flag
02:03 Collision detection
05:58 Fix game crash due to game_over mechanics
07:49 Fix tile display issue (many enemies with player on the same tile)
10:18 Restarting the game
12:00 GameOver overlay
14:29 Getting arcade font
14:55 Loading the font
15:50 Reposition Game Over overlay text
20:27 Fade out tile grid behind Game Over overlay
21:32 ScaleEffect for Game Over overlay
31:48 ShakeEffect for Game Over overlay
#coding #gamedev #programming #raylib #cprogramming