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

Building your own levels


While designing a game, you would want to create the setting and the place where it all happens. Many games are divided into levels, often getting more difficult with each level upgradation. For some other games such as RPGs (Role Playing Games), there is no such thing as a level because it implies a certain cutoff with often no way back. Throughout the book, a space that can be saved as a single file in the Weltmeister will be referred to as a level.

The Weltmeister is literally the tool to master your world in ImpactJS. If you installed ImpactJS correctly you should be able to access the level editor shown in the next screenshot by placing the following address in your browser:

http://localhost/myfirstawesomegame/weltmeister.html

Creating, loading, and saving levels in Weltmeister

Creating levels for a game is one of the most enjoyable things to do in game design. The Weltmeister is so well put together that you will spend hours messing around with it just because...