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 — using lights and shadow casters


Lighting and shadow engines are normally used in 3D games to add realism to the scene, but rarely they are also used in 2D games to improve visuals as well.

  1. 1. On the LevelLights layer, create a Light object called WhiteLight and accept the default image it comes with. Set its Shadow filter property to WebBlack and its Shadow opacity to 60%.

  2. 2. Place the object in your layout where you would like light to come in from:

  3. 3. Now on the ShadowCasters layer, create a Sprite called ShadowMask and fill it with Black. Give this object the Collisions mode None and check the box for Destroy on Startup before adding the Shadowcaster behavior to it and setting Shadow depth to 1 and the shadow Collision Mask to Bounding Box.

  4. 4. Now switch over to the Game events, and in the Startup group add sub-events For each Ground object and For each CrateBox object to the main Start of layout event.

  5. 5. For the first sub-event, add actions to create the ShadowMask object...