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.texture = Assets.greenSlimeTexture;


		Animation jumpAnimation = new Animation();

		jumpAnimation.addFrame(this.texture.getSubImage(32, 0, 30, 24), 1);
		jumpAnimation.setLooping(false);

		Animation idleAnimation = new Animation();

		idleAnimation.addFrame(this.texture.getSubImage(0, 0, 32, 24), 300);
		idleAnimation.addFrame(this.texture.getSubImage(32, 0, 30, 24), 300);

		this.animations[State.JUMPING.getId()] = jumpAnimation;
		this.animations[State.IDLE.getId()] = idleAnimation;
		this.animations[State.DEAD.getId()] = null;
		this.animations[State.FALLING.getId()] = jumpAnimation;
		this.animations[State.FLYING.getId()] = null;


		this.renderBounds.width = 32;
		this.renderBounds.height = 24;
	}

	@Override
	public void updateAI() {
		super.updateAI();

		// TODO
	}
}
@@ -83,44 +83,8 @@
 ets;
-%0Aimport org.newdawn.slick.Animation;
 %0A%0Apu
@@ -117,13 +117,13 @@
 nds 
-Enemy
+Slime
  %7B%0A%09
@@ -171,812 +171,36 @@
 e%22, 
-28, 0, 12);%0A%0A%09%09this.texture = Assets.greenSlimeTexture;%0A%0A%0A%09%09Animation jumpAnimation = new Animation();%0A%0A%09%09jumpAnimation.addFrame(this.texture.getSubImage(32, 0, 30, 24), 1);%0A%09%09jumpAnimation.setLooping(false);%0A%0A%09%09Animation idleAnimation = new Animation();%0A%0A%09%09idleAnimation.addFrame(this.texture.getSubImage(0, 0, 32, 24), 300);%0A%09%09idleAnimation.addFrame(this.texture.getSubImage(32, 0, 30, 24), 300);%0A%0A%09%09this.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.renderBounds.width = 32;%0A%09%09this.renderBounds.height = 24;%0A%09%7D%0A%0A%09@Override%0A%09public void updateAI() %7B%0A%09%09super.updateAI();%0A%0A%09%09// TODO%0A%09
+Assets.greenSlimeTexture);%0A%09%7D%0A
 %7D%0A
-%7D

Update GreenSlime.java