Main Page
News
History
Limitations
Graphics
Music
Levels
Gameplay
Now Browsing
Links
Download

Alien

  BaddieName                db     Flags
                                          db     Type
                                          dw    Anim
                                          db     Center offset/2 (x),Center offset/2 (y)
                                          db     Radius/2 (x),Radius/2 (y)
                                          db     Hits
                                          db     Points (hi),Points(lo)
                                          dw    Death Path
                                          dw    Death Struct

Args:

  • Flags: sprite flags (and over-rides). These can be:
  • KillClip: sprite is killed once it goes off screen.
  • Child: sprite being started is a child of the last path spawned. When the parent dies, all the children die as well.
  • Group: sprite is part of the current group.
  • NoCollision: sprite does not collide with player.
  • NoShoot: sprite can not be shot.
  • Type: preset relationships for bullet-to-object and player-to-object collisions.
  • Anim: the base address of the alien’s structure to use.
  • Center:
  • Radius:
  • Hits: power value before being defeated.
  • Points: reward score once shot down.
  • Death Path: alternative path once shot down.
  • Death Struct: alternative Alien structure once shot down.

  • Example: generous alien.

    This describes a Baddie you have to shoot two times with the lighter weapon, to achieve 10 points and be rewarded with a juicy big coin:

      BaddieName                   db 0                           ; Flags
                                              db TYPE_ALIEN        ; Type
                                              dw Baddie1Anim      ; Animation
                                              db 4,4                        ; center offset/2
                                              db 4,4                        ; radius/2
                                              db 2                           ; Hits
                                              db $00,$10                ; Points
                                              dw FallingPath          ; Death Path
                                              dw BigCoinBaddie    ; Death Struct

    See also:
    Start
    Type
    Anim
    Center
    Radius
    Hits
    Point
    Death Path
    Death Struct

    Main Table