elijah seed-arita @elij.dev · 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.

3 likes 1 replies

?

Replies

elijah seed-arita · Oct 7

That's it. Here's the final product. You have a player that can move around. This is a very basic game, but I hope it gets your imagination running. I plan to continue this series with a lot more info. What medium would people prefer? Video, blog, or continuing like this?