developing 2D shooter using html5 canvas