From f5d88c333e6b430604c411d94211ef746270d937 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 30 Sep 2019 22:04:10 -0400 Subject: [PATCH] v0.7.5: improved snake sprite --- android/src/main/assets/snake.png | Bin 282 -> 390 bytes .../sprites/SnakeSprite.java | 15 ++++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/android/src/main/assets/snake.png b/android/src/main/assets/snake.png index a7cba31ba8935503df07f35447d47c43241aeb91..f302039cba6865ec8bca9d4401b87e5f4b069392 100644 GIT binary patch delta 363 zcmV-x0hIol0)_*SB!3uCOjJeffca;&00000d)Wa0001~>0RQD>%(qb;Jh-R;0004W zQchCuP-Z7CFv)bU)&&~&7Nd;$Yc%i(Lx z?U7GGlA{K*DrBYxX|MpDnt$N)ODNi^SffUEwkG=0HWnUl>x#gCBm0#vyJ-~tfu{Qt!002ov JPDHLkV1o5gr-lFk delta 254 zcmVB!Pz(m(HUjf2asa&nM|dWUGbVQT{--eV$E4J^(ZPX# z_zLOrL+KyFCF&!7!0e1;)V1O3g@`agyWPF#M^gc>Eg z0L>rgaB(hpEUT`@G*MO_L015{tt%sx74wEppryFe9ZHq)$ diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/SnakeSprite.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/SnakeSprite.java index 479dcb96a..6e73c2f48 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/SnakeSprite.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/SnakeSprite.java @@ -24,7 +24,6 @@ package com.shatteredpixel.shatteredpixeldungeon.sprites; import com.shatteredpixel.shatteredpixeldungeon.Assets; import com.watabou.noosa.TextureFilm; -//TODO placeholder graphics atm public class SnakeSprite extends MobSprite { public SnakeSprite() { @@ -32,19 +31,21 @@ public class SnakeSprite extends MobSprite { texture( Assets.SNAKE ); - TextureFilm frames = new TextureFilm( texture, 12, 12 ); + TextureFilm frames = new TextureFilm( texture, 12, 11 ); + //many frames here as we want the rising/falling to be slow but the tongue to be fast idle = new Animation( 10, true ); - idle.frames( frames, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1 ); + idle.frames( frames, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 1, 1); - run = new Animation( 10, true ); - run.frames( frames, 3, 4 ); + run = new Animation( 8, true ); + run.frames( frames, 4, 5, 6, 7 ); attack = new Animation( 15, false ); - attack.frames( frames, 5, 6, 7, 7, 0 ); + attack.frames( frames, 8, 9, 10, 9, 0); die = new Animation( 10, false ); - die.frames( frames, 8, 9, 10 ); + die.frames( frames, 11, 12, 13 ); play(idle); }