developing 2D shooter with html5 canvas