HTML5 Game Development with GameMaker

Book description

Experience a captivating journey that will take you from creating a full-on shoot 'em up to your first social web browser game

  • Build browser-based games and share them with the world
  • Master the GameMaker Language with easy to follow examples
  • Every game comes with original art and audio, including additional assets to build upon each lesson.

In Detail

The introduction of HTML5 has revolutionized the web browser as a legitimate gaming platform with unlimited potential. Making games for the browser has never been simpler, especially with GameMaker Studio. Developers have full control over asset management, built-in systems for physics, particles and path finding. In addition, it offers a rich scripting language and extensions for developers now enabling everyone to create games and monetize them quickly and easily.

HTML5 Game Development with GameMaker will show you how to make and release browser based games using practical examples. This book utilizes GameMaker’s powerful scripting language allowing you to create your first game in no time. With this guide you will develop a thorough skill set and a coherent understanding of the tools to develop games of increasing complexity, gradually enhancing your coding abilities and taking them to a whole new level.

The GameMaker Studio environment allows you to jump right into building browser based games quickly and releasing them online. The chapters focus on core practical elements, such as, artificial intelligence and creating challenging boss battles. This book guides you on how to use advanced features easily and effectively, these include, data structures and demonstrating how to create rigid body physics with simple explanations and visual examples. By the end of this book you will have an in-depth knowledge of developing and publishing online social browser based games with GameMaker.

Table of contents

  1. HTML5 Game Development with GameMaker
    1. Table of Contents
    2. HTML5 Game Development with GameMaker
    3. Credits
    4. About the Author
    5. About the Reviewers
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    7. 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
    8. 1. Getting to Know the Studio with Your First Game
      1. Making HTML game development easy
      2. Setting up the software
      3. Our first look at the Studio
        1. The Menu
        2. The Toolbar
        3. The Resource tree
        4. The Workspace
      4. Exploring the resource editors
        1. Loading your art assets with the Sprite Properties editor
          1. The wall sprite
          2. The player sprite
        2. Creating game objects with the Object Properties editor
          1. The Wall object
          2. The Player object
        3. Creating worlds with the Room Properties editor
        4. Running the game
        5. Introducing code with the Script Properties editor
        6. Filling the scene with the Background Properties editor
        7. Bringing noise with the Sound Properties editor
          1. A little background music
          2. Controlling the game with the Overlord
          3. The collectible
        8. Writing text and the Font Properties editor
        9. Creating complex movements with the Path Properties editor
        10. Using the Time Line Properties editor to spawn collectibles
      5. Tools for debugging your games
        1. Using the HTML5 DEBUG console
        2. Using the Windows version debugger
        3. Taking a look at the JavaScript code
      6. Summary
    9. 2. Triple 'A' Games: Art and Audio
      1. Manufacturing art assets
        1. Understanding the image file formats
      2. Importing sprite sheets
      3. Introducing the image editor
        1. Creating backgrounds with tilesets
      4. Animating and creating sprites
        1. The illusion of action
        2. Maximize the sprite space
        3. Looping an animation
      5. Manufacturing audio
        1. Understanding the audio file formats
      6. Using the GM:S Audio engine
      7. Raising the quality bar
        1. Consistency
        2. Readability
        3. Polish
      8. Summary
    10. 3. Shoot 'em Up: Creating a Side-scrolling Shooter
      1. Coding conventions
      2. Building the player
        1. Setting up the player sprite
        2. Controlling the player object
        3. Building the bullet
        4. Firing the bullet
        5. Removing bullets from the world
      3. Constructing three little enemies
        1. Making the enemy parent
        2. Building the FloatBot
        3. Creating the SpaceMine
        4. Making the Strafer
      4. Controlling the game with the Overlord
        1. Spawning waves of enemies
        2. Building the Overlord
      5. Dealing with the life and death of the player
        1. Setting up the win condition
        2. Respawning with a Ghost object
      6. Drawing the user interface
      7. Adding the finishing details to the game
        1. Adding the game music
        2. Making the background move
        3. Creating the explosions
      8. Summary
    11. 4. The Adventure Begins
      1. Creating animated characters
        1. Simplifying the character movement
        2. Implementing a melee attack
      2. Navigating between rooms
        1. Setting up the rooms
        2. Creating Room Portals
        3. Teleporting a persistent player
      3. Bringing enemies to life
        1. Summoning the Ghost Librarian
        2. Building a wandering Brawl
        3. Creating the Coach
      4. Adding finishing details to the game
      5. Summary
    12. 5. Platform Fun
      1. Structuring systems-based code
        1. Creating gravity
        2. Building an animation system
        3. Creating a collision forecasting system
        4. Checking the keyboard
      2. Building the player
      3. Setting up the room
      4. Building a boss battle
        1. Creating the indestructible Gun
        2. Constructing the first phase: The Cannons
        3. Building the second phase: The giant LaserCannon
        4. Setting the final stage: The shielded Boss Core
      5. Winding it up
      6. Summary
    13. 6. Toppling Towers
      1. Understanding the physics engine
        1. Activating the world
        2. Defining properties with fixtures
        3. Connecting objects with Joints
        4. Applying forces to objects
      2. Building a tower toppling game
        1. Constructing the Pillars and Debris
        2. Breaking the Pillars into Debris
      3. Adding in the collision sounds
      4. Building the demolition equipment
        1. Creating a Wrecking Ball
        2. Making a Magnetic Crane
      5. Completing the game
        1. Setting the win condition
        2. Creating the Equipment Menu
        3. Constructing the towers
      6. Summary
    14. 7. Dynamic Front Ends
      1. Setting up the rooms
        1. Initializing the main menu
        2. Selecting levels with 2D arrays
        3. Preparing the Shop using data structures
      2. Rebuilding the HUD
      3. Adding risk and reward to destruction
      4. Adding introductory text to each level
      5. Saving the player's progress
        1. Understanding local storage
        2. Writing to local storage
        3. Saving multiple game profiles
      6. Summary
    15. 8. Playing with Particles
      1. Introducing particle effects
        1. Understanding particle systems
        2. Utilizing particle emitters
        3. Applying particles
        4. HTML5 limitations
      2. Adding particle effects to the game
        1. Creating a Dust Cloud
        2. Adding in Shrapnel
        3. Making the TNT explosion
        4. Cleaning up the particles
      3. Summary
    16. 9. Get Your Game Out There
      1. Releasing a game on your own site
        1. Creating the application
        2. Hosting the game
        3. Uploading the game with FTP
      2. Integrating with Facebook
        1. Adding a Facebook login button
      3. Tracking the game with Flurry Analytics
        1. Setting up Flurry Analytics
        2. Tracking events in the game
        3. Sending the data to Flurry
        4. Understanding the Analytics
      4. Making money with your games
      5. Summary
    17. Index

Product information

  • Title: HTML5 Game Development with GameMaker
  • Author(s): Jason Lee Elliott
  • Release date: April 2013
  • Publisher(s): Packt Publishing
  • ISBN: 9781849694100