Inspiration

The basis of the Snake game reminded me a lot of the picture book "The Very Hungry Caterpillar" with a long creature crawling around, consuming foods.

What it does

Presently, the game is functions like the original Snake game with some aesthetics changed to match the scenes from the picture book.

How I built it

I sourced the base code from "The Coding Train" on YouTube. I edited and added onto the code on the p5.js web editor.

Challenges I ran into

The 'game over' screen was surprisingly tricky. It took a while to figure out how to get the text sized and placed where I wanted it to be. Creating a function to choose a random color for the fruits was also a bit tricky, but I was eventually able to find my way around it.

Accomplishments that I'm proud of

I stepped out of my comfort zone by trying to create a project that wasn't in a language I had previous experience in.

What I learned

I think I was able to get a surface understanding of JavaScript syntax and how functions/objects interact.

What's next for The Very Hungry Caterpillar

  • add special 'bonus' fruit that awards bonus points that only appears on screen for lifted amount of time
  • replace generic circle shapes with custom .png's (would this slow down the program though?)

Built With

Share this project:

Updates