2020, p5.js



I made this game about hrt access barriers while I was learning to code and waiting for T. The obstacles don’t reveal themselves until the character has been unable to avoid them, so the player must navigate without knowing the consequences of each move. 










I used classes and objects to code the character and created an array of objects to sequence the blocks falling. To avoid crashing the browser, I created a fall() function to detect whether the blocks were still visible on the canvas and splice them once they were off screen. I used the switch() function to change between scenes, coding both the collision messages and levels in scene() functions and calling those in the draw loop. The background music is audio I used from a file my friends and I made in Ableton in our high school computer lab.