Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Construct 2 Game Development by Example

You're reading from   Construct 2 Game Development by Example Learn how to make games for multiple platforms with Construct 2.

Arrow left icon
Product type Paperback
Published in Jun 2014
Publisher
ISBN-13 9781849698061
Length 230 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
John Bura John Bura
Author Profile Icon John Bura
John Bura
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with Construct 2 FREE CHAPTER 2. Inputs and Controls 3. Variables and Arrays 4. Game Mechanics 5. Making a Simple Shooter 6. Making a Tower Defense Game 7. Making a Puzzle Physics Game 8. Exporting Your Game A. Where to Go from Here
Index

Starting the project


First, we need to start with a new project. Open up a new project and set the layout size to 1500, 480. In this game, we are going to move the "camera" around. This means that we will move the field of view to a game object.

Setting the background layer

Once you have opened a new project, set up the background layer. In this case, we have a ground and a sky. You should make sure that the background is on its own layer and make sure that there is a game object layer as well. This is what your project should look like:

Adding the cannon

Once you have these layers, add a cannon (seen in the screenshot that follows). Name it something, such as cannon, so that we do not get confused—it is important to name your game objects appropriately.

Before we continue, make sure that the cannon is on the game object layer and the background is on the background layer. Lock the background layer (by clicking on the lock icon) so that we do not accidentally modify it:

Adding sprites

We then need...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image