home *** CD-ROM | disk | FTP | other *** search
-
- // This object moves and renders the marching aliens.
-
- #import <gamekit/gamekit.h>
-
- // size of an alien
- #define BULLET_WIDTH 6
- #define BULLET_HEIGHT 16
- #define BULLET_FRAMES 4
-
- // possible states (determine what we can do, etc.)
- #define BULLET_ACTIVE (GK_DEAD_ACTOR + 1)
- #define BULLET_INACTIVE GK_DEAD_ACTOR
-
- // speed of bullet drop...
- #define BULLET_DROP_SPEED 2
-
- @interface NXIBullet:GKActor
- {
- }
-
- - init;
- - collidedWith:anActor; // called when it is detected that we hit something
- - move:sender; // decide where to move the ghost for the next frame
-
- @end
-