Easier rotation?

BlitzMax Forums/BlitzMax Beginners Area/Easier rotation?

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Wouldn't you have something like (typed straight into reply box so untested, but you get the idea):
Aliens:tAliens = new tAliens

Aliens.Add()
Aliens.Draw()

Type tAliens
  Field list:TList = New TList

  Method add()
    local alien:tAlien = new tAlien
    'set alien attributes here
    Self.list.AddLast alien
  End Method

  Method draw()
    Local alien:tAlien
    For alien = EachIn Self.list
      SetRotation alien.angle
      DrawImage alien.image, alien.x, alien.y
    Next
    SetRotation 0
  End Method

End Type

Type tAlien
  Field x:Float
  Field y:Float
  Field angle:Float
  Field image:TImage
End Type