Wednesday, March 5, 2008

Actionscript 3 Darts Tutorial!


Darts anyone??

So I finally got around to creating an Actionscript 3 game. Actually I've got a few more in my secret stash, but this one is now in the "taught" category. So its a pretty typical Flash dart game. Grab a dart, release when the floating target is over a number, and hope you released in time. Some features I added (that I noticed were missing in most Flash dart games), you can control both the speed of the target area, as well as the location of the board. So by adjust some sliders (pic below)....



...you can control how the board moves across or up and down the screen.

Also I figured most people would want to take a shot at creating their own variation of the usual dart scoring. So the second part of the tutorial starts off by demonstrating the scoring for a "Round the Clock" dart game, then with a few slight modifications, I show how to add in a "501" scoring setup. All within the same game / coding framework, so when students want to customize the scoring, they should be well prepared for how and where they need to do that in the Actionscript documents. And speaking of which, this lesson teaches using all external .as files. Little easier to keep up with what code is where.

Anyway, here's a final pic of the game. But why the heck are you still reading this blog. Click anyone of these images to go actually play it, and consider buying the lesson.



Later playa's!