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)
🍎 In Episode 3 of *Snake Rewind* we make the game come alive by adding food, growth and the beginnings of a gameplay loop! 🎮 What we cover: - Spawning food randomly across the tile grid - Ensuring food does not overlap with the snake - Detecting when the player eats food - Growing the snake by extending its length - Laying the groundwork for clone snakes in the next episode We also touch on game feedback, dynamic state changes and how even a small mechanic like "eating" gives the game a heartbeat. 📺 Full Snake Rewind Series Playlist: https://www.youtube.com/playlist?list=PLI7p1zrAYQeUb67kPtsyduLk1aJChzIQZ 📖 Companion Blog Post: https://letsreinventthewheel.github.io/blog/snake-rewind-ep3/ 🧠 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:25 Marking tiles as visited 02:30 Introducing Food struct 03:45 InitFood 08:30 Drawing food on the grid 09:27 Fixing food spawning 10:15 Food collision (eating food) 11:51 Growing our snake 13:51 Fixing subtle food spawning issue #programming #coding #cprogramming #gamedev #raylib