elijah seed-arita @elij.dev · Oct 7

1 likes 1 replies

?

Replies

elijah seed-arita · Oct 7

Cool, now the screen gets cleared. Lastly, to make this a "game", let's add some basic controls. Instead of blindly incrementing x and y every frame, let's do it if keys are pressed down. We can add keydown and keyup listeners and toggle some booleans.