Easy JavaScript Game Tutorial

  Рет қаралды 23,564

Kris Foster

Kris Foster

Күн бұрын

Пікірлер: 49
@markward7604
@markward7604 Жыл бұрын
Kris thank you for posting this excellent example of java script coding. Also, thank you for posting it in Git. A great example that I can take apart and show my students in class, please keep posting...!
@naksushi8228
@naksushi8228 3 жыл бұрын
I got stucked around 16.30 cause you didn't reload the page to make the dino keep jumping right? you pressed the spacebar to make the dino jump, right? but for me, I pressed the space bar and it won't jump. I also keep reload the page to see what went wrong and see the difference between my code and yours. but, I can't find anything. I'm a student and I need your explaination, please.
@ronnyt5914
@ronnyt5914 Жыл бұрын
i had the same issue, you have to delete the jump animation in the dino id in your css. it cant be there twice in one css file i guess
@CODEFORTRESS
@CODEFORTRESS 2 жыл бұрын
In the css, if you add the linear after the infinite it will gonna have the same speed.
@rynstation8206
@rynstation8206 3 жыл бұрын
Yes! Thanks so much! I always try other tutorials but the animation never works for me. This video really helped me! Thank you!
@KrisFoster1
@KrisFoster1 3 жыл бұрын
Glad you enjoyed @HeroicAgenda576!
@Thunder-tv2sm
@Thunder-tv2sm 2 жыл бұрын
Thanks to your video I can continue my code project
@benbrown1143
@benbrown1143 9 ай бұрын
This was a great video! thank you!!
@boltlightning7804
@boltlightning7804 3 жыл бұрын
Awesome! it feels very good to make my own game and play it! I am super interested in learning programming so this was awesome! thanks very much! my best score right now is 313!
@cassiodias1965
@cassiodias1965 3 жыл бұрын
Awesome! Simple and precise!
@KrisFoster1
@KrisFoster1 3 жыл бұрын
Glad you enjoyed @Cassio Dias 😉
@Lama-Code
@Lama-Code 4 жыл бұрын
Awesome , loved it !
@KrisFoster1
@KrisFoster1 4 жыл бұрын
Thank you @Deltaty Code, Glad you enjoyed!
@navinkandpal6767
@navinkandpal6767 3 жыл бұрын
Awesome man👍
@mozzsticks
@mozzsticks Жыл бұрын
How would i make it so the 'dino' is actually animated with its legs moving in the og game? i've got both my sprites, i just dont know where to put them. great tutorial though!
@zeee1261
@zeee1261 4 жыл бұрын
loved the video. really helped me honestly.
@KrisFoster1
@KrisFoster1 4 жыл бұрын
Thank you for the feedback @Mirale
@GodmyX
@GodmyX 5 күн бұрын
Thank you!
@Adrenaliinz
@Adrenaliinz Жыл бұрын
Thanks. Great video. Explained very well. I was doing something similar, but I ran into one problem. I'd like to be able to stop the infinite animation once the game is over and even after OK-ing the alert to make sure the game is stopped properly and only if the player wants to play again to press a separate button, which we can tie in with the reload method, which I can figure out how to do, but the only problem I can't solve is stopping the game completely even after the alert is satisfied. If someone can suggets something I'd appreciate it. I'm new and still learning JS. tnx
@yawn8974
@yawn8974 Жыл бұрын
I ran into the same issue and am also new but will try to explain how I fixed it. Instead of putting the animation for the rock directly in the formatting, I made a separate class list for the rock (just like the animation for the dinosaur is separate). Then, in javascript, I used addEventListener("click") to start the rock-animation when you click on the screen. And then in the final condition to end the game, I just removed the class list from the rock. Hope that makes sense
@selenacool3077
@selenacool3077 2 жыл бұрын
I need help with my rock not staying in the box and just slides out but then spawns back to the right spot. So any tips for the rock to stay in the box. And I copied the same code as u
@johnpavan4881
@johnpavan4881 2 жыл бұрын
Learnt a lot thanks
@Crime_pays
@Crime_pays Жыл бұрын
How did you align the score. Your screen is covering the code and your accent is hard to understand
@parindyapigera1790
@parindyapigera1790 6 ай бұрын
Why is that the Dinosaur's legs aren't moving?
@SmartT-gamer5
@SmartT-gamer5 2 жыл бұрын
My dinosaur image isn't showing up, can you explain why?
@zachsmith4775
@zachsmith4775 3 жыл бұрын
Great video, thanks!
@KrisFoster1
@KrisFoster1 3 жыл бұрын
Glad you enjoyed @Zach Smith!
@lucascecin
@lucascecin 3 жыл бұрын
Just followed the tutorial and learned a lot! Thanks, man! Just one sugestion I watched on other video: the rock animation can get smoother if you add "linear" on CSS: animation: rock 1.8s infinite linear;
@lucifermorningstar6238
@lucifermorningstar6238 3 жыл бұрын
I just did every thing and my dino still not jump can you help me ?
@dinushamaduwanthi8242
@dinushamaduwanthi8242 2 жыл бұрын
thank you verymuch a lot
@johnpavan4881
@johnpavan4881 2 жыл бұрын
New subscriber
@dripliboi5563
@dripliboi5563 2 жыл бұрын
THANK YOU SO MUCH!!!!
@bethannebentley5940
@bethannebentley5940 3 жыл бұрын
I have to make my webpage where the game is, long it takes up most of my screen space. Any ideas?
@codewithdoge
@codewithdoge 3 жыл бұрын
Cant we do overflow hidden to hide rock if it gets out of the div?
@PCOPedro
@PCOPedro 2 жыл бұрын
I tried it and worked also
@bl4841
@bl4841 3 жыл бұрын
i keep getting "expected an identifier and instead saw const" on the javascript page. any tips on that?
@sertansantos3032
@sertansantos3032 3 жыл бұрын
Nice very nice
@KrisFoster1
@KrisFoster1 3 жыл бұрын
Glad you enjoyed @Sertan Sahbaz
@owenwatss
@owenwatss 3 жыл бұрын
what is the editor you used?
@rueben9656
@rueben9656 3 жыл бұрын
keeps underlining my colons do anyone know why pls help its not working
@elliot9969
@elliot9969 3 жыл бұрын
What code editor are you using?
@coconutwateryt
@coconutwateryt 3 жыл бұрын
he uses visual studio code
@frittzho2720
@frittzho2720 3 жыл бұрын
can u do a video where u make this game more advanced and interesting?
@omranshahrour7291
@omranshahrour7291 3 жыл бұрын
Thank you, You are awesome but you need to get your voice a little bit higher...
@KrisFoster1
@KrisFoster1 3 жыл бұрын
Thank you for the feedback!
@shehan_ff
@shehan_ff 2 жыл бұрын
my dinasour dosent jump
@Venom_VSA1234
@Venom_VSA1234 2 жыл бұрын
dinosaur is not jumping
@pradeepkumarreddykondreddy7048
@pradeepkumarreddykondreddy7048 3 жыл бұрын
voice is too low
@KrisFoster1
@KrisFoster1 3 жыл бұрын
Thank you for the feedback, will try to make it better next time
Build Tic Tac Toe With JavaScript - Tutorial
41:46
Web Dev Simplified
Рет қаралды 360 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 30 МЛН
Não sabe esconder Comida
00:20
DUDU e CAROL
Рет қаралды 50 МЛН
How I Turned a Lolipop Into A New One 🤯🍭
00:19
Wian
Рет қаралды 12 МЛН
What's in the clown's bag? #clown #angel #bunnypolice
00:19
超人夫妇
Рет қаралды 33 МЛН
Wordle in JavaScript in 20 minutes
18:02
Double D
Рет қаралды 23 М.
SQLc is the perfect tool for those who don't like ORMs
28:11
Dreams of Code
Рет қаралды 88 М.
The Art of Code - Dylan Beattie
1:00:49
NDC Conferences
Рет қаралды 4,7 МЛН
Getting The Game Loop Right
8:27
Vittorio Romeo
Рет қаралды 32 М.
Learn CSS BOX MODEL - With Real World Examples
17:45
Slaying The Dragon
Рет қаралды 134 М.
The Easiest Javascript Game Ever
8:34
KnifeCircus
Рет қаралды 969 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 30 МЛН