Skip to content

Commit

Permalink
Added death sprite for Kirby
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Oct 4, 2014
1 parent 874054f commit 1e85c9b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion data/images/creatures/kirby/kirby.sprite
@@ -1,5 +1,4 @@
(supertux-sprite

(action
(name "left")
(fps 20)
Expand All @@ -20,4 +19,15 @@
(hitbox 8 12 38 38)
(mirror-action "left")
)

(action
(name "squished-left")
(hitbox 8 -5 38 38)
(images "squished-left.png")
)
(action
(name "squished-right")
(hitbox 8 -5 38 38)
(mirror-action "squished-left")
)
)
Binary file added data/images/creatures/kirby/squished-left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/badguy/kirby.cpp
Expand Up @@ -35,7 +35,7 @@ Kirby::Kirby(const Vector& pos, Direction d, std::string script)
bool
Kirby::collision_squished(GameObject& object)
{
//sprite->set_action(dir == LEFT ? "squished-left" : "squished-right");
sprite->set_action(dir == LEFT ? "squished-left" : "squished-right");
kill_squished(object);
return true;
}
Expand Down

0 comments on commit 1e85c9b

Please sign in to comment.