Here is a new series where we remake classic games and puzzles in ZIM at https://zimjs.com for coding creativity with JavaScript on the Canvas.
We heard of a challenge to see how quickly we can code a basic Space Invaders which we have done in 30 minutes. There were a few minor boo-boos we made along the way:
forgot the ; on the end of setting the rows
boundaries could have used greater/less than AND equal to
could use else if on keyCode tests
forgot to change the end y of lasers back to -100
Spelled lose wrong!! Arrgg
Here is the final file (we adjusted the boo-boos):
https://zimjs.com/remakes/spaceinvade...
Use CTRL U to see the source
Actually, coding space invaders is primarily logic and will be similar in length of code and time in most languages. But ZIM does have some conveniences that help like Tile() and loop(). Hopefully the code is fairly straight forward!