Lesson 29. Capstone: Comets

 

In this capstone you’re going to build an Asteroids-like game called Comets, shown in figure 29.1.

Figure 29.1. Comets game

There are many valid reasons why you would create a base class or a class that doesn’t extend anything. But I think the majority of most developers’ time spent with classes will be extending base classes provided from a framework such as React.js. For this capstone, you’re going to be working with a game framework that I have put together: the framework (like most frameworks) will handle most of the moving parts while giving you some base classes you can customize to create a unique game.

29.1. Creating a controllable sprite

29.2. Adding comets

29.3. Shooting rockets

29.4. When things collide

29.5. Adding explosions

Summary