scripts restructured; teleswitch now works
[dd2d.git] / data / scripts / item / shell.dacs
blobaf351c6650c9f7edf358aebc0d63efcc1f466676
1 module itemShell is "item" "Shell";
3 import apiActor;
4 import aiItem;
7 // setup actor animations
8 public void initializeAnim () {
9   animClearFrames("item", "Shell", "sleep");
10   animAddFrame("item", "Shell", "sleep", ACTOR_DIR_LEFT, "sprites/items/shela0.vga");
14 // setup actor properties
15 public void initialize (Actor me) {
16   // `classname` and `classtype` will be set by the engine
17   //me.classname = "Shell";
18   //me.classtype = "item";
19   me.radius = 10;
20   me.height = 8;
21   me.actorSetAnimation("sleep");
22   me.flags |= AF_NOGRAVITY;
26 // thinker
27 public void think (Actor me) {
28   itemThink(me);