(supertux-sprite
(action
- (y-offset )
- (name "left")
+ (y-offset -2)
+ (name "large-left")
(images "walk-left-1.png"
-"walk-left-2.png"
-"walk-left-3.png"
-"walk-left-4.png"
-"walk-left-5.png"
-"walk-left-6.png"
-
-
-
+ "walk-left-2.png"
+ "walk-left-3.png"
+ "walk-left-4.png"
+ "walk-left-5.png"
+ "walk-left-6.png"
)
)
(action
- (y-offset )
- (name "right")
- (mirror-action "left")
+ (y-offset -2)
+ (name "large-right")
+ (mirror-action "large-left")
)
(action
- (y-offset 27)
+ (y-offset 12)
(name "small-left")
(images "small-left-1.png"
-"small-left-2.png"
-"small-left-3.png"
-"small-left-4.png"
-"small-left-5.png"
-"small-left-6.png"
+ "small-left-2.png"
+ "small-left-3.png"
+ "small-left-4.png"
+ "small-left-5.png"
+ "small-left-6.png"
)
)
(action
- (y-offset 27)
+ (y-offset 12)
(name "small-right")
(mirror-action "small-left")
)
reader.get("y", start_position.y);
stay_on_platform = false;
reader.get("stay-on-platform", stay_on_platform);
- bbox.set_size(99.8, 99.8);
+ bbox.set_size(84.8, 84.8);
sprite = sprite_manager->create("images/creatures/mr_tree/mr_tree.sprite");
}
{
if(mystate == STATE_BIG) {
physic.set_velocity_x(dir == LEFT ? -WALKSPEED : WALKSPEED);
- sprite->set_action(dir == LEFT ? "left" : "right");
+ sprite->set_action(dir == LEFT ? "large-left" : "large-right");
} else {
physic.set_velocity_x(dir == LEFT ? -WALKSPEED_SMALL : WALKSPEED_SMALL);
- bbox.set_size(31.8, 68.8);
+ bbox.set_size(31.8, 31.8);
sprite->set_action(dir == LEFT ? "small-left" : "small-right");
}
}
if (stay_on_platform && may_fall_off_platform())
{
dir = (dir == LEFT ? RIGHT : LEFT);
- sprite->set_action(dir == LEFT ? "left" : "right");
+ sprite->set_action(dir == LEFT ? "large-left" : "large-right");
physic.set_velocity_x(-physic.get_velocity_x());
}