How I Coded Pool in JavaScript
HTML-код
- Опубликовано: 3 май 2024
- Follow along by entering the code into the free online code editor at editor.p5js.org
My code: editor.p5js.org/moonloops/ske...
This video is dedicated to my amazing high school computer science teacher, Peter, aka WonkoTheSane. Thanks Peter for inspiring me to pursue computer science as a career.
#p5js #3d #javascript #coding #codingtutorial #pool #3ball #javascriptgame - Наука
this was beatifully crafted. Clear and concise. Thank you so much. You earned a subscriber.
Wow, that’s so lovely to read! Thank you 🙏 Anything you’d like to see me tackle in a future video?
Why is table not a class ?
A very astute question! The way I defined table is called an object literal. It basically creates the same thing - an object - but it’s a shorthand way for doing it. Object literals are useful in cases where you only need to create a single instance, and you don’t need any fancy features like inheritance etc. I absolutely could have defined a table class, however, in this case I thought an object literal was OK since it was a very simple object. I actually wondered if anyone would notice, so well done on spotting this, and thanks for asking about it!
Thank you , this is really helpful
You're welcome!
Great🔥
Thank you! 🙏
Very nice!
Thank you! Cheers!