Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 14
How to build a tower defense game with js?
Javascript Game
4 Answers
+ 7
learn the canvas api to start drawing.
https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API
Personally I only use drawing rectangles during development, drawImage for images, clearRect to clear previous screen (sometimes you don't have to but depends on your game. you'll see), and if i need a camera, translate.
My point is not much learning.
The true game mechanics are what ~99% of what the game is you'll be doing.
My advice is break every single thing down as small as possible then put the pieces together and the game will slowly come together as you envisioned it. Debug a lot to make sure those pieces arent broken or else it will be a headache later on
+ 6
you're welcome :)
+ 4
Thanks for your answer 😊
+ 3
Clone the ready github repo!