-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.
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
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
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
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.
The TH-cam 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
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.
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 😅
@@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.
@@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
@@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.
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.
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?
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.
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.
@@ChrisCourses unfortunately that is something that sucks for content creators on TH-cam but you guys can have paid ads inside the video itself and you talking about it so AdBlock is useless in that case
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
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 😂😂😂
I fell asleep watching TH-cam, 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
~~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).
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 🇿🇼
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.
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.
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.
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!!!
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 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.
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 😊
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! 👍👍😁
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!
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.
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!
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.
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
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!!!
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
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!
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!
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.
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. :)
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
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!!
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 For the eventListener on keydown I edited the case for "w" and "ArrowUp" with this 'if (player.velocity.y === 0) player.velocity.y = -20;'
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
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!!!
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! :)
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.
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 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 :)
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 🤖🧑🏻💻💚
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 ‼️😂
Just completed the full video and want to say I would happily pay for a premium course that expands on this. I've been wanting to learn about SF style AI for a while now. Would also be good to learn about things like stun lock and inputting special moves. I've got a general idea about how to do things like this but would love to see a clean way of doing it.
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
I fell asleep watching HoofGP to then wake up to be three hours 36 minutes and 16 seconds into this video. (3 months later) Update: IT HAPPENED AGAIN WTF
I was watching a video about Conway’s game of life, woke up to Facebook open, switched to TH-cam and I have apparently watched this video now? 10/10 video would watch while asleep again
-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.
It's at 475k views now? What do you mean?
Do i need to know canvas before starting this project?
@@unibrow9384 no. But u need to have background in Programming to understand. Specially in constructors class and methods.
@@TheOnlySirC yah, it's good and I'm happy as he deserves views more than that with the value of the tutorial.
@@jasonbatester5784 Yeah, I'm familiar with those and JS as well.
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
Well JavaScript does put people to sleep
wtf this just happened to me too
This video was always recommended to me when I'm asleep listening to TH-cam.
@@adamrobertson2048Yeah me too and this is weird
D m😮😊😅😊😊@@lazygamer923
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
This is gonna be very out of context but
Anyone noticed that 💀 has became the new O_O
it keeps happening
Oh my god not again
@@Oogabooga147Lmao time to become a developer bud
Bruh I was watching the Technology Connections video about flash photography featuring Gavin from the Slo Mo Guys.
Just woke up and I realize that I actually learn more stuff from this man while I was sleeping then I learned in school.
This is my second time.
@@kornknot2726❤😂😮🎉🎉😂😢❤🎉😂😢🎉🎉😂🎉😂
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
Came as far to 2:37:26 😭
Bro I was watching Vsauce, like how
@@EKO420Glmfaoo!!! I’m 3:03:43 this point like dawg why
I made it to the end
@@Yoshikage_Kir4on gaad
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.
why did this make me emotional
LMFAOOOOOOOOOOOO
Help 😭
😂😂😂😂😂
Absolutely amazing tutorial i literally watched 1h while asleep😂 and i learned so much. Btw why do everybody else wake up to this video
Yeah, quite a few of us. I've become a sleep coder by now lol
Hmmm it might be a suggestion feature triggered by time of day. If everyone is getting under the same circumstances.
I watched all 4 lol
God is tryna tell us something lolol
@@joshluna1956 make games?
I was scrolling through my TH-cam history and figured out that this video was running while I was sleeping.
ME TOO
Wth me too lol
yeah me as well lmaooo
Same so annoying
Yeah!
Bro, I went to sleep, I woke up and this was here
Update: IT HAPPENED AGAIN WTH
Me too
Haha I was watching a blender tutorial and fell asleep and woke to this. but I also use HTML and JS
@@SavageGTI same, I am also a programmer but, why always this video? Why my cellphone just decides to stop at this exact video?
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
same
If i keep waking up to this playing, I promise you I'll actually be able to code in my sleep
This is like the 6th time your videos came up while I was asleep....the algorithm clearly likes you😂
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
javascript game tutorial ❌ people waking up from sleep ✅
lol
Frl wtf what is this sorcery
That legit just happened to me dafq
I wake up in some weird places
Bro this happened to me😭😭
I’ve never watched any coding videos or any videos like this ever I fell asleep with TH-cam on and woke up halfway through at 3 am 😂
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.
The TH-cam 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
I hate this shit so much. It keeps coming up on my autoplay. I report this video every time.
Bro I accidentaly fell asleep while watching a completely different thing and I woke up here 😂
this is possibly the best course of beginners who has no idea of game mecahnics and stuff. thank you a lot learnt a TON.
Got another just released which I think might rival it 👀
Who else woke up here
Edit: OMG THANKS FOR THE LIKES I WAS GENUINELY NOT EXPECTING THIS MUCH HOLY COW!!!
Omfg i woke up without even knowing that im watching that video
how the fuck are we all waking up to this video
2 hours mind you I think I got drugged 😅😅
Bro Yes
Fell asleep watching LGR
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.
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 😅
@@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.
@@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
@@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.
th-cam.com/video/lhUmi27cDcs/w-d-xo.html the sauce
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.
same here im kinda new to javascript
never say never :)
you can, bro. You know it deep inside, everyone knows actually)
No you woke up for this
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?
I wasn’t even watching anything related to this. And STILL woke up to this. 😂😂😂
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.
Same broo
I've only seen 28 minutes so far but this is one of the best tutorial I've ever seen. A blessing.
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.
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 TH-cam lol
THATS WHAT IM SAYING
I feel watched bro
It’s coding us 😂
This man is giving these tutorials for free! What a beast.
Indeed!
@Focus making people happy makes him rich
there is something called AdSense
@@GeekBastion And AdBlock 😉
@@ChrisCourses unfortunately that is something that sucks for content creators on TH-cam but you guys can have paid ads inside the video itself and you talking about it so AdBlock is useless in that case
Howd i wake up here
I slept watching mkbhd waveform. Woke up to this.
I've been on and off trying to learn game prgrmn. This is incredible
Literally i'm here bc the fucking same reason
same😂
Bruh same 😂
Just happened to me too, went to sleep watching Mr Ballen, woke up here 😂
Glad to see you still uploading videos. Keep going!
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!
Thanks man, definitely felt like TH-cam was sleeping on me the past year or two, but glad to see things starting to take off now 😄
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
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 😂😂😂
I fell asleep watching TH-cam, 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
bro how am i waking up to this every single time that’s freaky
~~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).
I spent all weekend going through this and building along.
This was so amazing. Thank for sharing this.
the game is responsive ?
wooow i think you're not Frontend dev, you are Game dev! Keep going! Good luck 😀😁😁🔥🔥🔥
+++
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 🇿🇼
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.
Man this is fantastic. I love how you explain every single detail and also add context.
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.
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.
this guy has the sleep algorithm
Amazing! Can't believe you put out an entire 4h course on TH-cam. Really appreciate it, learned a lot!
I really loved the process, thank you for sharing it with us.
You deserve million subscribers.
your voice is the first thing i hear in the mornings STOP IT
😂 some of these comments are great
You’re getting those good good TH-cam premium back play watch time.
Idk why we’re all here but cool. I had this in watched later
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!!!
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.
@@candymanmonster4880 I added some websocket support to play online, It goes smooth for me
Prevent the attacking bug: Fighter.ts line 72
@@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.
@@snakone Please respond whenever you have time, 2 mins of your time would mean so much to me. Please.
@@candymanmonster4880 before you attacking just check is this.attacking is already true, then return
I fell a sleep and somehow ended up dreaming your instructions wtf hahaha
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 😊
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! 👍👍😁
goodluck
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?
@@blackdragon4293 I think he used Sublime Text but I also recommend VS Code
@@isaiahthompkins614 thanks alot
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.
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!
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.
Why did I go to sleep and everyone is waking up here😂
Update: NAHH WHAT IT HAPPENED AGAIN BRUH
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 💀
Not only did I wake up to this, but I remember dreaming that I was actually coding a game. Amazing
Plot twist he was coding YOU
your tutorial is way better than other online courses
It seems that when one puts on TH-cam to listen to as they sleep, they always wake up here
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!
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.
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
Idk why or how I woke up to this but somehow it snuck into my dreams ???
I started off with a warhammer lore video, fell asleep and woke up 2 hours into this video. Hello travelers
This is just AMAZING! thanks Chris! Hope to see more of your high-quality tutorial
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!!!
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
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!
Okay but more people should talk about the sleep algorithm because it’s insane we all woke up to this video
Just woke up tot his last night. Definitely something going on….
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!
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.
Bro I fell asleep at around 2 AM to a vsauce video and I woke up at 6 AM with this playing ? Lmao
Same bro 😮
I literally fell asleep and woke up to this 💀💀💀💀
woke up to this. crazy thing is, making a fighting game is a dream to me.
this guy is very underrated
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. :)
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
Lmaoo yes
Mine’s at 1:36:57 wtff
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!!
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
I'm new to js, could you please tell me how you fixed the mid air jump?
@@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;'
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
Woke up from bed and noticed this video was on.. seems interesting so mind as well learn this.
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!!!
bro wtf i woke up for work and now i'm here
Why is this always what I wake up to. This is like the 7th time
Im on my 6th😂😂
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.
Aint even watching this when i wake up. Im watching this while i go to sleep fr
same here
Woke up this morning and this whole thing was finished LOL idk where it came from
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! :)
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.
Ewwww, desperation :(
Lmaoo. Wtf is this
🐶💢🧹 bonk !!
Whoa, easy there friend 🙂
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 ❤️
Can someone please explain to me how the algorithm brought SO MANY sleeping people specifically to this video I'm so confused.
Like literally
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.
Stealin this for the future
@@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 :)
@@aylictal I prefer it that way too 🤫 Can't let too many people know that these days without getting attacked haha
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 🤖🧑🏻💻💚
How did I wake up to this midnight and ive never watched anything about gaming or coding....
Me too i really dont get it
@@LarsenBour the number of people saying the exact same thing too like wth lol
Me two I have never seen like these videos before and I woke up to this🥲
I was watching art restoration and woke up to this shit💀
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 ‼️😂
Hi Chris, These tutorials are amazing 👏. Could you also make a video on making it work on mobile too. Thanks!
Fell asleep watching TH-cam and this shi came on in the middle of my sleep and gave me the wildest dreams
Just completed the full video and want to say I would happily pay for a premium course that expands on this. I've been wanting to learn about SF style AI for a while now. Would also be good to learn about things like stun lock and inputting special moves. I've got a general idea about how to do things like this but would love to see a clean way of doing it.
Would love to make one at some point, just have to clear out the backlog of Pokemon, Space Invaders, and Pacman first 😅
awesome. All of your tutorial, but what about a multiplayer / socket tutorial to make all of these game online ?
bro i fr just woke up before school and this video is here
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
Acabo de levantarme en este video, y eso que hablo español
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
Oh yeah and add the fact that I'm literally a JS engineer
I fell asleep watching HoofGP to then wake up to be three hours 36 minutes and 16 seconds into this video.
(3 months later)
Update: IT HAPPENED AGAIN WTF
I was watching a video about Conway’s game of life, woke up to Facebook open, switched to TH-cam and I have apparently watched this video now? 10/10 video would watch while asleep again
Why did I wake up here AGAIN