Robotic Rabbit Fortune-teller (the game)

EG
1 min readJul 9, 2020

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!

--

--