The classic Snake with a twist

I had the idea for this minigame a long time ago, when I played Yoshi Island on my cousin’s Gameboy Advanced. I finally have a chance to do it.


  • Arrow keys to move the character.

  • SPACE bar to pause.

  • ENTER to restart the game.


The character shown in this game is owned by Nintendo, it was used for learning pruposes only and if requested I will remove it.

This game was coded initially following this coding challenge by Dan Shiffman, I coded it in Processing first then refactored with p5.js and significatly changed parts of the algorithm as implemented by Shiffman. The source code is available here, inside the snake subfolder.