Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
HTML5 Game Development with ImpactJS
Table of Contents
HTML5 Game Development with ImpactJS
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
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
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
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
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
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
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
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
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
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
Index
← Prev
Back
Next →
← Prev
Back
Next →