Intermediate Game Mechanics
HTML Engine
Press the “draw” button and put your caps lock on to test the basic controls
W = Up
S = Down
A = Left
D = Right
Space Bar = Shoot in direction of mouse
One Grey box represents the player, which can’t move through the other grey box (enemy)
Mouse over the rectangle above, and get the coordinates of your mouse pointer.
CHECK
button