Game Overview


Don't Fall! is a very simple but fun game. It uses an isometric tile-based world as the game board. As far as multiplayer games go, there is very little going on at once, and there isn't much opportunity for synchronization issues. This game is just waiting for someone to customize it, to make it more interesting (stay tuned at the end of the chapter for some ideas on this).

Before launching into the rules, let me lay out the basic setup of the game. There are two characters, one for each of the two players. Each of the characters is a monster one green, one blue. The fact that the characters are monsters lends to the theme of the game but changes nothing about the game play itself of course they could be any sort of characters you want.

The world is a tile-based, isometric, 10-by-10 grid. The grid's size does not play that important a role, either; changing the grid size should not affect game play much.

For the sake of explanation, let's assume that Player 1 is always the green monster, and Player 2 is always the blue monster.

graphics/19fig01.gif

Here are the rules of this game:

  1. Players start the game on diagonally opposite corners of the world, which is a grid of tiles suspended in the air.

  2. The green monster (Player 1) gets the first turn.

  3. The monster with the current turn can step on any adjacent tile. This is done by simply clicking that tile.

  4. The tile that the monster just left falls downward and disappears off the screen. Since this tile has fallen away, it cannot be stepped on again.

  5. After a monster has moved, it becomes the other monster's turn to move.

  6. A tile must have at least one of its four sides touching another tile. If it does not, then it, too, falls. Just having one of its corners touching the corner of another tile isn't enough to keep it up.

  7. If a monster is on a tile that falls, then that monster loses the game and the other wins the game.

  8. If both monsters fall at the same time, they both lose the game.

From the rules you should be able to guess that the object of the game is to stay standing longer than your opponent. The steps you choose to take can force your opponent into taking steps where he doesn't want to go. This game can become addictive. You will start to see that there is some strategy involved.

graphics/cd_icon.gif

Now play a game of Don't Fall! so that you can fully understand the controls of the game. Start ElectroServer on port 1024. Open dont_fall.fla in the Chapter18 directory. Publish a SWF from this FLA. Open two instances of the dont_fall.swf you just created. Log in to both, using two different user names. As in the previously discussed multiplayer games of tic-tac-toe and 9-ball, from one of the game instances, click your opponent's name to challenge him. Then from the other game instance, click to accept the challenge.

graphics/19fig02.gif

At this point you will find that both game instances have moved to a screen that displays the game of Don't Fall! The green monster is Player 1. So move to the game instance that belongs to the green monster. As you move your mouse over the tiles, you'll notice that a little circle appears if your mouse moves over any tiles that are adjacent to the one on which the green monster stands. You can then click any of those tiles. Once you click, the green monster walks to that tile, and the tile he was just on falls. It is now the blue monster's turn. Move to the game instance belonging to him. You should immediately see that this game instance shows exactly what the other one does the green monster in a new spot and one tile missing.

You can now click a tile adjacent to the blue monster to move him. Keep moving both monsters until someone wins. And there you have it a simple but addictive game.

graphics/19fig03.gif

For the rest of the chapter, we will discuss the multiplayer ActionScript, the game ActionScript, and some possible game improvements for Don't Fall!



Macromedia Flash MX Game Design Demystified(c) The Official Guide to Creating Games with Flash
Macromedia Flash MX Game Design Demystified: The Official Guide to Creating Games with Flash -- First 1st Printing -- CD Included
ISBN: B003HP4RW2
EAN: N/A
Year: 2005
Pages: 163
Authors: Jobe Makar

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net