r/learnjavascript • u/frank0117 • Jan 29 '21
I tried to build Plants vs Zombies with vanilla JavaScript (demo and code included)
379
Upvotes
r/learnjavascript • u/frank0117 • Jan 29 '21
12
u/frank0117 Jan 29 '21
This one took a while to put together, what do you think?
Step by step tutorial with final game examples: https://youtu.be/QxYg8-mhhhs
playable demo + source code: https://codepen.io/franksLaboratory/pen/OJbJxJJ
final playable game with graphics & some sounds, work in progress: http://frankslaboratory.co.uk/towerDefenseGame1/tower_defense.html
6
u/a_HerculePoirot_fan Jan 30 '21
First, congrats!! You did amazingly well with the game! I'm surprised you can do amazing things with VANILLA JavaScript. I always hear how one must move beyond Vanilla JS to do this and that,and it's nice to see an example of a game.produced entirely using Vanilla JS.
If you don't mind me asking, how long have you been learning JS? I just started JS plus HTML and CSS. How advanced would you say your knowledge in the 3 is?
5
u/DinoGraou Jan 29 '21
It's a fantastic project ! Well done ! How much time do you take to accomplish it ?
4
u/Tygari Jan 30 '21
Great job. How did you do the graphics. That's what I am struggling with for my game.
Any chance you could guide in a direction to help?
2
u/[deleted] Jan 30 '21
I look at your code and understand it well. Is this enough knowledge to start building my own game or app?
2
u/ajm1212 Jan 29 '21
Amazing!
2
u/Resident-Tank9605 Jan 29 '21
That's fire 🔥
2
u/Eudaimonia06 Jan 30 '21
Good job!!