Yep that’s right while learning to code TypeScript to keep me sharp I have made my first version of an Asteroids Clone that you can try out HERE.
[Left Arrow]: Turn Left
[Right Arrow]: Turn Right
[Up Arrow]: Thrust, be careful!
[Down Arrow]: Reverse Thrust, be even more careful!
[H] Hyper Space, don’t try this at home!
[S]: Start new game
I have learned a lot about TypeScript and had a lot of fun recapping Vector math and reading about the mechanics of the classic game. There is a lot of sites on the web that talks about this old Classic.
Still need to do a lot yet, I will up date the game as I go along. Buttons are also needed to make the game playable on a mobile device and there is some of the game mechanics that crashes the ship to often and I miss some safe zone security when the ship reappears on the screen after a crash, but OK for a first demo 🙂