Game Development Reference
In-Depth Information
dispatchEvent(new Event(GAME_OVER));
}
private function endLevel():void {
cleanUpLevel();
dispatchEvent(new Event(NEW_LEVEL));
}
You should also finish off the class definition with the following brackets c at the end of
DiceBattle.as :
}
}
Test it!
If you test Dice Battle, you'll notice that game starts really easy, but gets very hard very fast until
it is very difficult. How do you think you could change this? How could you create levels that
would ramp up in a smoother way?
There are many ways to further iterate games of this type into many other games. Color Drop and
Dice Battle use very simply gameplay mechanics that could be expanded on in many ways. What
about creating a game where you need to select multiple blocks or dice to make a hand, as you
would in a card game? What if, instead of falling, the dice and blocks entered the screen from
different directions? Alternatively, what would you do to take this game and iterate it into a Poker
Dice puzzle role-playing game?
Summary
There you have it. First we talked about the legal aspects of games and intellectual property, an
important but often misunderstood topic for any would-be game developer. We then iterated
Color Drop into a completely different game where you battle computer AI using dice name Dice
Battle. The minimax-style AI for the computers moves we used is just the tip of the iceberg when
it comes to computer Ai. Entire volumes have been written on the subject. If you are interested in
taking game AI further, here are some links to web sites that might be of value to you:
AI Depot : http://ai-depot.com/
AI Magazine : http://www.aaai.org/ojs/index.php/aimagazine/index
We hope with the last two chapters we have sparked your interest in making games of this type.
Now, we will move onto some really exciting games that push the game framework to its limit. Get
ready to scroll, drive, fly into space, and then make some money with a viral Flash game!
Search WWH ::




Custom Search