Sign in to follow this  

Actionscript 3 full Asteroids tutorial using flashdevelop

This topic is 2488 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I finished putting together a set of tutorials for creating an asteroids game using the free FlashDvelop IDE.

If anyone wanted to check them out and provide feedback, I would appreciate it.

The tutorials are how to setup flashdevelop, create a main game loop, use blitting in flash instead of flash's 'display list', and how to program the complete game.

Secondly, I added a tutorial for replacing programmed vector graphics with pre-created bitmaps, and how to embed bitmaps in flash.

My tutorial site is at: [url="http://www.chrismweb.com"]www.chrismweb.com[/url]

Let me know if you want me to write any tutorials about anything, and I'll attempt to get them up there ASAP.

[img]http://chrismweb.com/wp-content/uploads/2011/02/part_10_screen.jpg[/img]

Share this post


Link to post
Share on other sites
[quote name='doomtoo' timestamp='1298055248' post='4776024']
... use blitting in flash instead of flash's 'display list', ...
[/quote]
Thanks for posting the tutorial. I'm pretty new to AS3 and was wondering why you didn't have the asteroid objects (etc.) descend from Sprite and actually addChild() them to the stage. Is there an advantage to doing it the way you did it -- Speed? etc. -- or did you do it that way just so that the AS3 code is structured similarly to the way it would be if you wrote Asteroids in C++?

Share this post


Link to post
Share on other sites
[quote name='jwezorek' timestamp='1298231143' post='4776764']
Thanks for posting the tutorial. I'm pretty new to AS3 and was wondering why you didn't have the asteroid objects (etc.) descend from Sprite and actually addChild() them to the stage. Is there an advantage to doing it the way you did it -- Speed? etc. -- or did you do it that way just so that the AS3 code is structured similarly to the way it would be if you wrote Asteroids in C++?
[/quote]

Hey, thanks for checking out the tutorial!

Yeah, I wrote the tutorial using blitting instead of using the display list to lead up to more involved games, and also to show how to use that method. I normally use it more because I like being able to quickly control the order of my display objects, and it is supposed to be a lot faster (but probably more so when you get hundreds of bitmaps vs. hundreds of display objects).

But for this game using flash, it would be faster to just use flash's display list, and no real advantage to using blitting - it actually takes a lot more time to get it working.

I started another tutorial as well on creating the asteroids game using the display list, if you want to check it out:

[url="http://chrismweb.com/2011/02/09/creating-an-asteroids-game-using-the-display-list-part-1-creating-the-game-ship-and-keyboard-controls/"]http://chrismweb.com/2011/02/09/creating-an-asteroids-game-using-the-display-list-part-1-creating-the-game-ship-and-keyboard-controls/[/url]

I should finish that one too- so people can chose what technique they want to use (since one is faster than the other to get working for some situations - like when you don't have a ton of objects, or need add/remove+ depth sort a lot of objects), but the first part is finished and can be used to go off the next ones.

Thanks for checking it out, let me know if you want me to write a tutorial about something, and I'll work on putting up a series using the display list instead of blitting, so both options can be seen.

Share this post


Link to post
Share on other sites
Sign in to follow this