I'm a student trying to build asteroids for a flash assignment. I was only ever introduced to and started to use flash with AS3. 98% of tutorials out there are as2 and flash 6. Those are probably the same thing aren't they.
Anyway I'm trying to build asteroids with a no timeline code. I'm building it with a nice document and object class system with a main document class and then a ship object class, a rocks object class and a laser object class.
I'm trying to find tutorials that deal with the ship movement, creating the dynamic rocks and lasers in as3 and have failed to find any. Can any of you guide me towards "modern" tutorials for what I'm trying to achieve?
I have already tried programming the game all on my own and it half ass functions. The ship moves and what not but I have a disgusting keyDownHandler with a 'switch' 'case' function for the movement. Rather than explain how that works out, basically no one will ever want keyboard controls like that.
For my asteroids I have hardcoded 4 asteroids to spawn anywhere along the four edges of the stage (obviously that's not the proper way to do it)
And for my laser, so far I've only been able to achieve one laser to generate and can't make it follow the rotation of the ship. It fires down to the right.
So I have an idea of what I'm doing but I'd love some AS3 tuts/code to help meeeeeee