Doodle Jump in JavaScript! 2024 version
VloĆŸit
- Äas pĆidĂĄn 27. 08. 2024
- Found this hard? Learn the fundamentals of coding here: www.codewithan...
đ Sign up to www.codewithan... to receive access for the final code.
____
â Check out my IDE here and get 1 month free: jb.gg/get_webs...
â New to code and none of this is making sense? Watch my '12hr+ CZcams Coding Bootcamp' in which you will learn HTML, CSS and JavaScript Fundamentals completely from scratch. It's on my channel and its 100% free.
â In most videos I use Tabnine as my A.I autocompletion tool. You can download it for free here (I get no commission from this link, but am in a partnership): bit.ly/tabnine-...
â You can get a blockchain domain with my affiliate link here: bit.ly/get-a-cr...
â If you would like to buy me a coffee, well thank you very much that is mega kind! : www.buymeacoff...
â Sign up for weekly coding tips from my newsletter partnership: bit.ly/JS-tips
You can also find me on:
Twitter: / ania_kubow
Instagram: / aniakubow
Youâre a legend, thank you for making this!,
Thank you for this tutorial, Ania, I was very happy to complete it, get out of the frameworks a little and learn more about Vanilla js, I still have a lot to learn, thank you!
Counting down with Ania đ
00:01 Learn to build Doodle Jump game in JavaScript.
02:13 Setting up project files and linking stylesheet.
06:36 Preparing JavaScript and adding necessary images and files for Doodle Jump game.
08:43 Create a doodler using JavaScript method.
13:10 Creating platforms using classes and constructor
15:33 Creating multiple platforms with equal spacing.
20:06 Adjust doodler position to interact with platforms
22:25 Creating and moving platforms in the game
26:49 Setting up variables, timers, gravity, and speed for Doodle Jump game logic.
29:11 Handling game over and implementing clean up
33:44 Handling left and right movement in JavaScript
35:56 Implementing left and right movement for the doodler
40:34 Implementing the 'move straight' function
Thanks mam it's really helpful and amazing â€â€
Wow! I'm so glad to learn from you.
AMAZING! SO NICE YOU EXIST TO TEACH US!
đ
It's quite good but I'd have done several things differently. First of all, destroying and creating objects is quite expensive, so you could simply put at the top in a random lateral position any platform that goes below the lower part. That way the performance would be much better (with more objects, this is quite a simple game).
But I don't think that using so many intervals is a good option. You could have used velocity variables instead, so there could be just one main interval for the whole game and movement. If you press right, increase vx and so on. Just another way to implement this (and simpler, imho)
u are really good where did you learn
@@reuven2010 Just from the experience, reading a lot about javascript and game development, other tutorials... This channel is a really good reference for javascript game programming: www.youtube.com/@Frankslaboratory
Could you share an example, plz?
Thanks a lot for this one , i am trying to built some games in js because of you , you gave me this vision đ that i can do anything with js onlyđ
Hola hoy iniciamos clase en desarrollo de software creo que estarĂ© por aquĂ mĂĄs seguido đ đ
Nice Tutorial!
you think youre flappy bird now
trying to find stuff to do for winter break but code with ania is for sure not it!
Start pls
how does the move function work? doodlerbottom is 150. why is the if parameter set to > 200?
I wondered the same thing, so I set the if condition to "if(doodlerBottomSpace > 149)
Thank you Ania.
i cant follow your tutorial
senior cs major at cmu :/
Iâm sorry you are having trouble. You can find the code to compare yours to on my GitHub. Coding can be hard. Itâs important to keep at it đȘ
Hloo
short.... and great.................;) bye
Awesome
You would have to be THE most attractive person i have ever seen on this planet!. I would attempt to put words to just how attractive you are. However it would only fall far short, and end up being offensive to your beauty. I think i have just found myself in a crush đ„°đ„°đ„°
Nice coding, đ
đ”đ±
ĐĐ°Đș ŃĐ°ĐŒ Đ°ĐžŃĐœĐžĐșĐž ŃĐ°Đ·ĐČĐžĐČĐ°ŃŃŃŃÂĄÂż.
..ĐŽĐ° Đž ĐŒŃзДО ĐșĐ°Đș.
It is a child play for your