Tower Defense Game Tutorial with JavaScript & HTML Canvas

  Рет қаралды 637,270

Chris Courses

Chris Courses

Күн бұрын

Пікірлер: 296
@ChrisCourses
@ChrisCourses 2 жыл бұрын
There's about 20-30min of audio that makes it sound like I'm submerged underwater. Had some electrical interference picked up somehow, so had to do my best to edit out some really annoying buzzing. Sorry in advance 😅
@saronarabeds6517
@saronarabeds6517 2 жыл бұрын
no matter
@abhilashLeader_07
@abhilashLeader_07 2 жыл бұрын
Its not ok🤣
@sekssgenoi
@sekssgenoi 7 ай бұрын
Нюбп😮бую🎉шюуг😅б😊😊руунжзр😊гзуш😅ш😮😮🎉ездют😅🎉юрий михайлович нгщ😅🎉где😢ю🎉😊уг😊ююпнн😊у 1:02:52 июраб избрнжубранзрщбув😊она😊ушгщжнню😅шд🎉😂🎉ладно🎉не😮😢эшшх🎉школа х😮😂😢 юл😢былюубвщуюшордшг🎉не😅юзв😊😊😊 1:29:45 шенйно🎉😂ему😅😅😮😊юб😂юбилей ру😂❤юш🎉ну-шу г😊ш🎉ею😊😊е🎉шнхууну чего не хватае Пир😮щ😊😊огово🎉 ш😊гова😊😮н😊н😅🎉е🎉он уже😊 не😅 1:29:52 😊ун😊шву😂😂елш🎉😊е😊😮г😂😊ыыщгвщ😮ж😅уже😊вешеуу😅в?😊незз😊этот й😊цщг😊ыее😮л 1:30:3б🎉🎉чйш😮йег🎉😅пбе😊е9🎉н😮у😮шее 1:31:01 😂гпув🎉🎉😂еу🎉шепу🎉 1:31:05 гшшюю😮😅😮еп❤🎉😊 😮еыш😊уулйеввш😂в😊😊шее😊😅цшеен🎉🎉🎉😮❤он👦👦🎉😢😊🎉шегнд🎉но щ🎉гц😊юшеш🎉леб😊🎉🎉😊🎉е😅🎉дещюше🎉🎉😅😂в😅😊вуннз😊😊д😊😊нынгш😮щбщды🎉щ🎉з😊ушд🎉о😢е😊🎉о😊 1:31:31 ю😂ш😊😊😅😮🎉д😊шу🎉дно😮🎉н😮😅в😮😊е🎉вдг😊н😢Юрченко з🎉щЩоювдр🎉😊ш😮😊ее🎉шэйш😅?😊г
@sekssgenoi
@sekssgenoi 7 ай бұрын
😊ш😅
@dragonlord3504
@dragonlord3504 7 ай бұрын
Üüüäüüä000ä​@@ollmacüä00ü0ü0
@bw4265
@bw4265 6 ай бұрын
Just woke up, first time waking up to this channel. Reading these comments is surreal.
@MrNoxdaddy
@MrNoxdaddy 5 ай бұрын
bro wth
@Destroyer2520
@Destroyer2520 Ай бұрын
Same
@xxblueberryxx8287
@xxblueberryxx8287 6 ай бұрын
Every single time when I fall asleep I wake up to this channel 😭
@mikebenson9423
@mikebenson9423 5 ай бұрын
I think the algorithm knows that we are sleeping so it finds calm and relaxing video to not wake up abruptly.
@theshelbizzle24
@theshelbizzle24 6 ай бұрын
How did i fall asleep to true crime and bodycam videos and have these videos play during my sleep? Ive mever searched for a coding video ever 😂
@silverthourne5119
@silverthourne5119 2 ай бұрын
Better than me lol I fell asleep watching NASCAR
@connerschair4759
@connerschair4759 Ай бұрын
I fell asleep to watching mechanics work on trucks then I woke up to this lmao😂
@devinmiles5204
@devinmiles5204 Ай бұрын
I fell asleep watching a brawlhalla video 😂
@mrwengorz1029
@mrwengorz1029 Ай бұрын
I fell asleep watching video about gambling addiction
@Octa
@Octa 6 ай бұрын
Just woke up to this channel and reading these comments are so funny
@allisondippold9445
@allisondippold9445 24 күн бұрын
Oh my god same here 😂😂 and the video was some how playing for two and a half hours
@BulletAgario
@BulletAgario 7 ай бұрын
I fell asleep with KZbin on and woke up an hour 30 mins into this video lol
@robbiepatrick6755
@robbiepatrick6755 7 ай бұрын
I keep waking up to this channel it’s the fifth time!!!
@kyrielnieves3224
@kyrielnieves3224 7 ай бұрын
Same😂😂
@WinWin-oo4uk
@WinWin-oo4uk 6 ай бұрын
I blame NileRed
@crypticscrutiny1153
@crypticscrutiny1153 6 ай бұрын
Any of you guys watch any Terraria conten? I think that's what's bringing me here because the rest of my stuff is fairly politically oriented.
@coolio464
@coolio464 6 ай бұрын
@@crypticscrutiny1153yo actually, same… that’s so wild
@crypticscrutiny1153
@crypticscrutiny1153 6 ай бұрын
@@coolio464 that's what's up! That's what's happening. The algorithm is bringing in Real Ones from Terraria content.
@fanona112
@fanona112 6 ай бұрын
Fell asleep to squishy and slime videos and woke up to this, 10/10.
@user-cw9md5gv5x
@user-cw9md5gv5x 6 ай бұрын
It’s crazy, I keep waking up to this video most nights 😭
@nomltefindingthis
@nomltefindingthis 11 ай бұрын
i fell asleep watching youtube, wake up and check that this video is 30 mins watched in my recently watched, the scary thing is that the was coding in my dream. I’ve never coded before
@benshakespeare268
@benshakespeare268 7 ай бұрын
Ha! Same here😄
@comoplaysdestiny5106
@comoplaysdestiny5106 7 ай бұрын
I fell asleep and woke up to this too
@JLneonhug
@JLneonhug 7 ай бұрын
Me too, mine the coding.
@martinjankovski680
@martinjankovski680 7 ай бұрын
Me too !
@Mmmmbrett
@Mmmmbrett 7 ай бұрын
Me tooo lololol
@name_69420
@name_69420 7 ай бұрын
Woke up here again.
@gavriloaialuca-ioan8060
@gavriloaialuca-ioan8060 6 ай бұрын
went to sleep with something normal and woke up here, too
@saintj7618
@saintj7618 5 ай бұрын
same
@killerman0918
@killerman0918 5 ай бұрын
same shit here
@heisenberg3868
@heisenberg3868 3 ай бұрын
Shit me too first time
@mareli7592
@mareli7592 Ай бұрын
i fell asleep with youtube on and woke up to a relaxing voice teaching me how to code. amazing
@forbiddengamers8068
@forbiddengamers8068 8 ай бұрын
I fell asleep and this was playing KZbin why do you make me go to the weirdest places😂
@uncandnephyt
@uncandnephyt 8 ай бұрын
same here lol
@Cadec33
@Cadec33 8 ай бұрын
just woke up, this has been playing for 3 hours 💀💀
@LeLocoTV
@LeLocoTV 8 ай бұрын
I WOKE UP TO THIS ?!?!?!
@mentalhealthcumulative
@mentalhealthcumulative 8 ай бұрын
@@LeLocoTV Same bro same
@CryptoMoney02
@CryptoMoney02 7 ай бұрын
Another soldier here who wake up to this lol
@GH0STPROD1GY
@GH0STPROD1GY 6 ай бұрын
I fall asleep to football (soccer) videos every night and yet I’m waking up to this played two hours through
@goop-ns9ts
@goop-ns9ts 5 ай бұрын
I like to think that chris courses is breaking into all of our houses and changing the video while we sleep
@rowancodes
@rowancodes 2 жыл бұрын
Please don't stop making these videos, you're providing a ton of value.
@nasiba8730
@nasiba8730 2 жыл бұрын
Thank you so much, Chris, my son really adores your channel! He claims that you inspired him to become a "Front End Developer." Your hard work means a lot for me as much as it does for my son. Keep up the great work!
@dabzbmg3197
@dabzbmg3197 2 жыл бұрын
Your last video helped me get a job, can't wait to build this. thanks again brother Chris.
@WhenYouGoToZahadoom
@WhenYouGoToZahadoom 2 жыл бұрын
bro...im someone who barly comments on youtube videos but without starting to watch this one I allready want to thank you. "You are a good man!"
@trashinGame
@trashinGame 2 жыл бұрын
We need to get this legend to 1M subscribers at all cost!
@ChrisCourses
@ChrisCourses 2 жыл бұрын
Plz do 😩
@oldgames6028
@oldgames6028 2 жыл бұрын
@@ChrisCourses you are the best
@LifeProgramming-n6m
@LifeProgramming-n6m Жыл бұрын
​@@ChrisCourses you are the best programmer
@noahr1545
@noahr1545 2 жыл бұрын
Yes!!! I've been waiting for this video since you announced the video! I'm really glad I found your channel. You explain things SO well and I didn't even realize you could create games with only JavaScript. Keep up the great work!
@ChrisCourses
@ChrisCourses 2 жыл бұрын
Thanks Noah, been putting in that work, but have more to go to make the channel succeed. Appreciate the comment and for tuning in!
@noahr1545
@noahr1545 2 жыл бұрын
No problem!
@romansalazar1371
@romansalazar1371 Ай бұрын
Lol, first time here, and I see we all woke up here. What’s up guys!
@trevorfranks69
@trevorfranks69 2 жыл бұрын
Keep making these tutorials man, im an aspiring front end web dev with no time to for personal projects like learning unity so im very grateful i can still express my creativity by doing these thanks to you
@billallwell6507
@billallwell6507 2 ай бұрын
What an absolutely superb course. Covers heaps of practical ground. Nearly through it all, will have to revise a bit, so much great content.
@idonthaveone60
@idonthaveone60 4 ай бұрын
I'm not the only one who fell asleep on yt and woke up to this playing?
@andydataguy
@andydataguy 2 жыл бұрын
Omg I love tower defense games!! Would be so much fun to practice javascript by making one of these. THANK YOU for this video 🙏🏾💜🙌🏾
@the_kid777
@the_kid777 4 ай бұрын
I just cannot tell you how many times you have saved my life. Thank you. Another problem solved, thanks to you.
@joaocesarlima7339
@joaocesarlima7339 Жыл бұрын
Another awesome tutorial! Your approach of adding layers of complexity little by little, without losing clarity and objectivity, is really cool. Congratulations and please continue!
@bobibobi-v8b
@bobibobi-v8b Жыл бұрын
In the near future when I will get a job , I promise I will donate money to your account, your tutorials are amazing and the way you explain is simple and straight to the point. I wish my college professors were teaching us the way you do. All the best
@ritarshichattaraj9552
@ritarshichattaraj9552 2 жыл бұрын
You have changed my perspective on game dev!!
@forati
@forati 2 жыл бұрын
Ok, hoje eu vou dormir às 4 da manhã e a culpa é sua. Ok, today I will sleep at 4am and is your fault. Ty m8, keep going. I learn a lot each video.
@Blockbuster-qx4xp
@Blockbuster-qx4xp 2 ай бұрын
Fell asleep and woke up here but that’s cool because coding is my dream
@djneils100
@djneils100 2 жыл бұрын
this is a superb tutorial - first rate explanation - great teacher
@ChrisCourses
@ChrisCourses 2 жыл бұрын
Thank you very much!
@adefunkeadedoyin9338
@adefunkeadedoyin9338 2 жыл бұрын
Chris thanks for your courses words can't describe how they have improved my game development skills, I even got my first paid project with the knowledge of my game dev 🚀🚀
@ChrisCourses
@ChrisCourses 2 жыл бұрын
Awesome, love hearing that. Feel free to use any of my code on GitHub to help further your career, I also hope the next videos I create further your knowledge even more-so🙏
@adefunkeadedoyin9338
@adefunkeadedoyin9338 2 жыл бұрын
@@ChrisCourses thanks man. God bless 🚀🚀
@jgvlc
@jgvlc 2 жыл бұрын
Thank you very much Chris, your tutorials are fantastic!
@ChrisCourses
@ChrisCourses 2 жыл бұрын
Glad you think so! Got more on the way 💪
@abhijitbarman4401
@abhijitbarman4401 2 жыл бұрын
In KZbin there are not many tutorial on Canvas. Thanks for it.
@rustyrustan
@rustyrustan 2 жыл бұрын
100% Im feeling the next one is going to be a lovely RPG game with basic sprite sheets, teleport from one place to another, basic inventory and some juicy cool extra shenanigans things, im looking towards it. I love your work and patience to explain everything, keep the energy and vibes all the way up !!
@djoezi3662
@djoezi3662 2 жыл бұрын
I'm gonna buy your courses man! it's amazing! Thank you a lot!!
@marlonvasquez6531
@marlonvasquez6531 3 ай бұрын
I guess I’ve joined the crew of people who’ve randomly woken up to this channel 😭 I was 1 hour and 10 minutes in-
@forrestdick2104
@forrestdick2104 5 ай бұрын
Fell asleep watching I don’t remember what, woke up in the middle of the night to this playing, just like half of YT, apparently. 😅
@fmi1632
@fmi1632 2 жыл бұрын
Commenting to reference you, thank you so much for your videos, they're top quality and extremely helpful !!
@adamjankowski5755
@adamjankowski5755 2 жыл бұрын
Very cool. I watched first mins of showcase then coded everything in my own way. Thanks for inspiration, assets, and I love your canvas videos!
@LonzCantiLife
@LonzCantiLife Ай бұрын
woke up to this as well. i need my music to start randomly being suggested to people who are asleep 😂
@simon-hb7wf
@simon-hb7wf 2 жыл бұрын
you are so well organized, this helps us a lot !
@ChrisCourses
@ChrisCourses 2 жыл бұрын
I do pride myself on the organization / chapter time-stamps of these, put a lot of time into making everything is exactly where it needs to be 😄
@simon-hb7wf
@simon-hb7wf 2 жыл бұрын
@@ChrisCourses and that's why after more than 3 years following your channel, I'm always happy to watch a new video from you ! 👨‍💻
@Tomisthere
@Tomisthere 6 ай бұрын
It’s the third time i wake up to this channel
@machochocolate7679
@machochocolate7679 Жыл бұрын
Amazing tutorial, very well done my dude. Thanks so much for all the effort you put into this. Definitely a subscriber now!
@__themisanthrope__
@__themisanthrope__ 4 ай бұрын
Why do this guy pop up only when I fall asleep? I WAS WATCHING CLIPS OF 90-DAY FIANCE!!
@icybear7792
@icybear7792 5 ай бұрын
no kidding, just woke up to this
@martinbobbio1
@martinbobbio1 Жыл бұрын
Thank you a lot Chris. I love your courses.
@Sinnercorpse
@Sinnercorpse 2 ай бұрын
i fell asleep watching crime podcast and i wake up to this XD
@anawan
@anawan 2 жыл бұрын
Yeahhh another one ! Thank you so much to make these awesome videos accessible to everyone !
@ChrisCourses
@ChrisCourses 2 жыл бұрын
Chapters, captions, free === the ultimate accessibility tuts 😎
@zippityzoop1478
@zippityzoop1478 6 ай бұрын
I keep waking up to this video I can’t believe it’s happening to others too
@user-mp9mp6dd2h
@user-mp9mp6dd2h 2 ай бұрын
Goodmorning!❤🎉
@chomok-bd
@chomok-bd 2 жыл бұрын
It’s awesome bro. Learning a lot.
@hylianreyes2611
@hylianreyes2611 5 ай бұрын
BAHAHAHA EVERYONE FELL ASLEEP WITH THIS VIDEO 😭😭 (I laugh at myself too cause I also woke up to this video 😭)
@otisrancko
@otisrancko 2 жыл бұрын
Maahnn this video is fire!!!!....🔥🔥🔥
@spanch1bobr
@spanch1bobr 2 жыл бұрын
your explaintions are so good.
@planetaryescape5794
@planetaryescape5794 6 ай бұрын
Why is everyone waking up to this and why did I wake up to this too
@Warthunder_gamer1
@Warthunder_gamer1 3 ай бұрын
I just watched 3 of these vids in a row while sleeping💀
@universecode1101
@universecode1101 2 жыл бұрын
I don't know how you create, such long courses ... I'll be able to do them too, sooner or later 😝 Great content
@ChrisCourses
@ChrisCourses 2 жыл бұрын
Lots of sitting down, messing up, then trying again until I get it right 😅 Best of luck on the projects!
@taranewstime6909
@taranewstime6909 2 жыл бұрын
Really awesome 👍🙏
@vin2368
@vin2368 2 жыл бұрын
This is Awesome Bro :)
@MsDoIIy
@MsDoIIy 5 ай бұрын
Man I woke up to this and let's say that my brain did not register the talking very well. I was at a college in Eureka, yes the show and was walking through a class that I was like woah I do not belong here because the professor was him 😂 somehow I got my arm injured going down the stairs and the professors at the college wanted to give me a new and improved arm. I was sleeping on my arm funny so it was going numb. So funny 😅
@ARandom.Channel.
@ARandom.Channel. Жыл бұрын
I fell asleep watching cube marching and woke up to this
@oiiijosukee
@oiiijosukee 4 ай бұрын
Making a tally of how many times I wake up to this: 1 2
@D.schlich303
@D.schlich303 Ай бұрын
Bro same here, just woke up to this video!! I literally have never watched coding videos and was watching police/1st amendment audit videos.. Crazy
@NoFaceDev
@NoFaceDev 2 жыл бұрын
Thank you for your work i like how you doing videos
@aionair77
@aionair77 2 жыл бұрын
GO CHRIS!
@SkunkonHeels
@SkunkonHeels 6 ай бұрын
Dude how did I end up here 😭 I wasn’t even on KZbin when I slept?
@wisdomochei
@wisdomochei 2 жыл бұрын
Holy shit... 5 hours? 😅 Looks Interesting and challenging so yeah, I'm in ✅
@ChrisCourses
@ChrisCourses 2 жыл бұрын
Hell yeah man, welcome, hope the project went / is going well 🙌
@sixunity1171
@sixunity1171 2 ай бұрын
i fell asleep, wake up to this playing in the morning what
@marcelo.victor
@marcelo.victor 2 жыл бұрын
Chris, hi from Brazil! Can you make a javascript tutorial on how to display a div on a button click, the div being always attached to the button by the ID, and show above/bottom or left/right of the button when this button is positioned at top, bottom, left, right of the window? I'm bangging my head against the wall trying to do this!
@babaakshay
@babaakshay 2 жыл бұрын
Great video! Could you please also make a video on how we could monetize these games built with Javascript? Maybe also release them on Android or IOS? I am really thinking of this as a full time job.
@chetanuzumaki9581
@chetanuzumaki9581 2 жыл бұрын
Awesome brother thanks for ur hardwork
@ChrisCourses
@ChrisCourses 2 жыл бұрын
No prob, thanks for watching 🙏
@HuynhLuong227
@HuynhLuong227 2 жыл бұрын
Great! Many thank
@DansRealm1234
@DansRealm1234 2 ай бұрын
I woke up to this too??? Why did this happen to everyone??
@christophersvatora6658
@christophersvatora6658 6 ай бұрын
So everyone is also waking up to this guy 💀
@loicmakassoeti3209
@loicmakassoeti3209 2 жыл бұрын
You're a legend. Insane content.
@Bien_the_Degenerate_Weeb
@Bien_the_Degenerate_Weeb 5 ай бұрын
Bro why do I keep waking up here
@CallousCoder
@CallousCoder Жыл бұрын
Wouldn't it be more sensible and robust to set objects in an array to null instead of splicing them out. And just check for a null (which you should always do anyways)? At least you don't need to worry about updating an array whilst looping through it. Either way this is easier than in C/C++ where you'd actually have to register which struct/object you want to free/delete. Also i noticed that projectile path is update every frame, so you have a "hear seeker" rock :D
@noir66146
@noir66146 10 ай бұрын
time well spent !
@thecosmicmyth2164
@thecosmicmyth2164 2 ай бұрын
Is this man Santa Claus?! How are all of us waking up to him??
@davebacknolaliki1452
@davebacknolaliki1452 5 ай бұрын
I wonder how many views this has vs how many sleepy people have visited haha.
@austinfaw3640
@austinfaw3640 5 ай бұрын
@ChrisCourses what theme do you use in VS?
@cuauhtemocestrada2192
@cuauhtemocestrada2192 Ай бұрын
At this point, how many of the views on this video are actually of people trying to learn to code? I fell asleep to soccer videos and woke up an hour into this one lol
@teeganithink
@teeganithink Ай бұрын
So we all wake up here…
@kinopremyera2753
@kinopremyera2753 2 жыл бұрын
Great 👍 tutorial thank you 😊 Hello Chris how are u? I have a question. I want to make app like webflow So should i use canvas to make that kinda project or not
@aftercyberneticrp
@aftercyberneticrp 2 жыл бұрын
The best!
@Suzuhara
@Suzuhara Жыл бұрын
when I use position: { x:waypoints[0].x, y:waypoints[0].y I got - "ReferenceError: can't access lexical declaration 'enemy' before initialization" and I have no idea why.
@jonathanmanner5616
@jonathanmanner5616 2 жыл бұрын
Awesome, did you use any specific program to actually make the tileset.png? I would like to build a game based of this tutorial but not sure how I would merge the assets together to one file. Perhaps that's not really necessary?
@WyzrdCat
@WyzrdCat 2 жыл бұрын
You can use basically any graphics editor. Photoshop, Affinity, Photopea, Krita, etc.
@namyak-bf9od
@namyak-bf9od Жыл бұрын
at around 40 minutes in, there is a bug with the canvas getContext. the browser console says that is cannot read the property of null
@pedromesquita9806
@pedromesquita9806 Жыл бұрын
You rock!
@ChrisCourses
@ChrisCourses Жыл бұрын
You rule!
@johanngerhardt401
@johanngerhardt401 Жыл бұрын
At 1:22:00 i got Uncaught ReferenceError: Cannot access 'enemy2' before initialization at animate (index.js:49:5) cannot fix it, const enemy = new Enemy({ position: { x: 100, y: 100 } }) const enemy2 = new Enemy({ position: { x: waypoints[0].x, y: waypoints[0].y } }) first work but second dont work how can i fix it?
@Gregor__Samsa
@Gregor__Samsa Жыл бұрын
I found out that the order of importing js files might cause the issue. Can you make sure that you import the waypoints.js before the index.js in the index.html?
@egostan
@egostan 6 ай бұрын
@@Gregor__Samsa have the same issue. it didn't help
@ashiwashi
@ashiwashi 5 ай бұрын
damn i also just woke up to this half way through lol
@daveinpublic
@daveinpublic 11 ай бұрын
At 15:00.. felt like the longest 5 minutes... How can you spend that long doing 1 thing?
@kashmirtechtv2948
@kashmirtechtv2948 Жыл бұрын
Why do you use classes??? Shouldn't we be on Functional programming?
@i-lack-creativity
@i-lack-creativity 8 ай бұрын
KZbin redirected me from a series of videos to to this (it started with cleaning uranium waste)
@tome343
@tome343 Жыл бұрын
the moment i paste in the second svg everything goes black barring the newly pasted icon. Really confused can't seem to fix this either. Anyone have any idea what's happening/how i can fix this?
@unixrebel
@unixrebel Жыл бұрын
anyone know what that default font is that is used on mac? want to get it for my linux pc.
ASMR Pong Programming in the Park
21:07
Chris Courses
Рет қаралды 124 М.
Mario Game Tutorial with JavaScript and HTML Canvas
2:11:03
Chris Courses
Рет қаралды 610 М.
Turn Off the Vacum And Sit Back and Laugh 🤣
00:34
SKITSFUL
Рет қаралды 4,7 МЛН
2 Years of Game Development - Chef RPG
16:33
Pixel Architect
Рет қаралды 861 М.
JavaScript Fighting Game Tutorial with HTML Canvas
3:56:20
Chris Courses
Рет қаралды 8 МЛН
Programming Is Cooked
9:30
ThePrimeTime
Рет қаралды 140 М.
This Should Be Impossible...
23:05
Alec Steele
Рет қаралды 359 М.
Creating a LEGO-compatible brick that doesn't exist
19:00
Brick Bending
Рет қаралды 226 М.
How Long Would it Take to Beat Factorio Without Automation?
31:19
New divisibility rule! (30,000 of them)
26:51
Stand-up Maths
Рет қаралды 319 М.
What is the Smallest Possible .EXE?
17:04
Inkbox
Рет қаралды 515 М.
HTML5 Canvas CRASH COURSE for Beginners
51:26
Franks laboratory
Рет қаралды 222 М.
Making a Game in JavaScript with No Experience
5:49
Goodgis
Рет қаралды 886 М.