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
  • НаукаНаука

Комментарии • 10

  • @nburdisso96
    @nburdisso96 20 дней назад +3

    this was beatifully crafted. Clear and concise. Thank you so much. You earned a subscriber.

    • @moonloopsdev
      @moonloopsdev  20 дней назад

      Wow, that’s so lovely to read! Thank you 🙏 Anything you’d like to see me tackle in a future video?

  • @Naej7
    @Naej7 22 дня назад +6

    Why is table not a class ?

    • @moonloopsdev
      @moonloopsdev  22 дня назад +9

      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!

  • @Tsalgiun
    @Tsalgiun 23 дня назад +1

    Thank you , this is really helpful

  • @itzindiandude
    @itzindiandude 21 день назад

    Great🔥

  • @petter.envall
    @petter.envall 22 дня назад

    Very nice!