JavaScript Fighting Game Tutorial with HTML Canvas

JavaScript Fighting Game Tutorial with HTML Canvas

Chris Courses

2 года назад

6,129,704 Просмотров

Ссылки и html тэги не поддерживаются


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

Mikel Shael
Mikel Shael - 08.11.2023 22:15

First of all I would like to thank you for the great videos you create for us. You are a great teacher and I can easy follow and understand the thought process. A video about a multiplayer game would be highly appreciated! Maybe turning this game into a multiplayer version, and the thought process what should be execute on the server and why...that would really help 😅. I hope you keep creating content, because the quality of information exceptionally good ❤

Ответить
Carlo
Carlo - 08.11.2023 20:29

hello! can I ask on how do you avoid the jump spam? when I spam the jump button, it just goes up. Can I set an interval for it? like when I hit the ground?

Ответить
Griffin Kirkland
Griffin Kirkland - 08.11.2023 16:11

protect this human at all costs 🙏

Ответить
Bosko A.
Bosko A. - 05.11.2023 02:35

Just add this to animate function and you don't need the "lastKey" variable anymore:

let velocityX = 0;
if (keys.a.pressed) {
velocityX -= 5;
}
if (keys.d.pressed) {
velocityX += 5;
}
player1.velocity.x = velocityX;

Motion becomes more intuitive (when both keys are pressed, they cancel out each other) and you don't have a problem with the cancellation of velocity if both keys are pressed, but only one is lifted up; when lastKey is implemented, "keyup" on any key leaves the lastKey on the value of that key, so the (still) active key does nothing.

Ответить
battleWhite
battleWhite - 31.10.2023 21:00

It is responsive game ?

Ответить
CadetSparklez
CadetSparklez - 31.10.2023 05:27

javascript and html, sounds terrible

Ответить
melanie baldwin
melanie baldwin - 30.10.2023 06:52

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

Ответить
AM27
AM27 - 28.10.2023 20:32

Amazing devlog as usual. Hopefully the unity saga didn't stress you out too much over the past month or so!

Ответить
Marianne McDonald
Marianne McDonald - 28.10.2023 16:52

Thanks, Jan!! :)

Ответить
RaoftheSun
RaoftheSun - 24.10.2023 09:02

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.

Ответить
EduFL4M3
EduFL4M3 - 24.10.2023 06:38

Hi, I'm using the Brackets code editor in my Mac and at the 1 hour mark I decided to re-name the folder and my code no longer works. Will I have to re-write everything? (will that even work?), is there a solution? Please help.

Ответить
kdlm90
kdlm90 - 20.10.2023 07:42

Hi! I bought the key and I got I/O service could not perform operation. =( I have Epson L3110 and did make sure it was in the compatibility table, do you know if there is any online support ??

Ответить
Not a cat
Not a cat - 18.10.2023 09:48

Will be coming back to this hopefully as I’m trying to better myself in life

Ответить
Magic Plants
Magic Plants - 18.10.2023 03:45

Why don't you have tabs enabled in Sublime? Horrible having to switch windows like that

Ответить
Aniket Datta
Aniket Datta - 18.10.2023 01:44

Banana qqnnnnnn nno

Ответить
Raska The Slaanesh
Raska The Slaanesh - 17.10.2023 02:27

Where OOP?...
Proper state machine?
Interfaces?
Enums?
...
I know its hard, but rather learn proper than halfway

Ответить
DeinLieblingsTimmey
DeinLieblingsTimmey - 16.10.2023 17:33

OO whaaat. A dream !!!

Ответить
𝕮𝖍𝖗𝖎𝖘𝖙𝖔𝖕𝖍𝖊𝖗 𝕽𝖊𝖎𝖑𝖑𝖞
𝕮𝖍𝖗𝖎𝖘𝖙𝖔𝖕𝖍𝖊𝖗 𝕽𝖊𝖎𝖑𝖑𝖞 - 16.10.2023 06:22

Not bad. I played the demo, but kinda found a bug, I think. When I press the UP ARROW and HOLD IT, my character double jumps and keeps rising in the air. Then when you let go of arrow, it takes as long as you held the arrow for, for him to land. Maybe you can add a collision detection for the top?

Ответить
N
N - 13.10.2023 14:23

So now we’re going to go ahead and So now we’re going to go ahead and So now we’re going to go ahead and So now we’re going to go ahead and So now we’re going to go ahead and So now we’re going to go ahead and So now we’re going to go ahead and So now we’re going to go ahead and

Ответить