m

spaceinvaders

score: 0

Enemy Speed:

Bullet Speed:

Player Speed:

this is WASD to move and v to fire bullets

if the enemy speed is set to 0 (slider all the way to the left) then this doesnt work but like try other values and cool shit happens

infact just dont set any of the sliders to 0, bcs it sets the velocity of the object so if its 0 then the item is just going to stop

the enemy velocity only takes effect after collision with the wall

the green flashing when the enemies collide with the player is supposed to be the game over screen but setTimeout() isnt working properely, i think its bcs javascript runs functions in parralel but idk?

you can break the game and never die if you just move the player off the screen

ok so this doenst rlly work very well but like its a start. i was more just using the shit i learned in the last tutorial to try and make my own game. i will fix the issues but atm it kinda bugs out unless the enemy speed is set to one. it also gave me a good idea of how javascsript classes work, and how inheritance works but other than that this is a very basic prpogram