Robotic Rabbit Fortune-teller (the game)

Inspiration

This is a Robotic Rabbit that my nephew made for me. I took it with me to NY and decided to turn this creature into a p5.js sketch.

More specifically — a game.

PLEASE CLICK HERE TO SEE THE SKETCH AND THE CODE

The rules are easy — you try to catch a Rabbit and get a personal future forecast/recommendation as a reward.

You should hold a mouse to read a forecast ’cause after you release a mouse it vanishes into eternity.

As for the code — I used objects (blinking stars and hiding Rabbits) for it was the focus for this week, along with arrays for the predictions, loops, mousePressed(), and random() functions.

Small demo:

Hope you enjoy it!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store