Cargando…

HTML5 game development with ImpactJS : a step-by-step guide to developing your own 2D games /

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; S...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Cielen, Davy
Otros Autores: Meysman, Arno
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Pub., 2013.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; Foreword; About the Authors; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1:Firing Up Your First Impact Game; Installing a XAMPP server; Installing the game engine: ImpactJS; Choosing 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
  • Introducing sound effectsGame 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 anotherNPCs 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 GameThe Start and Game-over screen; The game 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