Book Image

Learning Stencyl 3.x Game Development: Beginner's Guide

By : INNES BORKWOOD
Book Image

Learning Stencyl 3.x Game Development: Beginner's Guide

By: INNES BORKWOOD

Overview of this book

Creating video games has traditionally been a long and complicated process, requiring years of experience and a vast array of skills. However, with the introduction of comprehensive game-development toolkits such as Stencyl, the fun has returned to the art of game-creation ‚Äì anyone who has the desire to create their own video game can now do so with almost any desktop computer and a free software download from the Internet!Learning Stencyl 3.x Game Development: Beginner's Guide will put you on the fast-track to learning the essentials of the powerful Stencyl game-development toolkit. You will develop a complete, ready-to-publish video game including in-game advertising, by following the clear, step-by-step tutorials, supported by numerous screenshots and practical examples.This book will guide you through all the important steps required to develop and publish your video game. Starting with the installation and testing of the Stencyl toolkit, you will very quickly advance to the fun and exciting process of creating a playable game. The step-by-step tutorials will guide you from a blank screen, right through to giving your game that final polish and sharing it with the rest of the world. Whilst developing your feature-complete video game, you will learn how to easily detect collisions in your game using Stencyl's built-in physics engine. You'll discover how to use the powerful animation tools included in Stencyl's toolkit, and you'll find out how to make your game shine with sounds and visual special effects. You will also discover how Stencyl makes it easy to utilize the touch-screen and accelerometer features of smartphones and tablet computers. You will learn all the essential skills required to develop a video game from scratch ‚Äì right through to publishing a game on the Internet and testing games  on the most popular mobile devices.
Table of Contents (20 chapters)
Learning Stencyl 3.x Game Development Beginner's Guide
Credits
Foreword
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Time For action – testing Stencyl


We're going to load up Stencyl, open one of the sample games that has been provided, and run the game to make sure that Stencyl is working properly.

Note

From this point onwards, all the tutorials will be the same whether Stencyl is running on Microsoft Windows, Mac OS X, or Linux, although the screenshots have mainly been taken using the Microsoft Windows version. On the rare occasion that there is a difference between the versions, it will be explained clearly in the tutorial.

  1. If Stencyl is not already running on your computer, load it up and make sure that you have signed in with the account username and password that you created earlier, so you will see a screen that looks something like the following screenshot:

    Don't worry if the list of games isn't identical on your screen, because the sample games packaged with Stencyl may be changed as software updates are released.

  2. Double-click on the game icon for Alien Approach to open the game.

  3. When the game has loaded, ensure that the target-platform drop-down option is set to Flash (Player), and click on the blue arrow labeled Test Game, both of which can be found at the upper-right corner of the screen, as shown in the following screenshot:

  4. Wait for Stencyl to create the game and display it in the Adobe Flash Player window as shown in the following screenshot (this may take up to 30 seconds, perhaps more on a very old computer).

  5. Play the game using the arrow keys to move left and right, and the spacebar to fire your weapons.

  6. When you have finished playing the game, close the Adobe Flash Player window.

What just happened?

We just loaded a game into Stencyl and compiled it for the first time! Compilation is the process of converting the Stencyl game-code into a format that will run on our target platform. The default target platform is Flash, so when the compilation process has finished, the game will be displayed in an Adobe Flash Player window.

It's important to be aware that the sample games are not completed projects – they are just examples that have been provided so that we can see the kind of games that can be created. We can also use the samples to understand how the games have been put together, which is a great way to learn!

Have a go hero

We've loaded and compiled one sample game and have had a play, so why not try some of the other sample games that have been provided?

Before we can open up another game, we should close the Adobe Flash Player window in which the previously tested game is running, and we must close the current game in Stencyl by clicking on File | Close Game and follow any prompts that appear.

Now, experiment with the other sample games, so that you become comfortable with the process of loading, testing, and closing games in Stencyl.