package org.egordorichev.lasttry.entity;

import org.egordorichev.lasttry.util.Assets;
import org.newdawn.slick.Animation;

public class GreenSlime extends Enemy {
	public GreenSlime() {
		super("Green Slime", 28, 0, 12);

		this.image = Assets.greenSlimeTexture;
	//	this.animation.addFrame(this.image.getSubImage(0, 0, 32, 24), 300);
	//	this.animation.addFrame(this.image.getSubImage(32, 0, 30, 24), 300);

		this.rect.width = 32;
		this.rect.height = 24;
	}
}
@@ -257,26 +257,221 @@
 exture;%0A
-%09//%09this.a
+%0A%0A%09%09Animation jumpAnimation = new Animation();%0A%0A%09%09jumpAnimation.addFrame(this.image.getSubImage(32, 0, 30, 24), 1);%0A%09%09jumpAnimation.setLooping(false);%0A%0A%09%09Animation idleAnimation = new Animation();%0A%0A%09%09idleA
 nimation
@@ -510,17 +510,17 @@
 (0, 0, 3
-2
+0
 , 24), 3
@@ -529,17 +529,14 @@
 );%0A%09
-//%09this.a
+%09idleA
 nima
@@ -606,50 +606,407 @@
 his.
-rect.width = 32;%0A%09%09this.rect.height = 24;%0A%09%7D%0A%7D
+animations%5BState.JUMPING.getId()%5D = jumpAnimation;%0A%09%09this.animations%5BState.IDLE.getId()%5D = idleAnimation;%0A%09%09this.animations%5BState.DEAD.getId()%5D = null;%0A%09%09this.animations%5BState.FALLING.getId()%5D = jumpAnimation;%0A%09%09this.animations%5BState.FLYING.getId()%5D = null;%0A%0A%0A%09%09this.rect.width = 32;%0A%09%09this.rect.height = 24;%0A%09%7D%0A%0A%09@Override%0A%09public void updateAI() %7B%0A%09%09super.updateAI();%0A%0A%09%09// TODO: bounce and jump%0A%09%7D%0A%7D%0A

Update Green Slime animation