Book Image

HTML5 Game Development with ImpactJS

By : Davy Cielen, Arno Meysman
Book Image

HTML5 Game Development with ImpactJS

By: Davy Cielen, Arno Meysman

Overview of this book

<p>ImpactJS is a JavaScript library specially geared towards building 2-dimensional games. It is intuitive and versatile and allows the game developer to get results in no time while keeping an easy overview when games grow more complex. Games built with ImpactJS can be published on websites and even as an app on both Android and iOS. <br /><br />With "HTML5 Game Development with ImpactJS", building games for the Web and app markets has never been so easy. Using the ImpactJS JavaScript engine, you only need this book and basic knowledge of JavaScript in order to build and publish your own game. <br /><br />"HTML5 Game Development with ImpactJS" allows a single person to build a full game. Using only basic knowledge of JavaScript and this book, you will end up publishing a 2D game for the entire world to enjoy. You will learn to set up a working environment and gather all the necessary tools and resources your game needs. Develop both a top-down and a side scroller game, integrate physics such as gravity, and deploy your game as an app or to your website.</p>
Table of Contents (17 chapters)
HTML5 Game Development with ImpactJS
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Preparing your game for the web browser


You have been testing your game in a web browser during development. So what is the difference between your local server and a public or production server?

Just before releasing your game to the public, you will need to bake it. Baking the game is not more than compressing the code. This has two advantages:

  1. Compressed code will load faster into the browser than uncompressed code. A shorter loading time is always a big advantage, especially for people who play your game for the first time. These people don't know yet that your game is extremely awesome and don't want to waste time looking at a loading bar.

  2. The baked code is also harder to read. All your different modules, neatly ordered in separate files, are now in a single file together with the ImpactJS engine. This makes it harder for the average Joe to just copy and paste your precious source code from the browser and use it in his or her own games. However, it doesn't protect against people who really...