HTML5 Game Development with ImpactJS
Formats:
save 15%!
save 37%!
Free Shipping!
| Also available on: |
|
- A practical hands-on approach to teach you how to build your own game from scratch.
- Learn to incorporate game physics.
- How to monetize and deploy to the web and mobile platforms.
Book Details
Language : EnglishPaperback : 304 pages [ 235mm x 191mm ]
Release Date : March 2013
ISBN : 1849694567
ISBN 13 : 9781849694568
Author(s) : Davy Cielen, Arno Meysman
Topics and Technologies : All Books, Games
Table of Contents
PrefaceChapter 1: Firing Up Your First Impact Game
Chapter 2: Introducing ImpactJS
Chapter 3: Let's Build a Role Playing Game
Chapter 4: Let's Build a Side Scroller Game
Chapter 5: Adding Some Advanced Features to Your Game
Chapter 6: Music and Sound Effects
Chapter 7: Graphics
Chapter 8: Adapting Your HTML5 Game to the Distribution Channels
Chapter 9: Making Money with Your Game
Index
- Chapter 1: Firing Up Your First Impact Game
- Installing a XAMPP server
- Installing the game engine: ImpactJS
- Choosing a script editor
- Running the premade game
- Debugging your game with the browser and ImpactJS
- Debugging with the browser
- Firebug – the Firefox debugger
- Chrome debugger
- Exercises in debugging with Chrome and Firebug
- Debugging with ImpactJS
- Which helpful tools are out there
- Ejecta
- AppMobi
- PhoneGap
- lawnchair
- Scoreoid
- Playtomic
- one.com webhost
- Summary
- Chapter 2: Introducing ImpactJS
- Building your own levels
- Creating, loading, and saving levels in Weltmeister
- Layers and the z axis
- Adding and removing entities and objects
- The collision layer
- Connecting two different levels
- Objects – playable and non-playable characters
- The ImpactJS entity
- Setting up player controls
- Position, acceleration, and speed
- The game's graphics: sprites and animation sheets
- Spawning, health, and death
- The camera view
- The game canvas
- Free to move camera
- Automatically following camera
- Adding music and sound effects
- Playing background music
- Introducing sound effects
- Game physics with Box2D
- Gravity and force
- Collision impact and bounciness
- Summary
- Chapter 3: Let's Build a Role Playing Game
- The RPG game setting
- Building an RPG level
- Adding a playable character
- Introducing a defeatable opponent
- Giving the player some weapons
- Spawning a projectile
- Causing harm with a projectile
- Bringing your NPCs to life with artificial intelligence
- The NPC's behavior
- The NPC's decision making process
- Pickup items to help out your player
- Healing your player with a potion
- Becoming rich with coins
- Keeping score for player feedback
- Transitioning from one area to another
- NPCs and conversation
- The speech balloon
- Adding a talking non-playable character
- The final battle
- Summary
- Chapter 4: Let's Build a Side Scroller Game
- The side scroller game setting
- Preparing the game for Box2D
- Building a side scroller level
- The playable character
- Adding a minor foe
- Introducing formidable weapons
- Shooting a projectile
- Building an actual bomb
- Artificial intelligence
- Pickup items
- Adding a normal crate
- Implementing a healing crate
- Keeping score
- Transitioning from one level to another
- The final battle
- Summary
- Chapter 5: Adding Some Advanced Features to Your Game
- The Start and Game-over screen
- The game's Start screen
- The Victory and Game-over screens
- More advanced debugging options
- Short introduction to unit testing
- Adding your own debug panel to the ImpactJS debugger
- Handling game data
- Adding data to your game
- Using cookies to store data on the player's computer
- Local storage
- Using lawnchair as a versatile way of storing data
- Extra functionalities for the RPG
- Moving the player with a mouse click
- Adding intelligent spawn locations
- Introducing basic conversation
- Adding a basic Head-Up Display
- Artificial intelligence: The hive mind
- Implementing Playtomic for game analytics
- Summary
- Chapter 6: Music and Sound Effects
- Making or buying the music
- Buying tunes and sound effects
- Making a basic tune using FL Studio
- Adding background music to your game
- Playing a sound when an action has happened
- Tips when using sound files in your game
- Summary
- Chapter 7: Graphics
- Making/buying the graphics
- Where to buy graphics
- Introduction to vector graphics
- Creating your own avatar using Adobe Photoshop
- Adding your creation to the RPG
- Hints for graphics in HTML5
- Summary
- Chapter 8: Adapting Your HTML5 Game to the Distribution Channels
- Preparing your game for the web browser
- Preparing our game for mobile web browsers
- Turning the game into a web app for the Google Chrome Web Store
- Pushing your game to Android's Google play store
- Making your game available on Facebook
- Direct canvas game acceleration with AppMobi
- Summary
- Chapter 9: Making Money with Your Game
- Your game development strategy
- Making money with game apps
- Google Play
- iOS App Store
- The Chrome Web Store
- In-game advertising
- Selling distribution rights with MarketJS
- Summary
Davy Cielen
Arno Meysman
Code Downloads
Download the code and support files for this book.
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Errata
- 1 submitted: last submission 15 May 2013There was an error in the code files of Chapter 1. The updated code files for Chapter 1 game and Debug Tutorial files are now updated and are available to be downloaded.
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
- Set up a game development environment on your computer
- Find and use resources such as graphics, music, and sound effects
- Integrate the Box2D engine in ImpactJS to make a side scroller game with realistic physics
- Build a top-down game using solely the ImpactJS engine
- Optimize and prepare your games for computer screens and mobile browsers
- Turn your HTML5 game into an app for Google Play, Apple, and Chrome app stores
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.
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.
"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.
HTML5 Game Development with ImpactJS is an insightful, friendly guide that will amaze users with its ease of use in game development. It consists of several informative yet simple instructions, which help develop and build your skill set and knowledge base.
This book is for anyone with basic knowledge of JavaScript, CSS, and HTML. If you have the desire to build your own game for your website or an app store but have no idea how and where to begin, this book is for you.

