diff --git a/android/src/main/assets/snake.png b/android/src/main/assets/snake.png index a7cba31ba..f302039cb 100644 Binary files a/android/src/main/assets/snake.png and b/android/src/main/assets/snake.png differ 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); }