Build a 3D Multiplayer Mobile Shooter Game with Playroom and React Three Fiber

Поділитися
Вставка
  • Опубліковано 1 лип 2024
  • Let's learn how to build a 3D Multiplayer Mobile Shooter Game easily with Playroom (‪@joinplayroom‬) and React Three Fiber
    In this video we will use Playroom toolkit to enable multiplayer features into a React Three Fiber game we will build together.
    Try Playroom SDK for Free 👉 joinplayroom.com/?=wawasensei
    Play the game 👉 r3f-playroom-multiplayer-u4.v...
    To understand how physics system work, watch my dedicated video 👉 • React Three Fiber Tuto...
    Final code 🔗
    github.com/wass08/r3f-playroo...
    Starter pack 🔗
    github.com/wass08/r3f-vite-st...
    #threejs #multiplayer #gamedev
    ▬▬▬▬▬▬ Useful L I N K S 🔗 ▬▬▬▬▬▬
    🚀 Learn React Three Fiber with my complete course ✨
    lessons.wawasensei.dev/course...
    Playroom Doc
    docs.joinplayroom.com/
    Quaternius Pack
    quaternius.com/packs/toonshoo...
    DirectionalLightShadow
    threejs.org/docs/#api/en/ligh...
    React Three Rapier
    github.com/pmndrs/react-three...
    Tailwind CSS
    tailwindcss.com/docs/guides/vite
    ReactJam
    reactjam.com/
    AxieJam
    hub.skymavis.com/axie-game-ja...
    ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
    00:00 - Intro
    01:16 - Starter project
    02:31 - Map
    04:41 - Enabling multiplayer with Playroom
    07:14 - Soldiers
    11:49 - Physics with Rapier
    13:42 - Multiplayer player movement
    20:10 - Firing bullets
    28:11 - Bloom Postprocessing
    29:10 - Syncing bullets
    30:41 - Player hit
    34:43 - Leaderboard
    36:57 - Bullet impact
    39:42 - Test on mobile
    40:05 - Thank you!
    ▬▬▬▬▬▬ Support the channel 🙏 ▬▬▬▬▬▬
    Become a member to get access to awesome perks:
    / @wawasensei
    ▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
    💻 The Discord Community
    / discord
    📸 Instagram :
    / wawa.sensei
    🎎 Facebook :
    / wawasenseiyt
    🐦Twitter :
    / wawasensei
    🐦TikTok :
    / wawasensei08
    💻 My website :
    www.wawasensei.dev
  • Наука та технологія

КОМЕНТАРІ • 62

  • @genshian
    @genshian 8 місяців тому +9

    I attribute my entire engineering knowledge and future engineering career right now to this man’s content. Wawa truly is a special person helping us get to our dream projects. Bought his course just to support him.

    • @Ibrahim-oc5ql
      @Ibrahim-oc5ql 8 місяців тому

      bro same! Sensei without you I would be homeless by now! Thanks

    • @WawaSensei
      @WawaSensei  8 місяців тому +1

      guys, thanks a lot, I will do my best to make learning 3d web development accessible & fun 🔥

  • @heagandev
    @heagandev 8 місяців тому

    You are killing it right now, thank you Sensei

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Thank you so muuuuch 🙌

  • @mehmetakyuz5290
    @mehmetakyuz5290 8 місяців тому

    your content is something else man!

  • @user-nv2yl5vn3k
    @user-nv2yl5vn3k 6 місяців тому

    great tutorial!

  • @heathers.bailey7207
    @heathers.bailey7207 8 місяців тому

    I'm a new follower and admirer, wish I had found this channel forever ago :)

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Welcome aboard! So happy to read it, thank you! Wish you a great learning journey 🙌

  • @HuynhLuong227
    @HuynhLuong227 8 місяців тому +1

    wow, amazing game, thanks for sharing

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Thanks to you 🙏🙏🙏

  • @julianvelez6563
    @julianvelez6563 8 місяців тому

    Awesome work bro you are the Best ❤❤

    • @WawaSensei
      @WawaSensei  8 місяців тому +1

      You are the best, really! Your support to my content is a huge factor of motivation 🙌

  • @mykhailochernov1222
    @mykhailochernov1222 8 місяців тому

    Wow, man, you are awesome!

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Your support is awesome man!

  • @Venkatesh-vm4ll
    @Venkatesh-vm4ll 8 місяців тому

    I really love this game type of video❤

    • @WawaSensei
      @WawaSensei  8 місяців тому

      🙌 glad you like it, it's always a pleasure to make games!

  • @andrewwoan
    @andrewwoan 8 місяців тому +1

    wow that's INSANE!!

    • @WawaSensei
      @WawaSensei  8 місяців тому +1

      ❤️ Thank youuuu, wish you are fine!

    • @andrewwoan
      @andrewwoan 8 місяців тому

      Totally am! Thanks for asking!@@WawaSensei

  • @GyaniCoderAdam
    @GyaniCoderAdam 8 місяців тому

    who so ever is following your content will soon be a great developer

    • @WawaSensei
      @WawaSensei  8 місяців тому

      That's my dream to be able to contribute and see you create great projects 🚀

  • @inteligenciafutura
    @inteligenciafutura 8 місяців тому

    excellent, you level up more

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Thank you so much for your consistent support! 🙏

  • @randfamous
    @randfamous 8 місяців тому

    🔥🔥🔥🔥

    • @WawaSensei
      @WawaSensei  8 місяців тому

      🧯🧯🧯🧯 please you burnt all the comments 🤣

  • @mathieu-superpose
    @mathieu-superpose 8 місяців тому

    Very well done, the best playroom game I've seen so far!!
    Do you participate to the curent React Jam?

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Thanks a lot! 🙌
      I'm considering to participate for this week video yes 💪

  • @AdityaKumar-dv9cp
    @AdityaKumar-dv9cp 7 місяців тому

    Great❤❤❤

  • @filipesommer8253
    @filipesommer8253 8 місяців тому

    Amazing content. You just gained a lifetime subscriber!
    I'm curious to know if adding batching (e.g. reducer?) for the bullets & networkBullets would have a positive effect on latency, as you don't need to wait for the bullets state to be updated and for the useEffect to kick in.

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Welcome aboard! Thank you very much! Indeed, that could help! Note that Playroom is working on the possibility to add events in addition to sharing state, that could make it even easier 🔥

    • @filipesommer8253
      @filipesommer8253 6 місяців тому

      @@WawaSensei Cool! Btw I'm curious, if I wanted to make the player move when I click the mouse on the map, any tips on how I could achieve that?

  • @Maxdr1998
    @Maxdr1998 8 місяців тому

    Have two two years expirience of React in prod, but still watch this video like junior, that dont understand what happening)) thank you

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Hehe, don't worry it will come! At least it keeps the excitement to know we still have a lot to learn!
      I also feel the same on many topics I have no idea about (even related to 3D web development 🤭)

  • @321123580
    @321123580 8 місяців тому

    Amazing

  • @sinanisler1
    @sinanisler1 8 місяців тому

    niceee

  • @sylvainschellenberger
    @sylvainschellenberger 8 місяців тому

    Awesome project! The Playroom SDK seems to really facilitate development of multiplayer games, but I find it quite weird that the state updates are done in the host's client rather than on the server. Is it made to build dApps?

    • @WawaSensei
      @WawaSensei  8 місяців тому +2

      Thank you very much!
      Yes it's a pleasure to work with 🚀
      I think it's made this way to simplify the life of the developer. (PS: it's also the case for Unity Relay multiplayer)
      By having a host client responsible of the state update instead of a "backend" server, you have everything available, the physic world, the inputs, etc. If it's done server side, you need to do a lot of calculation, if it's the best approach for "competitive" games, this add a lot of complication for other projects.
      (Can be used for dApps but I don't think it's the main purpose)

  • @bloodylupin
    @bloodylupin 8 місяців тому

    top thanks 💎💎💎

    • @WawaSensei
      @WawaSensei  8 місяців тому

      😍 Thanks to you more!

  • @sirdevknight
    @sirdevknight 2 місяці тому

    What's that song? In the intro.

  • @SunnyMehra047
    @SunnyMehra047 8 місяців тому

    Excellent! Can we add tpp or fpp player camera position?

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Thank you! Of course, you can adjust the camera controls position to make it easily. You'd also need to adjust the movement logic based on the angle to do it, but the rest would stay the same.

    • @SunnyMehra047
      @SunnyMehra047 8 місяців тому

      @@WawaSensei I hope we can see these features in the coming episodes :)

  • @nicolettifps
    @nicolettifps 8 місяців тому

    wawa, do you have a course like threejs journey?

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Indeed, it's available here lessons.wawasensei.dev/courses/react-three-fiber

  • @amshenyesudas
    @amshenyesudas 8 місяців тому

    Do Something with Spline Sensei!

    • @WawaSensei
      @WawaSensei  8 місяців тому

      Would love to! If only I could get sponsored by them too 🤭

  • @lucky_number
    @lucky_number 5 місяців тому

    Can I play game in PC with keyboard control? Please help me fix code control game in PC with keyboard

    • @WawaSensei
      @WawaSensei  5 місяців тому

      Hi! Well not using the Joystick feature but you can definitely change the code to use the keyboardControls and setState

  • @nexose952
    @nexose952 8 місяців тому

    est ce qu'il y a un serveur discord communautaire pour playroom ?

    • @WawaSensei
      @WawaSensei  8 місяців тому +1

      Yes! discord.gg/fJ6K66TXUe 🙌

  • @geelemo
    @geelemo 8 місяців тому

    I want to host this locally

    • @WawaSensei
      @WawaSensei  8 місяців тому

      What do you mean? To run it locally or use your computer as a remote server? 🤨

    • @geelemo
      @geelemo 8 місяців тому

      @@WawaSensei just locally that's all

    • @WawaSensei
      @WawaSensei  8 місяців тому +1

      @@geelemoyou can follow the instructions from the final code repository to do it 👉 github.com/wass08/r3f-playroom-multiplayer-shooter-game

    • @geelemo
      @geelemo 8 місяців тому

      @@WawaSensei oh lovely