A little framework for creating a platformer character with javascript