Space Invaders
After 4 hours of grinding, the first working game for ArcadeOS is ready!
My minimalist remake of Space Invaders is built only with <canvas> and vanilla javascript.
It was my first time using canvas, so I decided to make things easier and just use squares instead of real images. I hope to change that later…
The game’s logic itself isn’t that hard, so I barely had any bugs. However, I had to remake the way the OS opens windows. Now, instead of opening the same window several times (and making the game run over itself multiple times), it checks whether the window is already open.
I also decided to go the professional way, so I used OOP and made classes such as:
class GameObject
class SpaceShip extends GameObject
class Player extends SpaceShip
class Bullet extends GameObject
class Asteroid
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.