Book Image

HTML5 Game Development with GameMaker

By : Jason Lee Elliott
Book Image

HTML5 Game Development with GameMaker

By: Jason Lee Elliott

Overview of this book

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 (16 chapters)
HTML5 Game Development with GameMaker
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up the rooms


In the last chapter we built two rooms, Level_01 and Level_12, for testing the HUD and game difficulty. We now need to make rooms for all the levels in between those two, plus a few additional rooms for the Front End, Shop and Level Select:

  1. Create a new Room for each level from Level_02 to Level_11. Set the size of the rooms as follows:

    • Level_02Level_04 is set to Width: 640 and Height: 480

    • Level_05Level_08 is set to Width: 960 and Height: 720

    • Level_09Level_11 is set to Width: 1280 and Height: 960

  2. Each room needs to have Room is Physics World checked in the Physics tab.

  3. Make sure that Views | Port on Screen is set to X: 0, Y: 0, W: 640, and H: 480 so that each room will display properly on screen.

  4. We have supplied backgrounds for each level which can be found in Chapter 7/Backgrounds/. Make sure that Remove Background is not checked.

  5. Each level should have a unique tower built from a variety of Pillars and ideally be made more difficult than the previous level. Start...