Book Image

HTML5 Game Development Hotshot

By : Seng Hin Mak, Makzan Makzan (Mak Seng Hin)
Book Image

HTML5 Game Development Hotshot

By: Seng Hin Mak, Makzan Makzan (Mak Seng Hin)

Overview of this book

Table of Contents (15 chapters)
HTML5 Game Development HOTSHOT
About the Author
About the Reviewers

Distributing the game

The game is playable and fits in different screens. We are now ready to make the game public.

Prepare for lift off

YUI from Yahoo is a commonly used compressor. It can be installed and used locally as a standalone program. We can also use preprocessor tools such as the ones we mentioned in Project 6, Space Defenders, which come with the YUI-compressing option inside the tools. However, in this task, we make it simple by using an online compressor.

Engage thrusters

Let's work on the following steps to deploy our game on the Internet:

  1. We concatenate and compress the logic and the styling of files using a compressor. In this task, we use an online tool. The URL contains the Online JavaScript/CSS Compressor tool.

  2. Select all the JavaScript files and drag them onto the text field of the compressor website.

  3. Click on the Compress JavaScript button and the tool generates the compressed code into the text area of the result.

  4. Then, we can get the...