Building JavaScript Games: For Phones, Tablets, and Desktop

  • 7h 43m
  • Arjan Egges
  • Apress
  • 2014

Building JavaScript Games teaches game programming through a series of engaging, arcade-style games that quickly expand your JavaScript and HTML5 skills. JavaScript is in the top ten most-used programming languages world wide, and is the basis for applications that can run in any modern browser, on any device from smart phone to tablet to PC. Especial emphasis is given to touch-based interface, but all games also run using a regular mouse and keyboard setup.

The four games you’ll develop from reading this book are:

  • Painter
  • Jewel Jam
  • Penguin Pairs
  • Tick Tick

These four games are casual, arcade-style games representing the aim-and-shoot, puzzle, maze, and platform styles of game play.

The approach in Building JavaScript Games follows the basic structure of a game rather than the syntax of a language. From almost the very first chapter you are building games to run on your phone or other device and show to your friends. Successive projects teach about handling player input, manipulating game objects, designing game worlds, managing levels, and realism through physics. All told, you’ll develop four well-designed games, making Building JavaScript Games one of the most enjoyable ways there is to learn about programming browser-based games.

The final chapters in the book contain a very nice bonus of sorts. In them you will find excerpts from interviews with two prominent people from the game industry: Mark Overmars, who is CTO of Tingly Games and creator of GameMaker, and Peter Vesterbacka, the CMO of Rovio Entertainment - the creators of the Angry Birds franchise. Their insight and perspective round off what is already a fun and valuable book.

What you’ll learn

  • Create games to run on phones and tablets
  • Manage sprites and other game objects
  • React to player input through touch and button presses
  • Allow game players to progress through different levels
  • Achieve realistic movement through applied physics
  • Prepare your games properly for commercial deployment

Who this book is for

Building JavaScript Games is for technology enthusiasts interested in learning about programming, and especially about game programming on their mobile devices. The book is also ideal for programmers in other languages wanting to make the move to mobile development using the cross-platform environment of JavaScript and HTML5. If you’re interested in browser-based development, especially the development of mobile games, then Building JavaScript Games is the perfect choice.

About the Author

Arjan Egges is an associate professor in Computer Science at Utrecht University in the Netherlands. He is responsible there for research in the area of computer animation, and he heads the university s motion capture lab in the animation department. Arjan has written over 30 research papers on animation. He is the founder of the highly successful, annual ACM SIGGRAPH conference on Motion in Games, of which the proceedings have been published by Springer-Verlag.

Arjan is responsible for having designed Utrecht University s computer animation course offerings in the Game and Media Technology master s program, and he is currently the leader of that master s program. In 2011 he designed the introductory programming course for the university s bachelor s degree offering in Game Technology. He is coauthor of the book Learn C# by Programming Games, published in 2013 by Springer.

In this Book

  • Programming
  • Game Programming Basics
  • Creating a Game World
  • Game Assets
  • Knowing What the Player is Doing
  • Reacting to Player Input
  • Basic Game Objects
  • Game Object Types
  • Colors and Collisions
  • Limited Lives
  • Organizing Game Objects
  • Finishing the Painter Game
  • Adapting to Different Devices
  • Game Objects in a Structure
  • Gameplay Programming
  • Game States
  • Finishing the Jewel Jam Game
  • Sprite Sheets
  • Menus and Settings
  • Game State Management
  • Storing and Recalling Game Data
  • Pairing the Penguins
  • Finishing the Penguin Pairs Game
  • The Main Game Structure
  • Animation
  • Game Physics
  • Intelligent Enemies
  • Adding Player Interaction
  • Finishing the Tick Tick Game
  • Producing Games
  • Publishing Games
SHOW MORE
FREE ACCESS