![]()
Learning Stencyl 3.x Game Development Beginner's Guide
Table of Contents
Learning Stencyl 3.x Game Development Beginner's Guide
Credits
Foreword
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Time for action β heading
What just happened?
Have a go hero β heading
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Introduction
How Stencyl works
How we'll learn to use Stencyl
Why Stencyl is a great development tool
Rapid prototyping and development
No code development
Sharing resources with other Stencyl developers
Platforms that Stencyl runs on
Stencyl target platforms
Targeting specific devices
Publishing desktop games
Publishing to iOS devices
Publishing to Android
What makes Stencyl different
Stencyl runs on almost any desktop computer
Stencyl creates native code
You don't need to be a coder
Using the free version of Stencyl
Using the free version of Stencyl with this book
Successful games created with Stencyl
The Stencyl Showcase
Installing Stencyl and testing the setup
Installing Stencyl
Microsoft Windows
Time for action β downloading and installing Stencyl on Windows
What just happened?
Mac OS X
Time for action β downloading and installing Stencyl for Mac OS X
What just happened?
Linux
Time for action β downloading and installing Stencyl for Linux
What just happened?
Creating a Stencyl account
Time for action β creating an account and signing in
What just happened?
Have a go hero
Testing the Stencyl installation
Time For action β testing Stencyl
What just happened?
Have a go hero
Summary
2. Let's Make a Game!
Using the downloaded game files
Let's get started!
Creating a new game
Time for action β creating a new game
What just happened?
Creating a blank scene
Time for action β creating a blank scene
What just happened?
Downloading resources from StencylForge
Time for action β downloading an actor
What just happened?
Have a go hero β searching StencylForge for interesting actors
Understanding the Stencyl Dashboard
Adding an actor into a scene
Time for action β adding an actor to the jungle scene
What just happened?
Testing the game
Time for action β testing the game
What just happened?
Downloading and using tiles for scenery
Time for action β downloading tiles from StencylForge
What just happened?
Have a go hero β searching StencylForge for tilesets
Adding tiles into the scene
Time for action β adding tiles into the scene
What just happened?
Working with tiles
Deleting tiles from a scene
Replacing existing tiles in a scene
Moving tiles in a scene
Selecting multiple tiles
Placing multiple copies of tiles
Have a go hero β experimenting with tiles in the scene
Finalizing the initial design
Have a go hero β tidying up the scene
Reviewing our progress
Using behaviors to interact with our game
Working with behaviors
Adding behaviors
Time for action β attaching a behavior to an actor
What just happened?
Configuring behaviors with Attributes
Time for action β configuring the behavior
What just happened?
Have a go hero β configuring the remaining animations
Save the game!
Testing the game
Time for action β testing the game to find a problem!
What just happened?
Improving the scene mechanics
Time for action β adding gravity to the Jungle scene
What just happened?
Keeping an actor in a scene
Time for action β attaching another behavior to the actor
What just happened?
Increasing the width of the gameplay area
Time for action β increasing the width of the scene
What just happened?
Have a go hero β adding more tiles to the scene
Making the screen scroll
Time for action β attaching the Camera Follow behavior
What just happened?
Adding some interesting scenery
Have a go hero β adding some interesting tiles to the scene
Fine-tuning the level design
Finding game testers
Summary
3. Detecting Collisions
Working with collision detection in Stencyl
Time for action β enabling the Debug Drawing feature
What just happened?
Modifying an actor's collision shapes
Time for Action β modifying the monkey's collision shapes
What just happened?
Adding multiple collision shapes
Time for action β adding more collision shapes to the monkey
What just happened?
Planning the collision shapes
Have a go hero
Testing the updated collision bounds
Configuring collision shapes for tiles
Time for action β modifying the collision bounds of a tile
What just happened?
Have a go hero
Adding enemies and collectibles
Downloading the enemies and collectibles
Placing the new actors into the jungle scene
Working with collision groups
Time for action β examining the collision group settings
What just happened?
Viewing the actors' collision groups
Time for action β examining the Players and Actors groups
What just happened?
Creating a new collision group
Time for action β creating a collision group for enemy actors
What just happened?
Have a go hero
Configuring collisions for the fruit actors
Using collision sensors
Time for action β configuring the fruit as a sensor
What just happened?
Have a go hero
Implementing terrain collision shapes
Time for action β adding a terrain collision area to the scene
What just happened?
Have a go hero
What else can we improve?
Summary
4. Creating Behaviors
Creating custom behaviors
Creating our first custom behavior
Time for action β creating a behavior
What just happened? ...