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.