From 1e85c9b2f23239d85b36ad0d54551a94caef0b44 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sat, 4 Oct 2014 17:37:21 +0200 Subject: [PATCH] Added death sprite for Kirby --- data/images/creatures/kirby/kirby.sprite | 12 +++++++++++- data/images/creatures/kirby/squished-left.png | Bin 0 -> 4337 bytes src/badguy/kirby.cpp | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 data/images/creatures/kirby/squished-left.png diff --git a/data/images/creatures/kirby/kirby.sprite b/data/images/creatures/kirby/kirby.sprite index 97fba4d40..0286bff53 100644 --- a/data/images/creatures/kirby/kirby.sprite +++ b/data/images/creatures/kirby/kirby.sprite @@ -1,5 +1,4 @@ (supertux-sprite - (action (name "left") (fps 20) @@ -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") + ) ) diff --git a/data/images/creatures/kirby/squished-left.png b/data/images/creatures/kirby/squished-left.png new file mode 100644 index 0000000000000000000000000000000000000000..227e683f9758125d6dde9192ed1976d5405c374b GIT binary patch literal 4337 zcmVWFU8GbZ8({Xk{QrNlj4iWF>9@01#D4L_t(o!_AmkjAU1N z$A90s_tsurT~obG&-C;xp7uJ%yN$sHY($J>V-ql7AQ6cWLBUZ1D1h=3!$SfI3L#*W z2b8b`1PV@A24RTJ5@IkAGlT8%GJDVTHoaBXa%;KEIbR-bV}fEHl3*z%mFnu2?m72= zzVE-Bb*3oG0U;wR1gNh2hG*nZ{*7D z-v3)L<=@;b0Jm*!FmY)k;I@5xr5u#$J0W!z)wWSJg0=*A4~Nd#cOQ^n8zA|=4)DH9 zkckm71y5zpdL%u(hadOdqlfNt`Fnpblycz7+E83KN>hk6)$d}=jRL-Xbfx^d{a%od zEMo=iM~~zF>)3CcLK=CvZw~#nfVsQj%NIA&Upd%YCZ#sJL$3&Y$+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-4srTu-t(&EjYZG#gvwIY7k7;n?_d^JW=AOT55-2EFH fkKCUmYXJNwNHM3vW-Pfd00000NkvXXu0mjfUKset_action(dir == LEFT ? "squished-left" : "squished-right"); + sprite->set_action(dir == LEFT ? "squished-left" : "squished-right"); kill_squished(object); return true; } -- 2.11.0