02.02.2013 Views

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

Flash MX 2004 Games : Art to ActionScript

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Flash</strong> <strong>MX</strong> <strong>2004</strong> <strong>Games</strong><br />

Enhancements<br />

As ‘Examples\Chapter18\Football.fla’ stands, there are many enhancements that could be made<br />

<strong>to</strong> greatly improve the game. The game needs a team strip chooser <strong>to</strong> enable the user <strong>to</strong> choose a<br />

team. There is no defined end <strong>to</strong> the game, and there should be a change of ends at half time and<br />

a final whistle. Running in<strong>to</strong> an opponent could be regarded as a foul and a free kick given. The<br />

game needs crowd noises and music.<br />

The collision code is all the code necessary <strong>to</strong> create a snooker game; the balls can be made<br />

<strong>to</strong> bounce off each other using the collision function in the ball object. It is left <strong>to</strong> the interested<br />

reader <strong>to</strong> create a snooker, pool or pinball game based on this collision code.<br />

Summary<br />

The code in this chapter presents the greatest challenge <strong>to</strong> the reader. Some of the tests involved<br />

in the collision detection use vec<strong>to</strong>r math results that are likely <strong>to</strong> push many readers’ maths <strong>to</strong> the<br />

limit. By all means just strip out the code and get it working for you without worrying unduly<br />

how the code achieves its results. If you are interested in the methods then read up more on vec<strong>to</strong>r<br />

math, because there is a lot of interesting stuff out there for you <strong>to</strong> make use of in your games. In<br />

the next section we look at how you can create <strong>Flash</strong> games for players on the move.<br />

306

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!