0%

Book Description

Learn how to develop a 2D HTML5 platformer that is capable of running in modern browsers

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results
  • Learn about HTML5 2D game development and how to create your own HTML5 games
  • Embed your game within a webpage and share it with friends
  • Create enhanced games and publish to the Apple app store, Google Play, Windows Marketplace, or Facebook

In Detail

Game development has traditionally only been accessible to those with experience in computer science and access to the best or most expensive development tools. However, with the advent of technologies such as HTML5 and the ability to self-publish, web-based games such as those on Facebook and smartphones are becoming more attractive to develop than ever before. Through the use of open technologies such as HTML5, anyone with even a basic understanding of games development can begin to develop video games in their spare time and publish them to the Web or as an application for mobile devices.

Instant HTML5 2D Platformer is a practical, hands-on guide that provides you with a number of clear, step-by-step, task-based exercises, which are used to discuss game development and put into practice development techniques through the use of HTML5 and JavaScript. This book looks at the creation of a 2D platform-based game using the HTML5 canvas element.

Instant HTML5 2D Platformer introduces you to HTML5 canvas through a number of exercises, which show what the canvas is capable of. The book contains a number of clear, practical, hands-on tasks that incrementally build on the concepts of game creation and result in a 2D HTML5 platform-based game.

By undertaking the tasks within this book, you will learn how to develop your own 2D HTML5 game framework that you can use in the creation of your own video games, not just the game developed within this book. Alongside this framework you will learn how to develop and understand 2D animation, game logic, and how to handle user input devices.

Table of Contents

  1. Instant HTML5 2D Platformer
    1. Instant HTML5 2D Platformer
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why subscribe?
        2. Free access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    7. 1. Instant HTML5 2D Platformer
      1. Setting up your HTML5 canvas (Should know)
        1. How to do it...
        2. How it works...
      2. Implementing the game framework (Should know)
        1. How to do it...
        2. How it works...
      3. Creating the player (Must know)
        1. How to do it...
        2. How it works...
      4. Handling user input (Must know)
        1. How to do it...
        2. How it works...
      5. Animating the player (Must know)
        1. How to do it...
        2. How it works...
      6. Creating the level (Must know)
        1. How to do it...
        2. How it works...
      7. Implementing a parallax background (Must know)
        1. How to do it...
        2. How it works...
      8. Implementing physics (Must know)
        1. How to do it...
        2. How it works...
      9. Creating enemies (Must know)
        1. How to do it...
        2. How it works...
      10. Adding pickups (Must know)
        1. How to do it...
        2. How it works...
      11. Adding sounds (Must know)
        1. How to do it...
        2. How it works...
      12. Creating a graphical user interface (Must know)
        1. How to do it...
        2. How it works...
18.223.21.5