O'Reilly logo

HTML5 Game Development HOTSHOT by Makzan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Space Defenders

We built a city-building game in the last project. We will build a tower defense game in this project, where players build economy and attack units to protect the earth from enemy invasion. It makes use of similar building techniques that we learned in the last project.

Mission briefing

In this tower defense game, enemies come from the top of the screen. They move down to invade the earth, which is at the bottom of the screen. The player needs to protect the earth by building defense buildings in the space.

The space is divided into grids. The buildings block the enemy movement and some even fire bullets to kill enemies. These enemies also attack the things that block their way. So, the player needs to survive and kill ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required