Description: Building a Tower Defense Game while experimenting the Three.js library.
Note: Each chapter is based on the code of the previous chapter.
Draw and rotate a simple cube.
Live here.
Animate a grid of spheres.
Live here.
Lihts and reflection on objects.
Live here.
Camera moves around the scene.
Live here.
A maze generator.
Live here.
Detects mouse events to do action on the maze.
Live here.
Mobs are coming !
Live here.
Build towers on the map.
Display text with Pixi.js library (directly on the canvas)
Add a bit of ‘gameplay’: money + score + remaining lives
Live here.
Missiles are flying through the map !
Live here.
Add particules effect on missile explosion.
Add physics (Ammo.js)
Add shadows
Live here.
Huge update to use modules
Zoom in/out
Rotate the map
Add a builder mob + list of tasks to do (build towers)
It takes some time to build a tower
Live here.
Add the energy concept:
Choose the tower you want to build Add different tower types (+ missiles):
A tower can be upgraded (improve GUI)
Introduce tower experience
Add energy buildings (producer, capacitor/storage)
Live here.
Create predefined levels (Beginner / Intermediate):
Select the level you want to play (display a preview)