Summary

Congratulations! You took the stub of a game—a lonely spaceship flying around empty space—and turned it into a playable game with waves of enemies and win and failure screens.

You may have noticed a slight issue so far, though—it's not mobile. The next chapter remedies this when you add touch controls and support for resizing. A few finishing touches, such as scoring, can turn Alien Invasion into a polished, playable mobile game that works on the desktop as well.

Get Professional HTML5 Mobile Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.