-
18
pages
-
English
-
Documents
Description
AS3 game tutorial Written by Stephan Meesters, www.keepsake-games.com Introduction In this tutorial we will be creating a mouse/shooting game of intermediate difficulty. Basic OOP concepts will be explained as well as some higher-level coding techniques. It has basically got the structure that would work on most kind of flash games. It is adviced to keep the source code next to you when reading the tutorial, because not every bit is explained. The graphics for the player consists of a simple circle with a line attached to it, that rotates according to the mouse movement. Red balls come in a random wave manner and shooting them gives the player points. Touching a red ball will decrease your health. The finished product can be seen here: www.keepsake-games.com/games/gametutorial/ The source code is available here: www.keepsake-games.com/games/gametutorial/gametutorialsource.zip In case you are using this code to create your own game, please add my name to the credits. Figure 1: The finished product 1.1 Setting up the document class In the flash authoring tool (Adobe Flash CS3 in this tutorial) you can configure a document class by clicking on the stage and selecting “document class” in properties. In this tutorial we will name our class “GameBasis”. Figure 2: Setting up the document class The document class is a extension of the main timeline that we see in our FLA file. In this class we have the direct access to stage ...
-
Publié par
-
Langue
English