JavaScript Fighting Game Tutorial with HTML Canvas

Поделиться
HTML-код
  • Опубликовано: 21 дек 2024

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

  • @jasonbatester5784
    @jasonbatester5784 2 года назад +2468

    -1 minute: Oh, great! I can maybe learn 1 or 2 in JavaScript.
    -10 minutes: This is awesome, I'm learning so many new things in JavaScript with ease. Hit Liked and Subscribed.
    -30 minutes: Damn, I have a future in Game Development.
    -50 minutes: Shttt, I'm overloaded with Information and Ideas now of what Game I'll be doing.
    -60 minutes: Hands down! This Tutorial is the best I have seen.
    After 1 Hour of appreciation, realized to check how many views did this tutorial accumulated now.
    Sad to say that it only has more than 100k Views. 😢.
    Everyone! Let's help the man spread this JavaScript tutorial to show our appreciation for uploading a very informative video for FREE.

    • @TheOnlySirC
      @TheOnlySirC 2 года назад +63

      It's at 475k views now? What do you mean?

    • @unibrow9384
      @unibrow9384 2 года назад +25

      Do i need to know canvas before starting this project?

    • @jasonbatester5784
      @jasonbatester5784 2 года назад +27

      @@unibrow9384 no. But u need to have background in Programming to understand. Specially in constructors class and methods.

    • @jasonbatester5784
      @jasonbatester5784 2 года назад +13

      @@TheOnlySirC yah, it's good and I'm happy as he deserves views more than that with the value of the tutorial.

    • @unibrow9384
      @unibrow9384 2 года назад +11

      @@jasonbatester5784 Yeah, I'm familiar with those and JS as well.

  • @Yohoho134
    @Yohoho134 8 месяцев назад +3338

    The fact that me and many other people just woke up to this playing makes me wonder if most of the views this video gets is from people not even trying to watch the video

    • @CHURCHISAWESUM
      @CHURCHISAWESUM 7 месяцев назад +64

      Well JavaScript does put people to sleep

    • @adamrobertson2048
      @adamrobertson2048 7 месяцев назад +25

      wtf this just happened to me too

    • @abutohan
      @abutohan 7 месяцев назад +27

      This video was always recommended to me when I'm asleep listening to RUclips.

    • @lazygamer923
      @lazygamer923 7 месяцев назад +6

      ​@@adamrobertson2048Yeah me too and this is weird

    • @MaQueRS
      @MaQueRS 7 месяцев назад

      D m😮😊😅😊😊​@@lazygamer923

  • @AvenRacca2008
    @AvenRacca2008 8 месяцев назад +2013

    Dude what. How is everyone waking up to this, i fell asleep watching zelda gameplay. How did i make it 40 mins into this video

    • @EKO420G
      @EKO420G 7 месяцев назад +27

      Came as far to 2:37:26 😭

    • @Yoshikage_Kir4
      @Yoshikage_Kir4 7 месяцев назад +20

      Bro I was watching Vsauce, like how

    • @Rastaa69
      @Rastaa69 7 месяцев назад +10

      @@EKO420Glmfaoo!!! I’m 3:03:43 this point like dawg why

    • @couldntsetpass2901
      @couldntsetpass2901 7 месяцев назад +3

      I made it to the end

    • @lildawg1685
      @lildawg1685 7 месяцев назад +1

      @@Yoshikage_Kir4on gaad

  • @yup9918
    @yup9918 8 месяцев назад +220

    I used to wake up to a video of a guy in a field raining asmr, but now I’ve awoken to this. Perhaps a new era in my life has started.

  • @lego_droid1396
    @lego_droid1396 8 месяцев назад +373

    Just woke up and I realize that I actually learn more stuff from this man while I was sleeping then I learned in school.

    • @kornknot2726
      @kornknot2726 4 месяца назад +1

      This is my second time.

    • @ssehcsissehc
      @ssehcsissehc Месяц назад

      ​@@kornknot2726❤😂😮🎉🎉😂😢❤🎉😂😢🎉🎉😂🎉😂

  • @Oogabooga147
    @Oogabooga147 8 месяцев назад +1098

    Why and how is everyone (including me) waking up to this video. I was watching a slow mo guys video last night and this is playing in the morning.
    Might as well stick around. This seems kinda fun

    • @IronSharpensIronOfficial
      @IronSharpensIronOfficial 8 месяцев назад +7

      This is gonna be very out of context but
      Anyone noticed that 💀 has became the new O_O

    • @Kopano.Tlali69
      @Kopano.Tlali69 8 месяцев назад +1

      it keeps happening

    • @Oogabooga147
      @Oogabooga147 8 месяцев назад +4

      Oh my god not again

    • @iswimslow4
      @iswimslow4 8 месяцев назад +4

      @@Oogabooga147Lmao time to become a developer bud

    • @cabin98
      @cabin98 7 месяцев назад

      Bruh I was watching the Technology Connections video about flash photography featuring Gavin from the Slo Mo Guys.

  • @flowthebro
    @flowthebro 9 месяцев назад +842

    I was scrolling through my RUclips history and figured out that this video was running while I was sleeping.

  • @captaincaption
    @captaincaption 7 месяцев назад +2532

    javascript game tutorial ❌ people waking up from sleep ✅

    • @hisomebody123
      @hisomebody123 6 месяцев назад +28

      lol

    • @TheSyanAlfaWolf
      @TheSyanAlfaWolf 5 месяцев назад +75

      Frl wtf what is this sorcery

    • @Hello-sh2rg
      @Hello-sh2rg 4 месяца назад +73

      That legit just happened to me dafq

    • @OurHereafter
      @OurHereafter 4 месяца назад +28

      I wake up in some weird places

    • @Shiftyedits11
      @Shiftyedits11 3 месяца назад +23

      Bro this happened to me😭😭

  • @raffazaver
    @raffazaver 8 месяцев назад +282

    Absolutely amazing tutorial i literally watched 1h while asleep😂 and i learned so much. Btw why do everybody else wake up to this video

    • @Jabranalibabry
      @Jabranalibabry 8 месяцев назад +10

      Yeah, quite a few of us. I've become a sleep coder by now lol

    • @elmalleable
      @elmalleable 8 месяцев назад +10

      Hmmm it might be a suggestion feature triggered by time of day. If everyone is getting under the same circumstances.

    • @Bighaid91
      @Bighaid91 8 месяцев назад +4

      I watched all 4 lol

    • @joshluna1956
      @joshluna1956 8 месяцев назад +7

      God is tryna tell us something lolol

    • @Jabranalibabry
      @Jabranalibabry 8 месяцев назад

      @@joshluna1956 make games?

  • @Bison6000
    @Bison6000 7 месяцев назад +52

    If i keep waking up to this playing, I promise you I'll actually be able to code in my sleep

  • @yeomanvanzyl367
    @yeomanvanzyl367 8 месяцев назад +47

    This is like the 6th time your videos came up while I was asleep....the algorithm clearly likes you😂

  • @St_Banian
    @St_Banian 7 месяцев назад +20

    i sleep to video essays a lot so i woke up in the middle of the night thinking that this made sense.
    No, it doesn’t. It’s a goddamn coding tutorial. The last video before this was a video from Thought Emporium about radioactive products. That’s an insane jump.

  • @melaniebaldwin2766
    @melaniebaldwin2766 Год назад +62

    I woke up to watching this video and am now following the tutorial for fun. I don't know how I ended up here but I am glad. Thank you for making this video

  • @vallytheeg8317
    @vallytheeg8317 8 месяцев назад +21

    Bro I accidentaly fell asleep while watching a completely different thing and I woke up here 😂

  • @Deepfried_duck
    @Deepfried_duck 7 месяцев назад +16

    The RUclips autoplay gods have blessed you. I don’t even know how it could make any connections to what I watch, to what you do.Thanks for being there when I was asleep

    • @bloodclot
      @bloodclot 3 месяца назад

      I hate this shit so much. It keeps coming up on my autoplay. I report this video every time.

  • @lolcat69
    @lolcat69 8 месяцев назад +1992

    Bro, I went to sleep, I woke up and this was here
    Update: IT HAPPENED AGAIN WTH

    • @onmindsoul
      @onmindsoul 8 месяцев назад +30

      Me too

    • @SavageGTI
      @SavageGTI 8 месяцев назад +19

      Haha I was watching a blender tutorial and fell asleep and woke to this. but I also use HTML and JS

    • @lolcat69
      @lolcat69 8 месяцев назад +23

      @@SavageGTI same, I am also a programmer but, why always this video? Why my cellphone just decides to stop at this exact video?

    • @Ahmedjerjawi
      @Ahmedjerjawi 8 месяцев назад +1

      Huh first time ? I don't why I wake up to this and other vid a full assembly course so I am doul learning while sleeping 😂😂​@@lolcat69

    • @DoomedVortex
      @DoomedVortex 8 месяцев назад +7

      same

  • @Fighterofthenightman_
    @Fighterofthenightman_ Год назад +110

    I’ve never watched any coding videos or any videos like this ever I fell asleep with RUclips on and woke up halfway through at 3 am 😂

  • @StudyBuddy-jj5pb
    @StudyBuddy-jj5pb 3 месяца назад +4

    this is possibly the best course of beginners who has no idea of game mecahnics and stuff. thank you a lot learnt a TON.

    • @ChrisCourses
      @ChrisCourses  3 месяца назад +1

      Got another just released which I think might rival it 👀

  • @raofthesun7558
    @raofthesun7558 Год назад +2

    dude sat down for 4 hours and made a step by step tutorial, that is a testament to the amount of focus and mental stamina it takes to be a programmer/software engineer. crazy, Ive always wanted to learn and have started but the focus iw what I struggle with.

  • @timnonik2736
    @timnonik2736 2 года назад +447

    I've only seen 46 minutes so far but this is one of the best tutorial i've ever seen. I think the most complicated part of coding is finding the best way to summarize the logic into objects and decide what has to be structed and what not.

    • @neilquechon8716
      @neilquechon8716 2 года назад +11

      I'm curently on a little game project to improve my skills (a mix between fire emblem and advance wars).... and ilt's exactly the part I am struggling with now 😅

    • @timnonik2736
      @timnonik2736 2 года назад +2

      ​@@neilquechon8716 Same. I'm currently busy with a WoW-bot (I know, don't you judge me). Since there is a cut-down version of LUA beeing used by the game, object orientated programming does not really work that well.
      Also the platform I use does not allow to split your scripts into multiple files, so the result is around 3k lines of code. The project isn't really fun anymore, because its just so hard to find what you're looking for in such a mess. I hope to be soon done with this, to focus on licensing the software and other cool stuff.

    • @neilquechon8716
      @neilquechon8716 2 года назад +3

      @@timnonik2736 For now I feel a little the same. I sometime try to think to far ahead and it seem a little overwhelming to make a architecture who would easily fit everything. So I try to cut these thougts and find a good balance between "ok, this is solid" and "ok for know"
      But for my part I know that if I do sufficently well, the project would become funnier and funnier to work on

    • @timnonik2736
      @timnonik2736 2 года назад +3

      @@neilquechon8716 Yep. Thats what happens a lot to me, and if I realise that my way makes no sense, it frustrates me. Even tho this is normal, you cant just come up with the perfect way to do it in first place. Maybe your first approach will rise in quality over time with different projects, but you cant expect it to be perfect in first place.

    • @sauceprovider3171
      @sauceprovider3171 2 года назад

      ruclips.net/video/lhUmi27cDcs/видео.html the sauce

  • @jpm7049
    @jpm7049 2 года назад +135

    Been studying CS for about a year, I could never write this on my own yet but I’m following 95% of what your doing. Thanks for this, big help and confidence booster.

    • @emiratesandindonesia
      @emiratesandindonesia 2 года назад +10

      same here im kinda new to javascript

    • @PavelNebo
      @PavelNebo 2 года назад +2

      never say never :)

    • @ЮрийДжиндоев
      @ЮрийДжиндоев Год назад +2

      you can, bro. You know it deep inside, everyone knows actually)

    • @BinkBonk-kn3dq
      @BinkBonk-kn3dq 6 месяцев назад

      No you woke up for this

    • @nityashri3548
      @nityashri3548 3 месяца назад +1

      Hey can u pls answer this..i am going to start this tutorial..can we play this game on a single device? The other player is computerized?? Pls lemme know 🥲 and i can make it just by using html css js right?

  • @Porter5habazz
    @Porter5habazz 7 месяцев назад +8

    I wasn’t even watching anything related to this. And STILL woke up to this. 😂😂😂

  • @David-hl1wo
    @David-hl1wo 2 года назад +1134

    This man is giving these tutorials for free! What a beast.

    • @skapha
      @skapha 2 года назад +24

      Indeed!

    • @zenobiusztasak8604
      @zenobiusztasak8604 2 года назад +19

      @Focus making people happy makes him rich

    • @GeekBastion
      @GeekBastion 2 года назад +17

      there is something called AdSense

    • @ChrisCourses
      @ChrisCourses  2 года назад +130

      @@GeekBastion And AdBlock 😉

    • @GeekBastion
      @GeekBastion 2 года назад +7

      @@ChrisCourses unfortunately that is something that sucks for content creators on RUclips but you guys can have paid ads inside the video itself and you talking about it so AdBlock is useless in that case

  • @micemincer
    @micemincer 2 года назад +66

    I've only seen 28 minutes so far but this is one of the best tutorial I've ever seen. A blessing.

    • @collincurtis3182
      @collincurtis3182 Год назад

      Literally same for me. I've only been coding for a month or so at this point, and not even JavaScript yet, but this still helped me understand a lot of functionality.

  • @_Mad_Max__
    @_Mad_Max__ 2 месяца назад +3

    since so many people get this video while sleeping/ waking up I am convinced yt algorithm somehow counts in the factor at which relativ time of day a video is watched.
    Which is kinda cool and also explains why everybody is watching the same typ of 3am videos 😂😂😂

  • @adamrobertson2048
    @adamrobertson2048 7 месяцев назад +40

    Why did I fall asleep watching who remembers and wake up to this playing. Seems a BUNCH of people are in the same boat so whats going on RUclips lol

    • @collt091
      @collt091 7 месяцев назад

      THATS WHAT IM SAYING

    • @yisraelG
      @yisraelG 6 месяцев назад

      I feel watched bro

    • @Shelby_Erilyn
      @Shelby_Erilyn 3 месяца назад

      It’s coding us 😂

  • @itzsaucy5715
    @itzsaucy5715 2 года назад +4

    You just made me realize I don't love web development. I want to be a video game developer. Thank you so much for helping me come to this realization. I've been working on following this tutorial and, throughout the course of the video, I've had more fun doing this than ANYTHING I've ever done or can Imagine doing in web development.

  • @TheClumsyChicken
    @TheClumsyChicken 2 месяца назад +4

    I fell asleep watching RUclips, woke up, checked my watch history, and found I was 3:15:03 into this video. I know nothing about JavaScript and have no idea this was recommended to me, but that’s cool I guess

  • @eduardorpg64
    @eduardorpg64 2 года назад +50

    I'm in the 2 hour mark, and the quality of this tutorial is amazingly high. You explain what each part of your code does. You explain the overall algorithm that you use. You use visual tools to draw onscreen (like the red rectangles) to better explain your ideas. Also, you left a link so that people can download the assets that you used in this video.
    If I had money, I would pay for your courses. I don't mind watching ads in this video. I want to support you in any way that I can. You're an amazing instructor, and you clearly like teaching.

  • @juliocodes
    @juliocodes 2 года назад +8

    Awesome dude! Glad to see these game videos are blowing up for you. The JavaScript content that you've been putting out for years is gold!

    • @ChrisCourses
      @ChrisCourses  2 года назад +9

      Thanks man, definitely felt like RUclips was sleeping on me the past year or two, but glad to see things starting to take off now 😄

  • @Audio-Tales
    @Audio-Tales Год назад

    Not only is this for free , he’s literally explaining each line of code in a way anyone can understand. you’ve gained a subscriber, thank you so much 🇿🇼

  • @smarkbark
    @smarkbark 2 года назад +23

    I spent all weekend going through this and building along.
    This was so amazing. Thank for sharing this.

  • @ahmadkhaled7497
    @ahmadkhaled7497 2 года назад +6

    I can't thank you enough for the amount of info that you've provided. I started this project a month ago and now I can gladly say that l've finished my first big project / game using JS. Thank you sooo much Chris, Respect from Egypt.

  • @SephisJolly
    @SephisJolly 6 месяцев назад +1

    I was watching Atozy fell asleep and woke up to look at my history. This Java script tutorial ended up in my history still clicked on it and watched it anyways well done sir ‼️😂

  • @laxlyfters8695
    @laxlyfters8695 2 года назад +50

    This tutorial is amazing I learned so much about inheritance and constructors made sense for the first time ever and now class components, hooks and props now make more sense I used to get so confused about "passing props" so much was shown here, switch, cases, conditionals, classes understanding the scope of this. Amazing so much learning without realizing it

  • @sammyweoweo8567
    @sammyweoweo8567 7 месяцев назад +6

    bro how am i waking up to this every single time that’s freaky

  • @viniciomartinezlopez495
    @viniciomartinezlopez495 6 месяцев назад +1

    Not only did I wake up to this, but I remember dreaming that I was actually coding a game. Amazing

    • @Shelby_Erilyn
      @Shelby_Erilyn 3 месяца назад

      Plot twist he was coding YOU

  • @jerzykepinski
    @jerzykepinski 2 года назад +6

    Man this is fantastic. I love how you explain every single detail and also add context.

  • @robzonefire
    @robzonefire 8 месяцев назад +9

    I fell a sleep and somehow ended up dreaming your instructions wtf hahaha

  • @heleenzzz
    @heleenzzz 8 месяцев назад +1

    Glad to see you still uploading videos. Keep going!

  • @dafjiahosdasdof
    @dafjiahosdasdof 7 месяцев назад +25

    this guy has the sleep algorithm

  • @Fuchsi_223
    @Fuchsi_223 8 месяцев назад +327

    Howd i wake up here

    • @elmalleable
      @elmalleable 8 месяцев назад +4

      I slept watching mkbhd waveform. Woke up to this.
      I've been on and off trying to learn game prgrmn. This is incredible

    • @StrixsMC
      @StrixsMC 8 месяцев назад +3

      Literally i'm here bc the fucking same reason

    • @tyalk_3565
      @tyalk_3565 7 месяцев назад

      same😂

    • @eponawarrior7492
      @eponawarrior7492 7 месяцев назад

      Bruh same 😂

    • @TheSteducky
      @TheSteducky 7 месяцев назад

      Just happened to me too, went to sleep watching Mr Ballen, woke up here 😂

  • @teku6678
    @teku6678 2 месяца назад +2

    I started off with a warhammer lore video, fell asleep and woke up 2 hours into this video. Hello travelers

  • @Aceofspadesvr
    @Aceofspadesvr 9 месяцев назад +1627

    Who else woke up here
    Edit: OMG THANKS FOR THE LIKES I WAS GENUINELY NOT EXPECTING THIS MUCH HOLY COW!!!

    • @andongoshev4146
      @andongoshev4146 8 месяцев назад +40

      Omfg i woke up without even knowing that im watching that video

    • @brazilianboss10
      @brazilianboss10 8 месяцев назад +59

      how the fuck are we all waking up to this video

    • @NYI2010
      @NYI2010 8 месяцев назад +20

      2 hours mind you I think I got drugged 😅😅

    • @BucketHatGang568
      @BucketHatGang568 8 месяцев назад +6

      Bro Yes

    • @therealtroy8275
      @therealtroy8275 8 месяцев назад +5

      Fell asleep watching LGR

  • @infomatters.
    @infomatters. 2 года назад +8

    I really loved the process, thank you for sharing it with us.
    You deserve million subscribers.

  • @SonjaMGFX
    @SonjaMGFX Год назад +1

    Amazing! Can't believe you put out an entire 4h course on RUclips. Really appreciate it, learned a lot!

  • @snakone
    @snakone 2 года назад +10

    Hello, i really liked what you did so i made my own game following your tutorials, I didnt copy/paste any single line of code, first i watched and understood all the chapters one by one then i wrote my own implementation.
    So here's what i did:
    - Typescript instead of js
    - Added backwards animations and sprites (attack in both directions)
    - Fixed some bugs like infinite jumping, cross the edges, prevent attacking while attacking, etc...
    - Added new sounds & attack animations while attacking, this last only triggers while on the air
    - Added Figther stats, such name, HP, ATT, DEF, VEL, these stats affects the actual gameplay
    - Changed some sprites, added white animation to second player Take Hit.png
    There are many things to do after, with all of this, like character select, you can make character act different if you set different stats on them. Also i tried to apply the `hold` property of the Sprites individually but since this is coming from the parent, so the sprites list should return a list of intances of Sprites rather than a plain object so you can set the hold indivially on them, problem is, passing the position to each of them.
    Saying this, hope you like it as much i did yours!
    DEMO: samurai-battle.netlify.app/
    CODE: github.com/snakone/samurai-battle
    Cheers!!!

    • @candymanmonster4880
      @candymanmonster4880 2 года назад +2

      Hey, amazing work. I tested out your demo, however, it has a 1-2 second delay for each action.
      How did you fix the prevent attack while attacking bug? This has been bothering me for a while and I can't seem to figure out what's causing it.

    • @snakone
      @snakone 2 года назад

      @@candymanmonster4880 I added some websocket support to play online, It goes smooth for me
      Prevent the attacking bug: Fighter.ts line 72

    • @candymanmonster4880
      @candymanmonster4880 2 года назад

      @@snakone Thanks, but I still couldn't figure out what exactly is causing the prevent attack while attacking bug in Chris's code. Where did he go wrong? If you could explain that to me, it would be really great. Been struggling with it, and it's annoying.

    • @candymanmonster4880
      @candymanmonster4880 2 года назад

      @@snakone Please respond whenever you have time, 2 mins of your time would mean so much to me. Please.

    • @snakone
      @snakone 2 года назад

      @@candymanmonster4880 before you attacking just check is this.attacking is already true, then return

  • @FernandoTurcios-tr4ig
    @FernandoTurcios-tr4ig 6 месяцев назад +4

    your voice is the first thing i hear in the mornings STOP IT

    • @ChrisCourses
      @ChrisCourses  6 месяцев назад +1

      😂 some of these comments are great

  • @VeritasPlus
    @VeritasPlus 7 месяцев назад

    I wasn’t sure how I got here except I fell asleep and was hearing someone talking at 1.5x speed - I slowed it down and found Chris!
    Needless to say, I slowed it down and noticed it was a tutorial!
    Tbh, I haven’t written code in a long time, feeling defeated from a previous stressful [startup] job of 3 years… but after watching this, this made me happy.
    I’m going to look at more of Chris’ courses and look at other short tutorials … hoping I get that joy back with coding something that means something.
    … thanks so much, Chris 😊

  • @nomltefindingthis
    @nomltefindingthis Год назад +5

    i fell asleep watching youtube, wake up and check that this video is completely watched in my recently watched, the scary thing is that the was coding in my dream. I’ve never coded before

  • @javohirhak
    @javohirhak 2 года назад +30

    wooow i think you're not Frontend dev, you are Game dev! Keep going! Good luck 😀😁😁🔥🔥🔥

  • @tigershav
    @tigershav 2 месяца назад

    ~~so far this has been the perfect refresher for me to get back into programming~~
    for anyone in a similar boat to me with some experience in programming but a little bit rusty this tutorial covers:
    -some html basics
    -some css basics
    -javascript basics
    -object oriented programming basics
    -game mechanic basics
    -animation basics
    I still have about an hour to go so I may have missed something that is included near the end.
    this tutorial is well worth the time. many other tutorials simply teach you to regurgitate code but this man really teaches you important concepts (clean and robust code) for your projects going forwards. (you're not just writing one 2,000 line illegible file).

  • @_RKPhoenix_
    @_RKPhoenix_ 8 месяцев назад +3

    It seems that when one puts on RUclips to listen to as they sleep, they always wake up here

  • @meta91live
    @meta91live 8 месяцев назад +28

    Why did I go to sleep and everyone is waking up here😂
    Update: NAHH WHAT IT HAPPENED AGAIN BRUH

  • @kevindean8312
    @kevindean8312 3 месяца назад

    Nice job on tutorial Chris. I completed the whole tutorial and learnt a ton! Coming from a backend developer (mainly PHP) with over 20 years experience.

  • @danielwilde6626
    @danielwilde6626 2 года назад +6

    Thank you very much for a another great tutorial. I have learn so much from you, you cant imagine. Chris you are the best! A very VERY good teacher. Stay healthy and strong!

  • @blxck_smith
    @blxck_smith 7 месяцев назад +4

    I literally fell asleep and woke up to this 💀💀💀💀

  • @marknewellmusic
    @marknewellmusic 10 месяцев назад

    This was fantastic a year ago and it's nice to see it get the recognition it deserves - 3.8 million views.
    Well done and thanks for your efforts, epic vid.

  • @mufeng4182
    @mufeng4182 2 года назад +4

    This is just AMAZING! thanks Chris! Hope to see more of your high-quality tutorial

  • @JayPrinceReacts
    @JayPrinceReacts 7 месяцев назад +3

    Bruh I wasn’t even sleeping, I got out of my car walked into my apartment opened up my phone and I’m greeted with this random ass Video 💀

  • @paultapping9510
    @paultapping9510 9 месяцев назад

    This has to be one of the best tutorial videos out there. You have an excellent way of concisely explaining everything you do, as you do it. Four hours extremely well spent! I'll be coming back to code along with some time soon. One feature I particularly want to see implemented is blocking and parrying, maybe even a posture meter.

  • @jellertja
    @jellertja 2 года назад +9

    Man i wish you were around when i first started learning JS. Would have made it sooo much easier! Really amazing tutorial! Please continue with these long in-depth tutorials, you're doing really great! Thanks alot man!

  • @jyvonperry1042
    @jyvonperry1042 8 месяцев назад +5

    Idk why or how I woke up to this but somehow it snuck into my dreams ???

  • @felix.thephoenix
    @felix.thephoenix 7 месяцев назад +1

    All the roads lead to this video, help how do I make it stop 🙈🤣 no matter what was I watching previously, after a couple hours I wake up or go check my phone for whatever reason and IT'S ALWAYS PLAYING THIS VIDEO!! HOW???
    Also props to the algorithm, it really loves your stuff 🤖🧑🏻‍💻💚

  • @ToddsDiscGolf
    @ToddsDiscGolf 2 года назад +34

    I’m currently studying JS, html, css etc. to switch careers but secretly my goal is to develop my own games. This video is exactly what I needed for inspiration that I’m on the right track! I understood so much of it.
    Truly awesome to post this entire 4-hour tutorial touching SO many subjects from Object Oriented Programming to classes and methods and the DOM and html and css and even GitHub! Seriously broad lesson! Can’t thank you enough for doing it and I hope it gets lots of people to sign up for your other premium lessons! Create that passive income and live the dream! 👍👍😁

    • @pawiematias4670
      @pawiematias4670 2 года назад +1

      goodluck

    • @blackdragon4293
      @blackdragon4293 2 года назад

      Good luck and could you please help me with something,do you perhaps know which code editor he used, if you don't,which one did you use?

    • @isaiahthompkins614
      @isaiahthompkins614 2 года назад +1

      @@blackdragon4293 I think he used Sublime Text but I also recommend VS Code

    • @blackdragon4293
      @blackdragon4293 2 года назад

      @@isaiahthompkins614 thanks alot

    • @tanura5830
      @tanura5830 2 года назад +1

      Wow I have same goal about game dev and passive income but I know it's very difficult. I don't use JavaScript or web stuff for games.

  • @robferreri_katfishstudios
    @robferreri_katfishstudios 2 месяца назад

    Woke up this morning to this playing. I fell asleep watching a Linus Tech Tips video, so I can kinda see how this played. But, I found it very interesting and will be popping back to the start and actually watching this. Great way of explaining and seems very easy to follow along. Thanks Algorithm!

  • @abdelmajidkansoussi6904
    @abdelmajidkansoussi6904 2 года назад +5

    this guy is very underrated

  • @Mango05307
    @Mango05307 5 месяцев назад +3

    Bro I fell asleep at around 2 AM to a vsauce video and I woke up at 6 AM with this playing ? Lmao

  • @welra3376
    @welra3376 5 месяцев назад +1

    woke up to this. crazy thing is, making a fighting game is a dream to me.

  • @vikstu6816
    @vikstu6816 2 года назад +4

    You could release that as a playlist with 10-15 episodes, I think it's easier to keep pace. But I just watched the first minutes and I'm loving it!!! Thank you!!!

    • @lbb2rfarangkiinok
      @lbb2rfarangkiinok 2 года назад +1

      the rider on the side of the video basically serves to divide it up into multiple sections, but I did not notice it until about the 90 minute mark haha

  • @Old_SDC
    @Old_SDC 2 месяца назад

    I was watching a video about Conway’s game of life, woke up to Facebook open, switched to RUclips and I have apparently watched this video now? 10/10 video would watch while asleep again

  • @Genie_Juniper
    @Genie_Juniper 2 месяца назад +3

    Okay but more people should talk about the sleep algorithm because it’s insane we all woke up to this video

    • @jarrettpratt3289
      @jarrettpratt3289 2 месяца назад

      Just woke up tot his last night. Definitely something going on….

  • @Pladouvious_shingledingle
    @Pladouvious_shingledingle 3 месяца назад +3

    Aint even watching this when i wake up. Im watching this while i go to sleep fr

  • @Henkka008
    @Henkka008 6 месяцев назад +2

    Woke up from bed and noticed this video was on.. seems interesting so mind as well learn this.

    • @annacurransmotherofmeghanc1841
      @annacurransmotherofmeghanc1841 6 месяцев назад +1

      Yeah crazy I considered myself a moderate libertarian before I fell asleep and I Woke up to this totally Woke!!! I couldn't even figure out what bathroom to use!!!

  • @Peanutbutterjif
    @Peanutbutterjif 6 месяцев назад +5

    Why is this always what I wake up to. This is like the 7th time

    • @l.v1473
      @l.v1473 6 месяцев назад +2

      Im on my 6th😂😂

  • @kelsierii4747
    @kelsierii4747 2 года назад +8

    Absolutely amazing tutorial! Its exactly my type, practical and without assuming I know anything, also no unnecessary libraries or databases I couldnt care less about, thank you!!

  • @Bruh_come_on
    @Bruh_come_on 7 месяцев назад +2

    Why do I keep waking up to this this is the 5th time I’m at the 1:36:28 mark now I now how to make games no man I’ve been having dreams of this man’s voice

    • @trinity6880
      @trinity6880 7 месяцев назад

      Lmaoo yes

    • @AlexEFrair
      @AlexEFrair 7 месяцев назад

      Mine’s at 1:36:57 wtff

  • @IllustriousMelchior
    @IllustriousMelchior 2 года назад +4

    This was such an amazing tutorial! I was looking for a cool project to demo to some eager middle schoolers and found your video. I thought I would just skim it to see if it would be a viable demo and ended up following along all the way through. Thanks for sharing the knowledge!

  • @tomasburian6550
    @tomasburian6550 2 года назад +6

    This is the bomb, love creating games in JS! Love 2D fighters (Street Fighters), isometric fighters (Final Fight) and racing games (Outrun) and making their counterparts in JS. What a great tool! :)

  • @lindboknifeandtool
    @lindboknifeandtool 7 месяцев назад +1

    You’re getting those good good RUclips premium back play watch time.
    Idk why we’re all here but cool. I had this in watched later

  • @kamptey
    @kamptey 6 месяцев назад +3

    bro wtf i woke up for work and now i'm here

  • @jdd1325
    @jdd1325 2 года назад +20

    Hi Chris! 🥵🥵🥵 You are so easy on the eyes it makes it super simple to follow these courses 😉
    Can't wait to follow this course. Going to save it for next weekend when I have some time. As always thank you for your hard work putting these together.

  • @willowNovella
    @willowNovella 3 месяца назад +2

    Just woke up and some dude named Chris is teaching me how to code

  • @slein1337
    @slein1337 2 года назад +8

    Wow, I really loved this tutorial. Thank you so much!
    The only thing I edited was a small if statement to get rid of jumping in the air.
    And I'm not very firm with github, but I had to make a commit of the code in my fighting-game folder before I could push it to github. This is most likely trivial for everyone accustomed to it, but I struggled some minutes. :D

    • @auberginepomegranate2742
      @auberginepomegranate2742 2 года назад

      I'm new to js, could you please tell me how you fixed the mid air jump?

    • @slein1337
      @slein1337 2 года назад +4

      @@auberginepomegranate2742 For the eventListener on keydown I edited the case for "w" and "ArrowUp" with this 'if (player.velocity.y === 0) player.velocity.y = -20;'

    • @InfoRevv
      @InfoRevv Год назад

      for anyone seeing this, this code also has a bug where if the players velocity gets to zero in the air the person can time it right and still double jump. It is best to use a boolean variable@@slein1337

  • @yeyo3162
    @yeyo3162 7 месяцев назад +4

    How did I wake up to this midnight and ive never watched anything about gaming or coding....

    • @LarsenBour
      @LarsenBour 7 месяцев назад +1

      Me too i really dont get it

    • @yeyo3162
      @yeyo3162 7 месяцев назад

      @@LarsenBour the number of people saying the exact same thing too like wth lol

    • @Kanoun91
      @Kanoun91 7 месяцев назад

      Me two I have never seen like these videos before and I woke up to this🥲

  • @RbkUrge
    @RbkUrge 2 месяца назад

    Fell asleep watching a sourdough pizza video, and woke up 3hrs and 25 minutes into a javascript video. Best sleep I've had in a long time.

  • @ay_its_jay4073
    @ay_its_jay4073 2 месяца назад +5

    Woah, the fact that all of us woke up here is weird, I wonder if anyone has looked into why, and how, the algorithm did that

    • @FaT_LuNgZZ
      @FaT_LuNgZZ 2 месяца назад +3

      Acabo de levantarme en este video, y eso que hablo español

    • @modernNeanderthal800
      @modernNeanderthal800 2 месяца назад

      Ha. I wonder if this changes over time.
      I'm normally watching videogame facts to some extent or another. If a person watches other content regularly I wonder if the video changes

    • @modernNeanderthal800
      @modernNeanderthal800 2 месяца назад

      Oh yeah and add the fact that I'm literally a JS engineer

  • @237910722
    @237910722 2 года назад +18

    I wrote my first game in LUA, the physics are quite difficult to implement, especially if in your head the characters have some kind of interaction with the environment, I think this is a good example of a first game with the beautiful pixel design, for Of course, the ideas are so many that sometimes it frustrates us not being able to implement them quickly but if we like this, it's worth it, there is no better feeling that something works just the way you like it. :)

  • @MaxiSniper
    @MaxiSniper 8 месяцев назад +2

    bro i fr just woke up before school and this video is here

  • @VenomRaiders
    @VenomRaiders 2 года назад +4

    This is a clear example to anyone starting programming that the issue is not how well you can code but how you can use code to solve a problem.

  • @Aukiiii
    @Aukiiii 8 месяцев назад +23

    I was watching art restoration and woke up to this shit💀

  • @Aresplaysgd
    @Aresplaysgd 5 месяцев назад +1

    Its like the youtube algorithm is like "Oh look! He is asleep! Time to redirect to this video" like before i never had this after waking up, but for the past 6 months ive woken up to this like 10+ times

  • @vasilisablud
    @vasilisablud 7 месяцев назад +28

    Can someone please explain to me how the algorithm brought SO MANY sleeping people specifically to this video I'm so confused.

  • @livetobe2079
    @livetobe2079 8 месяцев назад +6

    Why did I wake up here AGAIN

  • @flammifer451
    @flammifer451 2 месяца назад

    I didn't even wake up to it, I literally closed my eyes for ten seconds after the the completely unrelated previous video ended, and this one started playing. Though this is actually something I'm interested in, so thanks to the mighty algorithm, I guess.

  • @dimalepel
    @dimalepel 2 года назад +4

    Hello. Thanks for the video. What kind of todo app are you using?

  • @99percentcarr0t
    @99percentcarr0t 7 месяцев назад +9

    woke up here how's it going y'all who also woke up here

    • @loganson590
      @loganson590 7 месяцев назад +1

      Holy shit I thought I was going crazy this is the fifth or sixth time this has happened I've never once clicked on this video how does this happen

    • @itaysd3721
      @itaysd3721 7 месяцев назад

      WAIT IM NOT THE ONLY ONE

  • @yzzygomez
    @yzzygomez Год назад

    Sometimes I forget why i love JS. You just made a noddle soup of a code there and works like a charm and no one should tell you is wrong ❤️

  • @bankspoke5551
    @bankspoke5551 2 года назад +4

    awesome. All of your tutorial, but what about a multiplayer / socket tutorial to make all of these game online ?

  • @aylictal
    @aylictal 2 года назад +4

    Your animation data (like framesMax, and filepath, and cropping information or other relevant info) is usually pulled out into a seperate json file, then loaded in for your engine to consume, but what you're doing is obviously fine.
    One thing that was irking me a bit was switchSprite @2:47:00. rather than making a giant switch which has to be maintained for every new sprite addition you add, this could mostly all be handled in an object literal lookup with a single string argument sent to this function under certain gamestate scenarios.
    Example:
    switchSprite(arg){
    this.image = this.sprites[arg].image
    this.framesMax = this.sprites[arg].framesMax
    this.framesCurrent = 0
    }
    Doing it this way will work regardless of any new additions of sprites you add to this class and massively reduce the amount of repeated code in there.

    • @ChrisCourses
      @ChrisCourses  2 года назад +2

      Stealin this for the future

    • @aylictal
      @aylictal 2 года назад +1

      @@ChrisCourses no worries. Thank you for an entertaining video too man I enjoyed it. I commend you for sticking with JS rather than typescript. Theres still many of us that still prefer it like myself :)

    • @ChrisCourses
      @ChrisCourses  2 года назад

      @@aylictal I prefer it that way too 🤫 Can't let too many people know that these days without getting attacked haha