Snake Rewind: Building a Retro Snake Game in C with Raylib

Follow along as we rebuild the classic Snake game but with a retro twist. In this series we're coding Snake Rewind from scratch in C using Raylib, layering on everything from pixel perfect visuals to clone enemies, cinematic shaders and juicy arcade feedback.

Curated by: Let's Reinvent the Wheel (8 videos)


Currently Playing: Snake Ends Here: Game Over & Restart Logic [Snake Rewind Ep 5]

๐Ÿ’€ 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: https://www.youtube.com/playlist?list=PLI7p1zrAYQeUb67kPtsyduLk1aJChzIQZ ๐Ÿ“– Companion Blog Post: https://letsreinventthewheel.github.io/blog/snake-rewind-ep5/ ๐Ÿง  Source code: https://github.com/letsreinventthewheel/snake-rewind 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


Tracks in this Playlist