Im a little dumb and put "%%" instead of "&&" at 7:26... Sorry!
@NickName-mn6jm4 жыл бұрын
that was a clear tutorial! Thanks
@sitadobhal42124 жыл бұрын
Ohh😂😂😂
@ardaturker47754 жыл бұрын
lmao same w me
@bilalnadeem91644 жыл бұрын
lol yeah I saw that but I know enough to know that was a mistake no worries tho this was a great tutorial I loved it thank you!
@אריאלשונצו-הערוץהרשמי4 жыл бұрын
cmon bro
@denizhalimi3874 жыл бұрын
I took me a couple of years to figure out that you can actually play that dinosaur. Good times
@ch3apjoe3 жыл бұрын
my 10yr old showed me. i had no idea either.
@TouchcreatorYT3 жыл бұрын
When I was 5 me and my brother were so bored with no internet, we decided to spam keys and that's how we found out about the dinosaur game
@dranonjagaming83653 жыл бұрын
One day i accidently clicked space when i didnt have internet and i was so shocked
@bvsanchez61613 жыл бұрын
graphics of an atari great back into the 80's
@Monkey43253 жыл бұрын
my uncle showed me
@arslanmehmood63714 жыл бұрын
This was awesome, didn't understand a thing but enjoyed throughout.
@ElChino.C.D.N3 жыл бұрын
Same😭😭😂🤣🤣🤣
@kooxaldoxt51623 жыл бұрын
😂😂😂
@RaeesEditzYT3 жыл бұрын
😂😂😂
@Galaxy_World3 жыл бұрын
Same
@thedarkbath77283 жыл бұрын
Bruuh its true for me dude LMAO
@uwuggfalcon55404 жыл бұрын
That one feeling when you code looks exactly the same but doesn't work
@KnifeCircus4 жыл бұрын
I can help! what are you stuck on?
@uwuggfalcon55404 жыл бұрын
@@KnifeCircus whenever I click it won't jump
@uwuggfalcon55404 жыл бұрын
no wait it works now thank you!
@KnifeCircus4 жыл бұрын
uwu GGFalcon Sweet!
@uwuggfalcon55404 жыл бұрын
@@KnifeCircus this is a really cool game, I had to do barely any coding
@Ikgeloofhetniet2 жыл бұрын
I am 37 years old and I have been learning to code for a few months. I love it and can't believe I never considered doing this when I was younger! Anyway, this is the best coding channel I have come across so far. Thank you for doing this!!
@jayfiled2 жыл бұрын
I started around the same age and was able to become a web dev - hang in there!
@gathingstimothy2 жыл бұрын
37 here too! been a CAD designer for years! Jumped into coding last month
@lerekomashoeng692110 ай бұрын
there was no coding when you was younger unc
@lerekomashoeng692110 ай бұрын
damn, long life, more life unc @@gathingstimothy
@lerekomashoeng692110 ай бұрын
never give up unc! @@jayfiled
@dorisaerwin3 жыл бұрын
Learning Javascript and have been nervous in creating my first game. THANK YOU for making this project fun and easy. Motivates me to continue learning Javascript and other coding languages!
@Sandy_Marley2 жыл бұрын
Can you hold me?
@suli_jj60252 жыл бұрын
@@Sandy_Marley yes
@nizartarik5858 Жыл бұрын
So how are u after 1 year
@thydevdom4 жыл бұрын
Bruh. Please keep making these. Simple things like this are really helping me out. A lot of “game tutorials” are like 100 lines long and as a newb that’s just too much to take in. You definitely earned a new subscriber.
@DanTheHuman3 жыл бұрын
Hey did this game work for you
@BlackDev2 жыл бұрын
@@DanTheHuman yee
@DanTheHuman2 жыл бұрын
@@BlackDev I tried it but it didn't work for some reason, idk what I'm doing wrong
@BlackDev2 жыл бұрын
@@DanTheHuman what's it no doing might be able to help
@BlackDev2 жыл бұрын
@@DanTheHuman if on vscode make sure you get the extension to make Life easier most of my errors if not all are grammar as you can tell I hate punctuation haha but butify,spellcheck and other extension help cover my tracks
@OSmith3014 жыл бұрын
This was awesome, thank you! My first JS game :)
@Nick-td1sh3 жыл бұрын
Can you help me how can i start the game
@ameliamargaurite31504 жыл бұрын
What a great tutorial, thanks for sharing. Looking forward to making something from this set up.
@ardeleanion44353 жыл бұрын
Did you do it?
@val_csb6303 жыл бұрын
@@ardeleanion4435 is that sarcasm I "hear "? LoL 😂
@the_kid777 Жыл бұрын
Out of the many videos out there on similar topics, the reason I chose this particular video was because you were... smiling! That's quite literally why I chose to watch this. I mean, you simply look happy while creating the game, and that naturally makes me want to join you. Thanks for the nice video.
@isaqueggomes87764 жыл бұрын
Just a minor error I saw: At 5:22 it didn't really solve the spam problem as even though it doesn't execute it if it contains the class the setTimeout function would still keep executing, glitching it a bit. To solve it I just added "if (character.classList.contains("animate")){return}" in the start so it returns if it has the class. function Jump(){ if (character.classList.contains("animate")){return} character.classList.add("animate"); setTimeout(() => { character.classList.remove("animate") }, 500); }
@J1XT3R4 жыл бұрын
You did it wrong
@isaqueggomes87764 жыл бұрын
@@J1XT3R How so?
@KnifeCircus4 жыл бұрын
I really like this change and have updated my code to reflect it!!
@Joe-od3td4 жыл бұрын
Hi, surely you only want to return: character.classList.add("animate"); setTimeout(() => { character.classList.remove("animate") }, 500); } If the character does NOT contain animate class? Thanks!
@MarcJensan4 жыл бұрын
In this case, would it not simple be enough to put the timeout function inside the if state?
@codybradley56522 жыл бұрын
very easy to follow. I like how you just got us through it instead of trying to explain every concept. I think for someone starting out, that's helpful to build up some confidence and stop from getting overwhelmed.
@everyone52003 жыл бұрын
Your way of teaching is really good, you create things, and then tells what you add to it, its a pretty efficient and straight forward way, congrats
@DavidReidChannel3 жыл бұрын
This is a nice little demo that shows how easy it is to create simple web games with a little html, css and javascript. Nice work and thanks for sharing. :-)
@useruser-bv1ej4 жыл бұрын
one of the best and interesting coding tutorials out there! Thank you very much
@trjblq2 жыл бұрын
Finally, a quick well explained tutorial. So helpful, cheers!
@gonzalo_rosae4 жыл бұрын
great! I loved it, but I wished you would have explained in more detail the functions keep up the good content!
@KnifeCircus4 жыл бұрын
Thanks, will do!
@alonlipiner36063 жыл бұрын
@@KnifeCircus im stuck at 2:20 the animation does not work can you help me please?
@mattjeth3 жыл бұрын
@@alonlipiner3606 try checking again because this happened to me too lol its kinda embarrassing and frustrating. i put "@@keyframes" instead of "@keyframes"
@purplaxo3 жыл бұрын
@@alonlipiner3606 Try to add a ";"
@juanvazquez58363 жыл бұрын
@@alonlipiner3606 same, and I've done like it's shown in the video
@travnutztv2 жыл бұрын
for those having issues with any code, I've found that the best way to troubleshoot is via the F12 function on google chrome. find the error, correct mispelling or delete extra characters, all else fails retype the line giving you the error. Idk why but it works... sometimes...
@StevePaceS4 жыл бұрын
Well done, very good explanation and kept as simple as possible. It was perfect as it gave me everything I needed to get started. Thank you!
@victornaut4 жыл бұрын
Less than 1 minute into the video and I'm like: I like this guy!
@perplexingpasta533 жыл бұрын
Hey i just tried this and this was amazing! Can't believe how simple and fun this was to make. Imma try to add more customisations to my character. Thanks a lot for this :)))
@Nick-td1sh3 жыл бұрын
Can you help me how can i start the game or i have a problem
@HiyokuMakatoYT4 жыл бұрын
for those of you that might have been having issues getting it to show the alert when you die, check that the lines: > block.style.animation = "none"; > block.style.display = "none"; actually have the " " or quotation marks. I didn't have the quotation marks and it was causing an issue. By checking the Developer Tool (F12 on Chrome) it showed that my script.js was having an unhandled error.
@CleanDeeds4 жыл бұрын
I thought: oh this is going to be simple.
@Vongeance4 жыл бұрын
Same bro
@simonriley19814 жыл бұрын
When you move on to harder coding this will look super simple
@Aricade1112 жыл бұрын
Ty for reigniting my love of JS! I’m so excited to continue progressing
@rishabhjha98694 жыл бұрын
3:38. Sneak 100! Nevertheless, a great video.. Such simple explanations is what people look for.
@visaogeralservicenow2 жыл бұрын
Thank you! I'm beginner in JavaScript, and your videos are helping me a lot!
@Charlie-fx5vs4 жыл бұрын
This is a wonderful video. I was able to do everything you show me, and more. Thank you so much for sharing it.
@newintcomm3 жыл бұрын
A great tutorial. Simple, not long, easy to follow along, without theory and long bla-blas. Great work! Thank you 💓
@snowflake8702 жыл бұрын
this deserves a medal for the most unclear tutorial, he isn't even telling us what anything does
@sterlingday63624 жыл бұрын
This game works! 2 words of advice: 1) DO NOT PRESS THE SPACE BAR. "ONCLICK" MEANS YOU PRESS IT WITH YOUR MOUSE KEY! 2) Pay close attention and code "1sec" and not "isec".
@adityadwivedi38313 жыл бұрын
Can u pls help me My character doesn't jump On click
@Zaba_the_Dogling2 жыл бұрын
very good explanation for those who aren’t developers and would like to learn. thank you!
@paraplu_2839 Жыл бұрын
little tip: at 5:15 he only puts the first part of the function in the if statement, so if you spam hard enough it still breaks. The simplest fix i found is to just put the second part (the one that removes the animate class) also inside of the if statement.
@user-xf7wx3zk8j Жыл бұрын
Thank you so much! ive been trying to fix it for a long time
@namyak-bf9od Жыл бұрын
An even better tip is to copy it and have it inside and outside the if statement. That way if you build the program and there's multiple ways to achieve the animate class, it still gets removed and you won't have a bug there
@ViralPanchal974 жыл бұрын
Arey Bhai. Ekdum Bawaal. Bole to Ek number.
@Oddpistachio13 жыл бұрын
Thanks, man! This was very helpful! I've done some web programming, but I need to improve my Javascript skills. HTML and CSS are way easier for me, but I am learning JS!
@codingwithjeril70913 жыл бұрын
same for me
@oddsandexabytes2 жыл бұрын
This was great! I wanted to see how a bog simple JavaScript game could be put together and... well, you did it! Thanks 😀
@WebGame2k4 жыл бұрын
I'm having 2 problems: 1) I can't get the character and block in the border. 2)When I started making the character jump, the block disappeared. And when I checked the console, these weren't errors. Edit: My character doesn't doesn't move and the block doesn't appear Also I'm using android 10.
@pilgrim95424 жыл бұрын
Hey bud, I'm a pretty new developer myself but I also had the first problem. I solved it by making the margin 10px instead of zero, as zero made it so the border went right along the axis and didn't show it. I'm not sure about the second point though. Hope this helps.
@DavidJames5354 жыл бұрын
Me too
@ShaunHill. Жыл бұрын
put the character and block DIVs in between the game divs in the index file. I had the same problem at first!
@NotBlazerMC Жыл бұрын
Wow, Javascript is indeed very easy to learn
@jaylenjames3644 жыл бұрын
Please keep making videos like this. Thank you.
@HyperionBadger4 жыл бұрын
See.. this is how a coding tutorial video is made. Literally step by step, watching you code in real time. Well done.
@KnifeCircus4 жыл бұрын
thank you! thats what I was going for! you made my day
@your.free.electrons4 жыл бұрын
This is really amazing :D
@waldomorales32813 жыл бұрын
Keep it up bro, got me inspired to go and try it myself!!
@icantthinkofaname54404 жыл бұрын
When I got to the part where the blue block was supposed to slide over to the other side it wouldn’t move? I put infinite and linear like you did and I’ve checked it multiple times and can’t seem to find anything wrong with the code. What should I do?
@mediumshrimp96963 жыл бұрын
Having same problem.
@rafaelbocsa7813 жыл бұрын
Same for me and I have no idea why
@rafaelbocsa7813 жыл бұрын
OHHHH i just figured it out. So you need to write block 1s infinite linear aka one second. I thought it was is like is infinite but nah. Hope this helps others :)
@devangnagvenkar37653 жыл бұрын
Just replace the 'is' with 2000ms
@m0nz132 жыл бұрын
I followed u thru the HTML/CSS bit completely lost at JS 😂 don’t worry tho I’ll get there. Looks fun to try!
@rohinimallem78264 жыл бұрын
Soo easily understood, thank you
@معتصممنصور-ش7ن3 жыл бұрын
I like the game, I apply it on VS Code My suggestion when alert appear after the collide, it remove animation property and give back again like this: if(blockLeft>0 && blockLeft130) { block.style.animation='none'; block.style.left='480px'; alert('U Lose') block.style.animation='block 1s linear infinite 1s'; } the 1s at the end of animation property is a delay to allow the user to prepare for next round
@lacampanadorada3 жыл бұрын
Very kindly thank you man!
@delta_nightz4 жыл бұрын
Nobody : Literally nobody : Shawn : "it uses only 10 lines of javascript " . . . . Me : oh i seeeeee🙂🙂
@spirit4694 жыл бұрын
Lmfao
@adeshshah85374 жыл бұрын
Proud of you, Professor Shawn!
@masonhess16544 жыл бұрын
3:40 a nice little spit too
@tomasvenegas60624 жыл бұрын
Wow, this code is really cool, i'm just learning javascript and this is something really impressive. Thanks a lot for the video!
@KnifeCircus4 жыл бұрын
Glad you enjoyed!
@tomasvenegas60624 жыл бұрын
@jacoblockwood40344 жыл бұрын
Hi! I think this is a great tutorial, but it doesn't work right on my software. I followed this tutorial using the JSAnywhere app on my iPad. The issues are that A. the character and block don't go inside the game box, but under it. B. The block disappears when I add the jump animation to the game. C. The character will go to the beginning of the jump animation even when it's still in the air. Maybe you can tell me why this might be happening in a reply?
@KnifeCircus4 жыл бұрын
are the block and character divs inside of the game div? is everything position: relative?
@txubbsy2 жыл бұрын
This was so awesome. Had so much fun and learned a lot. Thank you so much.
@f0urO44 жыл бұрын
thanks I learned alot!
@4n0nym0u54 жыл бұрын
Thank you for this very educational tutorial. Keep up the good work!
@josephlee89444 жыл бұрын
Great video! How can you add image instead of the red and blue blocks. For some reason, when I insert an image in css, the space is blank in webpage. Thank you!
@xxninja500xx74 жыл бұрын
i dont know but if you want add image do
@princeoftherealm3 жыл бұрын
Imagine not owning a game, and out of nowhere you're like: fuckit. imma make it myself
@mp_decarvalho3 жыл бұрын
me pretending i can understand everything Edit: I've been trying to learn how to code for a long time but it keeps overwhelming me and I'm never successful oof
@johnryan53613 жыл бұрын
just take it a step at a time. Learn the basics of HTML and CSS for a few weeks. Do some projects with static display webpages. Then start learning fundamentals of JS, make a fun onClick button animation on that same website or use CSS keyframes to make a moving background. When you have that you can start learning about 3rd party API's and server side API's so you can pull really cool information from another website (say you made a music appreciation website and you wanted to use the youtube, or new york times API to pull the latest videos and articles about a certain band up on your page if a visitor searched for them on your site) i found Express.js made this pretty simple. After that I started looking into SQL and mongoDB, frameworks like Angular and React, how to make my site progressive(like how amazon saves stuff to your cart even after you leave the page)... Then you have to learn state... I'm sorry you have to learn state but its necessary. The cool thing about coding is you can learn stuff when you need it. Like if you want a project of yours to do something cool, spend a few hours on google searching for a tool that does that for you. Then read about how to use it and watch some youtube videos on how to implement it. There are so many amazing tools out there FOR FREE that will let you do anything you want!
@ryangilcabatuan3293 жыл бұрын
dude you're a lifesaver. hoping for more awesome content.
@worldofcarsCA3 жыл бұрын
kzbin.info/www/bejne/b3XRdHahpNiBmcU
@bitterbacon54084 жыл бұрын
This really help me to star a basic game thank you
@kristinscott71563 жыл бұрын
Awesome video - put so many concepts together and introduced new ones. THANK YOU!
@djblobby4 жыл бұрын
whenever i run the code, it just shows a white screen and i copied the code from you so i dont know why it did that.
@Elisei363 жыл бұрын
SAME!!!!!
@nikhilrajmehta28244 жыл бұрын
I love this type of short video.. Made by you....You got a new subscriber.. That's me.. Hat's 🎩 off to you.. Amazing video.. And love from India. 🇮🇳
@IOAN2ER4 жыл бұрын
You just stole a like from me! :))
@kamrankhanofficials4 жыл бұрын
doesn't matter that anyone is sharing, it's not stealing, its education to share, u should be happy if he has learned from u.
@gurukirans2664 жыл бұрын
@@kamrankhanofficials he mean this video is awesome and he can't go without giving a like
@reymarckessaguirre50824 жыл бұрын
Kamran Khan, if you don’t have one, I’ll try to be your friend.
@kamrankhanofficials4 жыл бұрын
@@gurukirans266 Oh I missed the 'like' from this statement, lolx
@firefox3155 Жыл бұрын
This is so cool! only ive been sitting here for 30 minutes trying to find my mistake, because the blue block wont move... I got the red block to jump though so I am confused.
@draweasynow20774 жыл бұрын
When i first added the jump thing it didn't work and said it was not defined how do i fix this???
@electronicfun92964 жыл бұрын
can you post code here
@prexverdeflor014 жыл бұрын
same dude
@bambinoesu3 ай бұрын
@@prexverdeflor01 he declared a class name .animate on css but not on the html. so i created the class="animate" and added it on the character div on the html file
@bambinoesu3 ай бұрын
he declared a class name .animate on css but not on the html. so i created the class="animate" and added it on the character div on the html file
@pezcue9372 жыл бұрын
I am on a quest to find how I can make an array that contains multiple blocks so I can send sets of 2 or 3 blocks This is all I wanna do to it: - Change the image of the blocks using background-image:url("...ruta de la imagen "); - make a double jump by double clicking - make a better trigger for you lose - make more randomized blocks coming in the way of the character block. havent had any luck, I still dont understand JS that much lol
@Merrical4 жыл бұрын
3:36 spit
@rarcarat50974 жыл бұрын
I saw that too XD
@incia.84692 жыл бұрын
me watching this at 1am and understood everything, thanks man
@fabdvl4 жыл бұрын
Do you actually memorize all of these weird codes or just check them out while programming?
@mikuculus37204 жыл бұрын
Memorize it like English
@morathanan4 жыл бұрын
Man, its the first time i come across your channel, and i have one request: Please make more of this. You're amazing.
@ricardoroshen86154 жыл бұрын
Hanan Morat u can check out more of these kind of vids in his channel
@salmanadil49474 жыл бұрын
on click its not jumping what can I do????
@DUO_QUEST4 жыл бұрын
me too trying to find the answer :(
@bouchetouche4 жыл бұрын
same
@lamborghinicentenario24974 жыл бұрын
Try refreshing the page. It's probably you already clicked, and you can only click once to get the animation.
@spaaaaace8952 Жыл бұрын
Instant subscribe. Great tutorial, friend.
@Daniel-mq3qb11 ай бұрын
Thank you for putting that up. The condition character.classList != "animate" will always be false, because classList is actually a list (DomTokenList). You can change it to character.classList.contains("animate").
@zai_ry1110 ай бұрын
Thanks mate! Commenters like you are lifesavers
@QackCoin Жыл бұрын
This is letarlly scam guys i lost my all qack coin and i got virus
@wildebtw3 жыл бұрын
Thanks. Needed this to flip the switch on as to how js works. I appreciate your upload. Cheers
@User--died12345 ай бұрын
hey, great video and explaination . hoping to see more such bit sized videos like these .love from india:)
@musicforsoul1234 жыл бұрын
One of the best and coolest js tutorial
@reportaccounthcc24633 жыл бұрын
Pretty cool idea and some nice starter code explanations. Some of the JS code used is legacy code that isn’t good practice to use these days but I assume you’d be new to JS if you’re looking at this video (or just intrigued like me) so it wouldn’t matter, and the reasoning you’ve given behind the code will never go out of date 😄
@teflonrozay10742 жыл бұрын
I swear! Ev
@antnovs2 жыл бұрын
I found this hard, imagine the people making The Witcher games or God of War....
@myknoxvilleliving4 жыл бұрын
Thank you so much, I learned so many things!
@jimmyjillion4541 Жыл бұрын
Wow this helped me so much! I really appreciate the amount of effort you put into this video So keep the legendary work up! Bye!
@Eatrice1 Жыл бұрын
everything worked fine but i had a problem with css but overall great tutorial
@AddSomeChips3 жыл бұрын
My first time even looking at javascript thanks for making it soo simple 🙏
@marienixon1483 жыл бұрын
So cool! Going to give this a go. Subscribed!
@John-Wilkins2 ай бұрын
You're an inspiration dude!
@SakthivelNadar4 жыл бұрын
I made the game like a dino(instead of dina a red face guy) with score show and i am working in saving the game score to device storage so we can retrieve the high score data and can modify that when you beat that!!!!
@caleyCodeLab Жыл бұрын
Really like your channel man
@jayagarwal97593 жыл бұрын
Thanks man! This helped a lot.
@buildev223 жыл бұрын
Extra little something I did: after *alert("U Lose!")* put *location.reload()* this will make it so when the user clicks the ok from the alert it reloads the browser.
@qqqqqq2624 жыл бұрын
i love this video! plz continue this contents!
@vaibhavpatil19162 жыл бұрын
Smartly u make in 8 mins it's knowledgeable and helpful
@seemaagarkar79673 жыл бұрын
Guys if you have written your code till 5:30 but your red block doesnt jump, try left clicking your mouse ;)
@alessandrocomita57712 жыл бұрын
Very interesting, I learned some useful concepts, thank you KnifeCircus!
@vicais91463 жыл бұрын
I loved it! Thank you, I will try tomorrow on my free time at my job.
@vicais91463 жыл бұрын
I cannot see the blocks. The alert(game over) runs and I got 1 point on the score. But the only css that I can see is the .game part, a 1px solid black
@orangeystudios20703 жыл бұрын
“…even for someone who’s never coded before.” *does 500 unfollowable things in 2 seconds*
@manuelpedrobelli50432 жыл бұрын
Thanks for the video, it help a lot. Cheers from argentina
@proventhrower38583 жыл бұрын
Me over here thinking what I was doing was hard than this guy comes out here
@Nairuulagch2 жыл бұрын
Thank you for this coolest lesson!!
@converter82303 жыл бұрын
You can explain very well, thanks!
@ronnelmacompas1647 Жыл бұрын
Thank you very much. It's easy to understand.
@Tom233132 жыл бұрын
I’m stuck ! When I type 0% and 100% for the animations, the numbers aren’t highlighted and nothing happenes to the game ( no animation ) I’ve copied exactly , any ideas ?