Downfall is a brower-based game written in
HTML5 Canvas. It also
easel.js library, as well as my own custom game framework.
As the title suggests, players will fall continuously through randomly-generated, vertical levels. Players can land on platforms--some of which are destructible--and must avoid enemies. Or shoot them with their awesome laser gun.
Som fun DownFall features include:
- Local high scores stored in a cookie
- Fluid gravity (and cape) physics, all made from scratch
- Recursively-generated random block structures, created via a PolyTree
- Dynamically-increasing difficulty: the deeper the player goes, the harder the game gets
All sprite models inherit from a model class, which wraps around
sprite class, and provides many commonly-used helper functions.
These models are then housed inside of a
modelList, which then updates its
contents once per screen tick. Doing this allows me to completely separate all
model-interaction logic cleanly and simply.