A 2D flying game engine in Javascript canvas