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...!
@naksushi82283 жыл бұрын
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 Жыл бұрын
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
@CODEFORTRESS2 жыл бұрын
In the css, if you add the linear after the infinite it will gonna have the same speed.
@rynstation82063 жыл бұрын
Yes! Thanks so much! I always try other tutorials but the animation never works for me. This video really helped me! Thank you!
@KrisFoster13 жыл бұрын
Glad you enjoyed @HeroicAgenda576!
@Thunder-tv2sm2 жыл бұрын
Thanks to your video I can continue my code project
@benbrown11439 ай бұрын
This was a great video! thank you!!
@boltlightning78043 жыл бұрын
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!
@cassiodias19653 жыл бұрын
Awesome! Simple and precise!
@KrisFoster13 жыл бұрын
Glad you enjoyed @Cassio Dias 😉
@Lama-Code4 жыл бұрын
Awesome , loved it !
@KrisFoster14 жыл бұрын
Thank you @Deltaty Code, Glad you enjoyed!
@navinkandpal67673 жыл бұрын
Awesome man👍
@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!
@zeee12614 жыл бұрын
loved the video. really helped me honestly.
@KrisFoster14 жыл бұрын
Thank you for the feedback @Mirale
@GodmyX5 күн бұрын
Thank you!
@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 Жыл бұрын
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
@selenacool30772 жыл бұрын
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
@johnpavan48812 жыл бұрын
Learnt a lot thanks
@Crime_pays Жыл бұрын
How did you align the score. Your screen is covering the code and your accent is hard to understand
@parindyapigera17906 ай бұрын
Why is that the Dinosaur's legs aren't moving?
@SmartT-gamer52 жыл бұрын
My dinosaur image isn't showing up, can you explain why?
@zachsmith47753 жыл бұрын
Great video, thanks!
@KrisFoster13 жыл бұрын
Glad you enjoyed @Zach Smith!
@lucascecin3 жыл бұрын
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;
@lucifermorningstar62383 жыл бұрын
I just did every thing and my dino still not jump can you help me ?
@dinushamaduwanthi82422 жыл бұрын
thank you verymuch a lot
@johnpavan48812 жыл бұрын
New subscriber
@dripliboi55632 жыл бұрын
THANK YOU SO MUCH!!!!
@bethannebentley59403 жыл бұрын
I have to make my webpage where the game is, long it takes up most of my screen space. Any ideas?
@codewithdoge3 жыл бұрын
Cant we do overflow hidden to hide rock if it gets out of the div?
@PCOPedro2 жыл бұрын
I tried it and worked also
@bl48413 жыл бұрын
i keep getting "expected an identifier and instead saw const" on the javascript page. any tips on that?
@sertansantos30323 жыл бұрын
Nice very nice
@KrisFoster13 жыл бұрын
Glad you enjoyed @Sertan Sahbaz
@owenwatss3 жыл бұрын
what is the editor you used?
@rueben96563 жыл бұрын
keeps underlining my colons do anyone know why pls help its not working
@elliot99693 жыл бұрын
What code editor are you using?
@coconutwateryt3 жыл бұрын
he uses visual studio code
@frittzho27203 жыл бұрын
can u do a video where u make this game more advanced and interesting?
@omranshahrour72913 жыл бұрын
Thank you, You are awesome but you need to get your voice a little bit higher...
@KrisFoster13 жыл бұрын
Thank you for the feedback!
@shehan_ff2 жыл бұрын
my dinasour dosent jump
@Venom_VSA12342 жыл бұрын
dinosaur is not jumping
@pradeepkumarreddykondreddy70483 жыл бұрын
voice is too low
@KrisFoster13 жыл бұрын
Thank you for the feedback, will try to make it better next time