(images "left-0.png"
"left-1.png"
"left-2.png"
- "left-3.png"))
+ "left-1.png"))
(action (name "right")
(hitbox 1 6 33 32)
--- /dev/null
+(supertux-sprite
+ (action
+ (name "left")
+ (hitbox 1 6 33 32)
+ (images "left-0.png"
+ "left-1.png"
+ "left-2.png"
+ "left-1.png"))
+
+ (action (name "right")
+ (hitbox 1 6 33 32)
+ (mirror-action "left"))
+
+ (action (name "falling-left")
+ (hitbox 2 5 31.8 31.8)
+ (images "flat-left.png"))
+
+ (action (name "falling-right")
+ (hitbox 2 5 31.8 31.8)
+ (mirror-action "falling-left"))
+
+ (action (name "flat-left")
+ (hitbox 1 9 33 26)
+ (images "flat-left.png"))
+
+ (action (name "flat-right")
+ (hitbox 1 9 33 26)
+ (mirror-action "falling-left")))
#include "audio/sound_manager.hpp"
#include "object/player.hpp"
#include "sprite/sprite.hpp"
+#include "sprite/sprite_manager.hpp"
#include "supertux/object_factory.hpp"
#include <math.h>
return ice_state == ICESTATE_FLAT;
}
+SmartBlock::SmartBlock(const Reader& reader) :
+ MrIceBlock(reader)
+{
+ max_drop_height = 16;
+ sprite = sprite_manager->create("images/creatures/mr_iceblock/smart_block/smart_block.sprite");
+}
+
/* EOF */
int squishcount;
};
+class SmartBlock : public MrIceBlock
+{
+public:
+ SmartBlock(const Reader& reader);
+};
+
#endif
/* EOF */
add_factory<SkyDive>("skydive");
add_factory<SkullyHop>("skullyhop");
add_factory<SmartBall>("smartball");
+ add_factory<SmartBlock>("smartblock");
add_factory<Snail>("snail");
add_factory<SnowBall>("snowball");
add_factory<Snowman>("snowman");