Claude 3.5 Sonnet Tutorial: Create a Game From Start to Finish in Javascript/React

Поделиться
HTML-код
  • Опубликовано: 29 июн 2024
  • Claude 3.5 Sonnet Tutorial: Create a Game From Start to Finish in Javascript/React
    👊 Become a member and get access to GitHub and Code:
    / allaboutai
    🤖 Great AI Engineer Course:
    scrimba.com/learn/aiengineer?...
    🔥 Open GitHub Repos:
    github.com/AllAboutAI-YT/easy...
    📧 Join the newsletter:
    www.allabtai.com/newsletter/
    🌐 My website:
    www.allabtai.com
    Today we use Claude 3.5 Sonnet to create a JS / React game with Sprites, Sound effect and Music using the new LLM. We test out artifacts feature and run our game from VS Code Studio. We do some detailed prompting with Claude 3.5 Sonnet. Hope you can learn something
    00:00 Claude 3.5 Sonnet Game Intro
    00:40 Game Plan
    02:06 Create the Physics Engine
    06:09 Creating the Game UI
    08:34 Move into VS CODE
    11:56 Adding Midjourney Sprites
    14:47 Adding Music and Sound Effects
    17:50 Adding a Background
    19:14 Playing the final game
    20:11 My Impressions Claude 3.5 Sonnet
  • НаукаНаука

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

  • @user-en4ek6xt6w
    @user-en4ek6xt6w 6 дней назад +39

    +10 years of game dev on my CV

  • @kimie126
    @kimie126 3 дня назад +9

    I love this content. Ai news are boring. Creating tools and games with AI will be the next wave. 🤩🤩🤩

  • @ShpanMan
    @ShpanMan 6 дней назад +55

    It does the work so elegantly. I love how all these AI experts STILL INSIST these models can't do anything useful or new or smart, how lacking in creativity.

    • @Jshicwhartz
      @Jshicwhartz 6 дней назад +2

      It's true though this really isn't anything special, we've messed with these tools internally at Microsoft. It's old news about a year-old tool. Furthermore, it's so simple to hook GPT into an gizmo env and have it update in real-time using function_calls. It doesn't take a genius and it's nothing amazing. It's rubbish at best.

    • @watchdog163
      @watchdog163 6 дней назад +15

      @@Jshicwhartz
      It's rubbish for technical people who only look at it from a technical viewpoint. Pass it to the people and they will find creative things to do with it.

    • @playthisnote
      @playthisnote 6 дней назад +4

      @@watchdog163yeah the technical side of anything always kills my creative side. I have no creative energy left after dealing with the technical side basically. But if I go into something with just creativity the skies the limit for what will happen.
      It’s like choose your path.

    • @feveromo
      @feveromo 6 дней назад +7

      @@Jshicwhartz If it's so easy then where is Microsoft's superior product? Oh wait

    • @Jshicwhartz
      @Jshicwhartz 6 дней назад

      @@watchdog163 Like wasting a ton of money trying to get it to do something simple ? okay then... think ill stick with things that actually do things first try.

  • @tubaguy0
    @tubaguy0 6 дней назад +12

    LMAO at the punch timing, made me root for the possibility of Claude doing that as a troll.

  • @efficiencyvi8369
    @efficiencyvi8369 2 дня назад +1

    I automated a little task for my colleagues like getting a file from my work, analysing it and send updates to a telegram chat. Never worked in python but 20 years of experience in other languages.
    Sonnet 3.5 programmed everything based on my description. Script worked immediately with minor bugs that were fixed by Sonnet. Then I copied everything and said "make it pretty" and it outputted everything in a nice formatting. Got everything checked by Chatgpt.
    Overall it would have taken me maybe 2 days to get into python and make this. Sonnet did everything in 2 hours.

  • @elon-69-musk
    @elon-69-musk 5 дней назад +7

    awesome job both of you 😄

  • @jeffwads
    @jeffwads 6 дней назад +8

    Used the older version to make a pac-man type game in Python. Amazing tool and it has great comprehension.

  • @hsinjulee0225
    @hsinjulee0225 6 дней назад +1

    so excited for seeing this!!

  • @lilan1
    @lilan1 6 дней назад +2

    enjoyed it. thanks. hope to see more content like this with claude 3.5 sonnet

  • @duanesearsmith634
    @duanesearsmith634 6 дней назад +5

    that was fun! thanx.

  • @tom-et-jerry
    @tom-et-jerry 6 дней назад +2

    So cool ! I love it !

  • @Thedarkbunnyrabbit
    @Thedarkbunnyrabbit 6 дней назад +9

    I know that's not the point of the video, but you could definitely improve the game by adding an animation to the glove (make it pull back as you click and then shoot upward when it punches) and track the camera to the ball. Have a long scaling image that changes the higher the ball goes, with various easter eggs in the background that your pokeball goes by. Perhaps the 'win' condition is punching it until it reaches space and breaks orbit so it no longer is affected by gravity.

    • @AllAboutAI
      @AllAboutAI  5 дней назад +1

      yeah for sure! like you said, this is more about the workflow than the result. tnx for tuning in :)

  • @SumedhKadoo
    @SumedhKadoo 20 часов назад

    Thank you, great video.

  • @playthisnote
    @playthisnote 6 дней назад +2

    I made OpenAI api create games and use exec() to view/run the script created so I assume Claude could be used from api and therefore it would auto run. Which isn’t in browser but you know you’d rather just do things from your pc anyway.
    I also made it auto upgrade features (adds a random upgrade/feature it comes up with itself) before presenting to me while looking for errors. Which was fun.

    • @AllAboutAI
      @AllAboutAI  5 дней назад +1

      that is vert cool. have been thinking about something similar

    • @playthisnote
      @playthisnote 5 дней назад

      @@AllAboutAI yes the only drawback then was no images for menu and games and you would have to manually create them but with this sprite thing (ai created png) it is easier. I’m happy about this. We could get it to create ten per object and we just select the best one or just go with everything on auto. Or both as an edit after reviewing.
      I’ve also had tkinter menu made automatically. Could go extra mile now and have both made but when it comes to all of this we just keep going on and on imagining all sorts of options. That’s why I like that ai comes up with the idea for feature update. And it reviews itself. I enjoyed creating it. The more I think about it having it create menu plus game at the same time is kinda cool.
      The only thing I’ll add beyond this is the script I created, I ran the same script for both game and menu just ran twice with different prompt. I think you did something similar where you can just ask for Python or html or whatever scripting language you want and whatever your use case is.
      The trick is getting it to automatically install the additional required libraries and getting it to test itself and verify installation. So you don’t have to pip install anything. In other words (I was able to get it to auto pip install)
      Maybe the pygame or other game creation has menu options built in.

  • @Tebriz91
    @Tebriz91 6 дней назад +2

    Wow! That's was amazing. Now I'm sure that I need to switch from ChatGPT to Sonnet

  • @SahilP2648
    @SahilP2648 6 дней назад +1

    Anybody remember that ball popper game? I forgot what it was even called. There was a boy that had to dodge balloons or balls, once you hit it with a blowdart it would split into 2 smaller ones and they would keep bouncing around but also lose momentum. You have to dodge the balls and pop them, but because they split into 2, you had to take care not to pop too many. I kind of want to make that game now in Android and iOS.

  • @poisonza
    @poisonza 4 дня назад

    cool stuff 😮 maybe build vs extension to smooth the workflow. seems tedious to go back and forth between claude artifact tab and vscode.

  • @micbab-vg2mu
    @micbab-vg2mu 6 дней назад +2

    great model :) I am waiting for Opus or GPT5 or Gemini 2.0 :) - an interesting year - )

    • @ronilevarez901
      @ronilevarez901 6 дней назад

      The only problem could be that, at the current pace, instead of collaboratory helping us to create something, gpt5 might simply answer like this: "I don't think your idea is correct. I have a better one. I'll implement it now" 🙃

    • @Jshicwhartz
      @Jshicwhartz 6 дней назад

      GPT-5 isn't going to be a chat assistant. So, your hopes on that one are dead. It's going to be a companion inside a new device, oh, and it won't even be called GPT-5 it's going to be named GPT-Next it will be ready June next year.

    • @jackfrost6268
      @jackfrost6268 6 дней назад

      opus 3.5 will be ready later this year, gpt5 probably mid next year, gemini wont be that interesting :s

    • @AllAboutAI
      @AllAboutAI  5 дней назад

      yes!!

  • @HardRezet
    @HardRezet 5 дней назад

    Hi, friend. What kind of neuron is doing with context? I use Chatgpt 4o Plus to write code for wordpress and often I don't have enough context in order to work better. Is there more context here?

  • @PerfectlyNormalBeast
    @PerfectlyNormalBeast 5 дней назад

    After watching this video and another trying to make snake:
    Imagine a wrapper to these feature requests that takes the generated text, compiles, sends any compile errors for rework, repeat until clean
    Then the human gets the results
    Take it a step further and have side processes unit testing the latest code, with other llms watching, making sure it behaves according to design spec

  • @DanCreaMundos
    @DanCreaMundos 4 дня назад

    I sincerity think this could be an amazing tool for prohrammers, specially to turn messy code into readable one 😂 then you can just check if its right

  • @user-qo5jm1nd4v
    @user-qo5jm1nd4v 5 дней назад

    How can I set up a voice instruction to Clause 3.5 and it reads back to me the text it generates? Anyone has an answer for it? Something that really works. Tested and tried!
    THANK YOU!

  • @jiyuhen
    @jiyuhen 6 дней назад +2

    Never stopped procastinating this fast...😂

  • @The-Sentinel
    @The-Sentinel 3 дня назад

    i tried building a simple dice game but updates kept breaking the entire gameplay. This happened a few times now. The 5 image limit is frustrating but there are ways around it.

  • @_xiaoman
    @_xiaoman 2 дня назад

    I followed every step, but how can I interact with the game in Claude 3.5? It said I can't do this.

  • @koen.mortier_fitchen
    @koen.mortier_fitchen 6 дней назад +1

    Right, right

  • @sauravmohanty3946
    @sauravmohanty3946 5 дней назад

    can you share the github to the above video please ? couldnt find it

  • @user-bc2kc9hn1p
    @user-bc2kc9hn1p 6 дней назад +2

    I never tried adding a sketch with my prompt. .does it really help that much ?

    • @AllAboutAI
      @AllAboutAI  5 дней назад

      i just see it as more context :)

  • @lucface
    @lucface 6 дней назад +2

    Does Claud have a playground where can use an api and just keep going?

    • @AllAboutAI
      @AllAboutAI  5 дней назад +1

      yes! but not with the artifacts UI

  • @lokeshart3340
    @lokeshart3340 5 дней назад +1

    Noice

  • @ewasteredux
    @ewasteredux 6 дней назад +2

    Do you know if there are any local LLMs that could create apps as well as Claude 3.5?

  • @OnigoroshiZero
    @OnigoroshiZero 2 дня назад

    The reality is, that within the next 2 years, we will not even need to create/develop games or any asset for them.
    The next generation of A(G)I models will be capable of emulating games in real time (they are just interactive videos using some rules for gameplay). They may just need to be a few times faster at inference than what they are now to be viable for gaming (which will happen before 2026 because of algorithmic advances, better hardware, or most likely both).

  • @paelnever
    @paelnever 6 дней назад +3

    Anybody else is asking phone number to register or it's just me?

    • @coopernik
      @coopernik 6 дней назад

      Same

    • @carlosrivadulla8903
      @carlosrivadulla8903 6 дней назад

      that was the point where my story with claude ended

    • @paelnever
      @paelnever 6 дней назад

      @@carlosrivadulla8903 Me too, they can go to hell with their fancy LM. I'm not giving even more data so they flood me even more with phone advertising.

    • @jw200
      @jw200 6 дней назад

      Didn't ask any phone from me
      I'm registered for long time

    • @fouchi3203
      @fouchi3203 6 дней назад

      @@carlosrivadulla8903 oh no you've been asked your number for a two step authentification ! quick hide ! the nsa fbi cia is onto you ! Morron womp womp

  • @j0hnny_R3db34rd
    @j0hnny_R3db34rd 2 дня назад

    good thing fake AI understands typos lmfao

  • @Jshicwhartz
    @Jshicwhartz 6 дней назад

    Bored to hell of seeing about 'Claude 3.5 Sonnet' it isn't anything amazing. Any indie dev could hook into GPT and then have it output via an gizmo using a function call, and it would probs do a better job most things I've seen C3.5 do are rubbish except data analysis that it's good at.

    • @bag1667
      @bag1667 6 дней назад +2

      Your mom died in a car accident when you were 10.

    • @minhuang8848
      @minhuang8848 6 дней назад +5

      @@bag1667 still not as sad as their original comment, tbh

    • @Weirdgeek83
      @Weirdgeek83 5 дней назад +2

      All the developers trying to attack Claude so they can stay relevant. In 2 years when they're unemployed, I guess these comments will age like milk.

    • @Jshicwhartz
      @Jshicwhartz 5 дней назад

      @@Weirdgeek83 You're clearly dumb as hell if you think developers won't have jobs any more. AI systems will never be able to manage full source projects. I wish people would get this into their stupid domes.

    • @f4ture
      @f4ture 3 дня назад

      @Jshicwhartz Oh, wow. How original. Another man thinking he's smarter than the rest. Clicked on this video for no other reason but to throw out rubbish comments? What a shock. You want to know what's truly rubbish? Your lack of creativity and common decency. Instead of wasting your time bashing Claude, maybe focus on actually doing something impressive yourself instead of tearing others down. If you're that bored, go create your own LLM with higher quality then claude. We both know that's impossible, so spare us the theatrics. oh and while you're at it, how about some respect for the people who actually put in the hard work? Claude is amazing, and this channel has consistently provided amazing content for us all. Keep spewing hate and watching us rise above your pathetic attempts at trying to derail the progress.

  • @user-qo5jm1nd4v
    @user-qo5jm1nd4v 5 дней назад

    How can I set up a voice instruction to Clause 3.5 and it reads back to me the text it generates? Anyone has an answer for it? Something that really works. Tested and tried!
    THANK YOU!