Can You Make a 3D RPG with JavaScript? // 4. Moving Player w/ Point & Click Controls

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024

ความคิดเห็น • 14

  • @manuelsanchezweb
    @manuelsanchezweb 3 วันที่ผ่านมา +6

    Again an amazing video, thanks! Wanted to pinpoint also as well as responsiveness for mobile devices, maybe it would be great to have a minimap (?). Just food for thought just in case you do an extra section at the end, there are also only few videos about doing minimaps with threejs and none with a game like this

    • @jimmyroserovallejo
      @jimmyroserovallejo 2 วันที่ผ่านมา

      Si creo que sería muy importante, colocarle un control para 📱 ya que todo mundo lo usa hoy en día... Algo así como coastal Word

  • @QuickPodss
    @QuickPodss 2 วันที่ผ่านมา +5

    holy crap only 4.5k subs?????? I thought this was a channel with more than a million

    • @dangreenheck
      @dangreenheck  2 วันที่ผ่านมา

      Spread the word! 😁

  • @kn58657
    @kn58657 วันที่ผ่านมา +1

    Thank for this, Dan! I'm a somewhat experienced dev, on paper at least, but I have much to learn from your pragmatic, positive, and structured approach to an explorative, greenfield project like this.
    I'll echo one of the other comments and say your channel numbers could easily've been 10x as high. Not that it matters all too much, it's still a gem to those who do find the videos.
    Much looking forward to the next videos. Cheers from Scandinavia

    • @dangreenheck
      @dangreenheck  วันที่ผ่านมา

      Thank you for your kind comment! This made my day!

  • @РамильФатуллаев-о9ц
    @РамильФатуллаев-о9ц 3 วันที่ผ่านมา +4

    Ваши видео просто находка, спасибо вам за ваш проделанный труд.

  • @DanelonNicolas
    @DanelonNicolas วันที่ผ่านมา

    good job man 🎉 I've just love this series

  • @infisspablo8602
    @infisspablo8602 20 ชั่วโมงที่ผ่านมา

    good luck once i tried to create rpgs with three js but scale of project become too big, hope u will get as far as u can!

  • @billythekid9714
    @billythekid9714 3 วันที่ผ่านมา +2

    The best

  • @bencodes
    @bencodes 3 วันที่ผ่านมา +1

    At around 20:32 you say "There's nothin' like writing sloppy code" Can you explain why that code is sloppy?

    • @dangreenheck
      @dangreenheck  2 วันที่ผ่านมา

      Good question. I discussed this in the original recording but cut it out because it was way too confusing and poorly worded.
      I was questioning whether the Player should really maintain its own references to both the camera and the terrain. Passing them in the constructor and creating class variables to store the references is sloppy because if we ever need to recreate the camera or terrain, the Player is going to be hanging on to the old references and will need to be updated.
      I usually ask myself “Does it make sense for this class know about this other class?” and if my intuition tells me no, that probably means I architected things incorrectly.
      For now I’m not too concerned about these things; I’m focused on getting a minimal working example of the game. Later on when the game is more fleshed out I can refactor the messy bits of code into separate classes.

    • @rogercruz1547
      @rogercruz1547 2 วันที่ผ่านมา

      @@dangreenheck Great point. Is the camera part of the player? No. Is the player part of the camera? No. But it has a target that can point to it, but not necessary at a player and not necessarily in its constructor. Then the view/screen needs a reference to a camera to render (that way you can have multiple cameras).
      If the player needs to interact with the world would that logic be inside the player or be in a player agent that is part of the world and says what a player can and cannot do? Or would just making a scene container and putting all instances in there and having that being the only circular reference so a player can ask the scene container for a world reference so it doesn't hang on to anything other than the scene it's inserted in? I mean, the object calling it's "onEnterFrame" callback / main loop would be the one to be referenced... then everything is a node and you have a node hierarchy and any node has a reference to scene, parent and optionally a target.
      I miss Macromedia Flash™