Week 2: Kill the Bugs in P5.js


This week I coded a small game called “Kill the Bugs” using P5.js.

A dozen of flies are randomly mapped onto the computer screen each time when the program is refreshed. Those flies randomly shivers and moves around, while slowly straying away from the edge of the frame. The goal is to kill as many files as possible before they get away.


There are currently two separate versions of the code: the first version shows the cursor, and leaves a stain and dead body of the fly when it is killed; the second version shows the right hand, and the fly disappears when it is clicked on.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s