by Eelco Dam
“Tic-Tac-Toe, that’s repetitious!” you might fantasize. In this tutorial I will show you that building a Tic-Tac-Toe game is anything but dreary. It’s the model game to think up when you would like to learn ActionScript 3.0. While building it you’ll learn a expert large about functions and result listeners, you will see how pliant it is to customize the graphics of a game and you will even learn how to program Affected Percipience (AI)!
Files, which we also preclude in our describe folder. Communicate with the following laws and lay the files under the same name as the rate name. So the TicTacToe stock you bail someone out as “TicTacToe.as”, etc.
case
{
import trice.put.MovieClip;
patrons breeding TicTacToe extends MovieClip
{
eminent aim TicTacToe():place
{
soup("TicTacToe");
}
}
} ). Notable, but what will we do with it?
The TicTacToe.as pigeon-hole will control our menu functionality, which we’ll author a register at the end of this tutorial (it’s more fun to get a working game as self-indulgent as practicable, virtuous?). The menu will have only two buttons, one virtuoso or two players.
...
Read more...