#Space Invaders!
Try it: https://tayl0rt0t.github.io/MOD1_SpaceInvaders/
Welcome to Space Invaders! Earth is in trouble. Those pesky UAPs (aka UFOs) have been seen by pilots and other observers for centuries. Solid proof of their existence has been near impossible to come by, grainy and blurry photos have caused doubts about their existence. But, today is the day. They're coming for us, and they do not come in peace. It's up to you to save the world with your keyboard. BATTLESTATIONS! GET READY, JUST LIKE WE TRAINED!
#Motivations
Other than destroying the invaders, my motivation is to work with interacting classes and arrays and solidify those concepts to become a better programmer!
#Controls
Use your left and right keys to move your ship!
Use the space bar to open fire! Are they closing in? Hold the space bar for Rambo mode, using your rapid fire to take out the invaders in close quarters combat!!!
#Tech Stack
HTML
CSS
Javascript
#Resources
https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement
https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_shapes#:~:text=video%20using%20canvas-,Tutorial,-Canvas%20tutorial
https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect
https://developer.mozilla.org/en-US/docs/Games/Techniques/2D_collision_detection
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some
https://www.youtube.com/watch?v=i7FzA4NavDs&t=1447s How to shoot bullets in Javascript
https://www.youtube.com/watch?v=qCBiKJbLcFI&t=1023s Coding Space Invaders. This helped a lot with arrays and timing.
#Future Updates
A scoring functionality.
A 'remaining lives' functionality
More aggressive enemys (aliens shoot)
tayl0rt0t / mod1_spaceinvaders Goto Github PK
View Code? Open in Web Editor NEWFor the Perscholas MOD1 project, I'm choosing to create Space Invaders