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!

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Why and How to Lint like a PRO

Creating a cheap high-availability deployment for Meteor

How to add fontawesome icons to Vuejs

Android Architecture Components: LiveData

Using ReCaptcha V3 and Laravel in 2020

D3.js in Action, Second Edition

Why you should use JavaScript for your technical interviews

Getting Started with NodeJS

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
EG

EG

More from Medium

DØ CHEF DØ Drops Hot New Release Nostalgic EP ‘Reunion’

Ledger Guide: Protect Your DAWs!

Ardor Projects’ Events Calendar, Feb 3rd week

EvidenZ — PICS