Coding Challenge #5: Space Invaders in JavaScript with p5.js
About | Information | History | Online | Facts | Discovery
In this viewer submitted Coding Challenge, I take on the task of coding a Space Invaders game to play in browser in JavaScript/HTML and the p5.js library. Send me your Coding Challenge ideas! Contact: http://twitter.com/shiffman Source Code For This Challenge: p5.js: https://github.com/CodingRainbow/Rainbow-Code/tree/master/challenges/CC_05_Space_invaders_p5.js Processing: https://github.com/CodingRainbow/Rainbow-Code/tree/master/challenges/CC_05_Space_invaders p5.js: https://p5js.org For More Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH Help us caption & translate this video! http://amara.org/v/Qbs6/
Comments
-
i ruelly like your videos
-
@Daniel Shiffman would really like to see you doing tetris
-
Daniel. If you ever met John, from John's Arcade, the universe would implode. Love this!
-
i downloaded p5.js, but it's white. I like it better the way you have it, more black and dark. Any way to change this?
-
what is p5
do I need it to do what you doing -
I wrote, as part of my post graduate final project in Java Technology, a Arcade VM with a 8088 CPU software emulator to run the original Space Invaders ROM. I included some hacks, inserted by pressing certain keys, writing bytes directly to the ROM. That was so funny! Check out the demo video in my YT channel.
-
i don't think you needed an array for drops because in the space invaders game you can't shoot again until the "bullet" hits one object or get out of screen.
-
Wow! Excellent! I just found your channel and I clicked the thumbs up and subscribed!
-
whelp...now I need p5.js! Didn't know this framework existed. Looks awesome.
-
5 == "5", it's true because "==" convert the 5 and "5" into same type of data.
5 === "5" it's not true because "===" does not convert them into same data type, so in this case an int(5) its not the same as a char("5"),
If I am wrong tell me please, and sorry about my bad english :( -
please explain the === and ==
-
this is great im sure you heard the "im wanting to learn" a million times and that if search i can find a good tutorial but im really interested in learning java and wanted to know if you have any vids on it thank you
-
what's the difference between p5js editor and p5js framework?
-
Hey, I tried making the flowers shooting back stuff to the watering can randomly, but not quite sure how to do it. I've managed to create them in within function setup() in the flower loop,and then I tried to re-create them every 2 seconds by using setInterval but didn't work. Any suggestions? here is my github repo if I haven't lose you already lol https://github.com/CrimsonPug/cookie-invader
-
For the direction you could have used the keyIsDown function, It's shorter I think ^^ https://p5js.org/reference/#/p5/keyIsDown
-
I don't understand a single thing, but this guy is really fun to watch.
-
in a lot of your videos you use the syntax "this.function" were does the the 'this' come from as i can never seem to see it defined in the code
-
nice videos!
-
You talk too much and don't show the effect of what you have made often enough.
-
Hi, Daniel.
I love you.
40m 45sLenght
2504Rating