🐍 In Episode 4 of Snake Rewind your past becomes your enemy.
This episode introduces one of the most unique mechanics in the series: clone snakes that retrace your exact path with deadly precision. Every time you eat food, a new clone spawns and your own movement history becomes a trap waiting to happen.
🎮 What we cover:
Recording the player's movement path
Spawning clone snakes that replay that path
Using `player_path_idx` to time clone movement
Shrinking clones over time (and removing them) as the player eats food
This is the turning point: Snake Rewind is no longer a remake; it's a retro arcade survival game with real spatial strategy.
📺 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:16 Episode goals
00:37 Saving player's path
02:25 Introducing SnakeClone
03:43 Spawning snake clone
07:30 Displaying the clones
10:00 Making clones move
13:34 Drawing player and clone overlap
17:25 Reduce clone size when food is consumed
#programming #cprogramming #coding #gamedev #raylib