Adding a final touch to make the game fun to play

Imagine now that we want to publish the game. The game logic is basically there, but it looks quite ugly with the black and white environment. In this section, we will add some final touches to the game so that it is much more attractive. We will also apply some constraints to limit the time of ApplyForce. This constraint makes the game more fun because it requires a player to think before he applies too much force to the car.

Get HTML5 Game Development by Example : Beginner's Guide - Second Edition 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.