Be a Supporter!

mikemike

Main News Movies Games Audio Favorites Reviews Stats 1,299 Fans
Follow mike

ActionScript 3.0 Game Architecture

2009-12-12 16:55:22 by mike
Updated

A few weeks ago, I had the pleasure of attending Flash Camp Philadelphia. It was a great conference -- nice atmosphere and interesting people! I'm looking forward to it again next year.

I was also invited to speak at the conference, so I gave a talk on ActionScript 3 game programming. I spoke about how games are built, the pros and cons of the standard game inheritance hierarchy, and a few alternatives to it. I also talked about some techniques such as:

- Timing using getTimer()
- Decoupling game logic and animation from Flash Player's frame rate
- Rolling your own display list for benefits such as depth sorting
- Using the Flex Builder profiler to optimize your game

A lot of these techniques are used by the newer game frameworks such as Flixel, so it's good to have an understanding of what's going on behind the scenes!

I've uploaded the slides and sample code. Hopefully someone finds it useful!

ActionScript3.0 Game Architecture - download slides and sample code


Comments

You must be logged in to comment on this post.


TheMAMTheMAM

2012-03-03 07:20:41

I didn't understand a word you said, but you look smart. :P


PuffyNarwhalPuffyNarwhal

2012-01-02 23:00:00

Oh, cool!


PsychoZoidPsychoZoid

2011-10-31 18:59:05

Trick-or-Treat!


PsychoZoidPsychoZoid

2011-10-31 18:56:03

Trick-or-Treat!


BoxxyBoxxy

2011-07-28 10:32:30

dork


KenzuKenzu

2011-07-17 15:04:38

Why don't you post anymore?


PikanjoPikanjo

2011-05-22 13:25:07

Yo Mike, it's 2011.
-Richie


groundpwndrgroundpwndr

2011-05-14 11:11:18

Keep on keeping on.
Peace.


Ebob101Ebob101

2011-02-12 20:46:20

Akuma is going to hadoken you to Denmark


InnermikeInnermike

2011-01-03 18:04:36

Shit are you really have a doctorate in computer science!?


Hamodey1Hamodey1

2010-11-08 10:51:24

Noone likes turtle!


FalonefalFalonefal

2010-11-02 10:39:12

Dropping by to say "Hi" to one of the coolest people on NG.


LuckyHeartLuckyHeart

2010-10-31 15:58:58

Happy Halloween, mike!


RaabRaab

2010-10-31 14:25:46

Happy Halloween!


ConalConal

2010-10-31 08:15:52

Trick or treat? :3


ConalConal

2010-09-21 06:47:59

3D programming in Flash 9? That's impossible!


Hamodey-xsHamodey-xs

2010-08-19 13:31:49

ITS SCORPION!!!!!


neekoneeko

2010-07-21 06:58:20

this is great. thanks!


XyresicXyresic

2010-07-19 03:48:35

are you dead?


mohhamed-xsmohhamed-xs

2010-05-17 08:41:30

no one likes turtle.


JonSandnessJonSandness

2010-05-05 23:19:50

Do you think you could re-upload the slides to that presentation? =) I'd love to take a look!


Mans0nMans0n

2010-04-13 12:43:09

so did you help code newgrounds? is that why you have a red name??


GobblemeisterGobblemeister

2010-04-01 01:00:07

In honor of Kevin Bacon Day Gobblemeister will now list his filmography

Film
National Lampoon's Animal House
Starting Over
The Gift
Hero at Large
Friday the 13th
Only When Kevin Bacon Laugh
Diner
Forty Deuce
Enormous Changes at the Last Minute
Footloose
Quicksilver
White Water Summer
End of the Line
Planes, Trains & Automobiles
She's Having a Baby
Criminal Law
The Big Picture
Tremors
Flatliners
Pyrates
Queens Logic
He Said, She Said
JFK
"A Little Vicious"
A Few Good Men
The Air Up There
The River Wild
"New York Skyride"
Murder in the First
Apollo 13
Balto
Sleepers
Picture Perfect
Destination Anywhere
Telling Lies in America
Digging to China
Wild Things
Stir of Echoes
Kevin Bacon's Dog Skip
Kevin Bacon Married Margo
Hollow Man
Novocaine
Trapped
Mystic River
In the Cut
"Imagine New York"
The Woodsman
Cavedweller
"Natural Disasters: Forces of Nature"
Loverboy (also directed)
Beauty Shop
Where the Truth Lies
Death Sentence
Rails & Ties
The Air Kevin Bacon Breathe
Frost/Nixon
"Saving Angelo"
Taking Chance
The Magic 7
Kevin Bacon's One and Only

Television
Search for Tomorrow
The Guiding Light
The Demon Murder Case
Mister Roberts
The Little Sister
Lemon Sky
Frasier Vic
Will & Grace


castcast

2010-03-30 06:31:18

dork


StamperStamper

2010-03-22 09:22:57

dork


Grub-Xer0Grub-Xer0

2010-03-13 18:24:36

Hey mike, look to your right!


platypuspwnplatypuspwn

2010-02-07 23:40:09

Well, I know jackshit about Actionscript, but have fun with it, peoples.


YZ1YZ1

2010-02-06 18:14:50

lol love your pic


ConalConal

2010-02-05 19:53:39

There's a camp for flash? :/


walterwagnerwalterwagner

2010-01-28 21:13:34

mike WHOOOOOOOOOOOO


ConalConal

2010-01-28 13:20:12

Is Luis going to be on /staff?


ColonelFlashColonelFlash

2010-01-20 10:31:32

Quite interesting.
I like your object-oriented explanations, especially the implementation of GameObjects.


jakenator85jakenator85

2010-01-17 20:15:26

Your admin level icon. Do you really look like that?


RobHalfordRobHalford

2010-01-13 14:34:58

Definitely gonna check this out. For someone who always hits a roadblock a few hours into game development, hopefully it'll help.


TheForsaken666TheForsaken666

2009-12-23 08:01:34

can i make a suggestion. on the personal user account page, can you fix it to were you can customize and organize and separate favorite animations from games? and possibly be able to make genre based sub-sections to find personal favorite flashes? this is a much needed improvement for the site to be much more user friendly. it would be awesome if these changes can be made. thanks for listening and i would appreciate a reply if you can find the time.


TylerTyler

2009-12-18 12:57:31

It was nice talking to you there - very insightful stuff


devilsgaragedevilsgarage

2009-12-15 05:20:09

Congrats one being invited to speak at the conference. Shows that you are very skilled at what you do. Cheers


Deadclever23Deadclever23

2009-12-13 13:51:03

Was useful, most of it though was what i already do put into words. The idea of the game object, game character, then player hierarchy was a good idea though that I don't really use.

Also I've never really bothered using manual updates, they just never really fit in with the way I like to code, which is probably badly, but there we go.


BossBoss

2009-12-13 11:03:53

Sometimes these complicated sounding words and phrases just make me want to cry.


NeNeNeNe

2009-12-12 18:45:41

Youre overrated Mike!


ilikeblamingcrapilikeblamingcrap

2009-12-12 18:38:19

Why did you not speak of the majesty of cock jokes? Or was that Jeff's job?


JamesKnoxJamesKnox

2009-12-12 18:25:02

I can't stand AS3


Glaiel-GamerGlaiel-Gamer

2009-12-12 18:07:19

Neat, you know you can force flash to skip rendering for you by playing a sound set to "stream" in the background? Taking over the updating of flash's clips can be a pain if there's a lot of nested stuff, so if it's really an issue sometimes just streaming "silence" in the background can be a lot easier

mike responds:

I've had some bad experiences trying this where Flash would skip frames in odd ways. There was actually a bug in Time Fcku where a stream sound playing accidentally over the game caused the game to run super turbo speed. It was really bizarre, and I'm not sure why Flash wanted to skip so many frames so quickly!

It's a pain in the ass to implement, but manually controlling the animation does give you some nice benefits, like easily slowing or speeding up animations for doing things like bullet-time.


LDAFLDAF

2009-12-12 18:03:33

I'm probably gonna benefit from the list, I just started trying to learn AS3. Thanks


SteelChairSteelChair

2009-12-12 17:31:09

Always nice to hear from you Mike.


serbatserbat

2009-12-12 17:17:46

Flixel games are fun and I never knew that about it so thanks for the heads up


RuckloRucklo

2009-12-12 17:02:21

I wish i could say i think the above is awesome, really I do - but i can't, cause i don't know much of what you're talking about... :)

i'm currently taking a java-course, basic programming. goal is to get started with programming, and as soon as i can i'll start cracking with AS3.

just downloaded the sample-codes, but i need to get a showckwaveplayer to read it some files, and my flash-demo is outdated.
darn, i'll get to it later on. thanks for sharing though, in a few years when i've hopefully learned AS3, maybe i'll be able to judge the value of the content... :)


ChdongaChdonga

2009-12-12 16:59:37

It's a shame that flixel isn't AS2 compatible.