更新时间:2021-08-20 17:04:01
封面
版权信息
Credits
Foreword
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Chapter 1. Introduction
How Stencyl works
How we'll learn to use Stencyl
Why Stencyl is a great development tool
Platforms that Stencyl runs on
What makes Stencyl different
Successful games created with Stencyl
Installing Stencyl and testing the setup
Time for action – downloading and installing Stencyl on Windows
Time for action – downloading and installing Stencyl for Mac OS X
Time for action – downloading and installing Stencyl for Linux
Time for action – creating an account and signing in
Time For action – testing Stencyl
Summary
Chapter 2. Let's Make a Game!
Using the downloaded game files
Creating a new game
Time for action – creating a new game
Creating a blank scene
Time for action – creating a blank scene
Downloading resources from StencylForge
Time for action – downloading an actor
Understanding the Stencyl Dashboard
Adding an actor into a scene
Time for action – adding an actor to the jungle scene
Testing the game
Time for action – testing the game
Downloading and using tiles for scenery
Time for action – downloading tiles from StencylForge
Time for action – adding tiles into the scene
Reviewing our progress
Using behaviors to interact with our game
Time for action – attaching a behavior to an actor
Time for action – configuring the behavior
Time for action – testing the game to find a problem!
Improving the scene mechanics
Time for action – adding gravity to the Jungle scene
Time for action – attaching another behavior to the actor
Time for action – increasing the width of the scene
Making the screen scroll
Time for action – attaching the Camera Follow behavior
Chapter 3. Detecting Collisions
Working with collision detection in Stencyl
Time for action – enabling the Debug Drawing feature
Modifying an actor's collision shapes
Time for Action – modifying the monkey's collision shapes
Time for action – adding more collision shapes to the monkey
Configuring collision shapes for tiles
Time for action – modifying the collision bounds of a tile
Adding enemies and collectibles
Working with collision groups
Time for action – examining the collision group settings
Time for action – examining the Players and Actors groups
Time for action – creating a collision group for enemy actors
Using collision sensors
Time for action – configuring the fruit as a sensor
Implementing terrain collision shapes
Time for action – adding a terrain collision area to the scene
Chapter 4. Creating Behaviors
Creating custom behaviors
Time for action – creating a behavior
Time for action – adding an action and attaching to it an actor
Time for action – adding an event and renaming the behavior
Creating a timed event
Time for action – creating a behavior to drop the statues
Examining screen size and scene size
Time for action – adjusting the drop-location of the statue
Time for action – making the behavior more flexible
Introducing randomness into our game
Time for action – introducing randomness to our behavior
Time for action – making the statues disappear after a delay
Implementing our first special effect
Understanding active actors
Time for action – stopping the statues from becoming inactive
Creating a countdown timer
Time for action – creating a countdown timer
Implementing decision making into our game
Time for action – listening for the countdown to reach zero
Repositioning an actor during gameplay
Time for action – creating an event to relocate the monkey
Triggering custom events in our behaviors
Time for action – triggering a custom event
Chapter 5. Animation in Stencyl
Creating an actor using an imported image file
Time for action – importing an image into the Animation Editor
Understanding Stencyl's animation terminology