AS3 Keyboard source plus extras

This was one of my first tests I did with actionscript 3. My main goal was to try and figure out how the keyboard and graphics worked in as3. In the source provide there are a couple routines that can be used to draw custom numbers for your games, and a way to move a ship through space. The source has not been commented on at this point since I have moved on to other projects.

Please leave a message if you need help understanding what’s going on.

Leave a comment

Use the left/right keys to turn ship, and the up key to provide thrust.

    source

  • base.as - main class
  • drawtext.as - class used to draw custom text
  • mainobject.as - class that holds the main objects properties
  • player.as - class that builds the player ship
  • roid.as - class that builds a random astroid