Book Image

Construct Game Development Beginners Guide

By : Daven Eric Bigelow
Book Image

Construct Game Development Beginners Guide

By: Daven Eric Bigelow

Overview of this book

Construct Classic is a free, DirectX 9 game creator for Windows, designed for 2D games. Construct Classic uses an event-based system for defining how the game behaves, in a visual, human-readable way - you don't need to program or script anything at all. It's intuitive for beginners, but powerful enough for advanced users to work without hindrance. You never know when you'll need a helping hand exploring its inner workings, or harnessing its raw power to do your bidding.Construct Game Development Beginner's Guide is the book for you if you have ever felt the urge to make a game of your own. Reading this book will not only teach you to make some popular games using Construct, but you'll also learn the skills necessary to continue on and bring your game ideas to life.Starting as a beginner to Construct Classic, you'll be learning to make platform, puzzle, and shooter games, each styled after popular games of their genre. This guide covers everything from creating animated sprites, to using the built-in physics and shadow engines of Construct Classic. You will learn the skills necessary to make advanced games of your own. Construct Game Development Beginner's Guide will lead you on your journey of making games.
Table of Contents (16 chapters)
Construct Game Development
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Time for action — add some music to our game


Our player doesn't have anything to listen to while playing our game. We're going to change that by adding a looped MP3 music file to the game.

  1. 1. Find a song file of the MP3 format (.mp3) that you would like to play in the background of your game.

  2. 2. Rename this file to Game.mp3 (or simply Game if you do not have file extensions visible).

  3. 3. Put the renamed song file in the same folder as our game project, and then open up the game in Construct Classic.

  4. 4. In the Layout Editor, select the layer Game and then insert a new object into the layout.

  5. 5. Choose the object XAudio2 from the object group Audio and click on Insert.

  6. 6. Now switch over to the Event Sheet Editor and insert a new event. Choose the highlighted event Start of layout from the System object and click on Finish.

  7. 7. Add an action for this event and choose the XAudio2 object. Select the highlighted action Play music from file and click on Next.

  8. 8. In the next screen, enter the text AppPath...