we now have (non-functional) items!
[dd2d.git] / data / scripts / item / redkey.dacs
blobf84530717f7901964f0e5907b601cbcc51aee417
1 module itemRedkey is "item" "RedKey";
3 import actor;
4 import actorai;
7 // setup actor animations
8 public void initializeAnim () {
9   animClearFrames("item", "RedKey", "sleep");
10   animAddFrame("item", "RedKey", "sleep", ACTOR_DIR_LEFT, "sprites/items/keyra0.vga");
14 // setup actor properties
15 public void initialize (Actor me) {
16   // `classname` and `classtype` will be set by the engine
17   //me.classname = "RedKey";
18   //me.classtype = "item";
19   me.radius = 10;
20   me.height = 8;
21   me.actorSetAnimation("sleep");