(supertux-sprite
-; these graphics could use some work
(action
(hitbox 0 0 31.8 31.8)
(name "normal")
- (images "iceflame-0.png"
- "iceflame-1.png"
- "iceflame-2.png"
- "iceflame-3.png"
- "iceflame-4.png"
- "iceflame-5.png"))
+ (images "iceflame.png"))
(action
(hitbox 0 0 31.8 31.8)
(name "fade")
(fps 5)
- (images "iceflame-1.png"
- "iceflame-fade-0.png"
+ (images "iceflame-fade-0.png"
"iceflame-fade-1.png"
- "iceflame-fade-2.png"
- "iceflame-fade-3.png"))
+ "iceflame-fade-2.png"))
(action
(hitbox 96 96 127.8 31.8)
(name "editor")
void
Iceflame::draw(DrawingContext& context)
{
+ context.push_target();
+ //Rotate the Sprite (3 rotations per revolution)
+ sprite->set_angle(angle * 360.0f / (2*M_PI) * 3);
//Draw the Sprite.
sprite->draw(context, get_pos(), LAYER_OBJECTS);
//Draw the light if dark
context.get_light( get_bbox().get_middle(), &light );
if (light.blue + light.green < 2.0){
- context.push_target();
context.set_target(DrawingContext::LIGHTMAP);
lightsprite->draw(context, get_bbox().get_middle(), 0);
- context.pop_target();
}
+ context.pop_target();
}