package org.egordorichev.lasttry.entity;

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

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

		this.image = Assets.greenSlimeTexture;


		Animation jumpAnimation = new Animation();

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

		Animation idleAnimation = new Animation();

		idleAnimation.addFrame(this.image.getSubImage(0, 0, 30, 24), 300);
		idleAnimation.addFrame(this.image.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.rect.width = 32;
		this.rect.height = 24;
	}

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

		// TODO: bounce and jump
	}
}

@@ -238,24 +238,44 @@
 8, 0, 12);%0A%0A
+%09%09this.maxAi = 360;%0A
 %09%09this.image
@@ -304,17 +304,16 @@
 xture;%0A%0A
-%0A
 %09%09Animat

Update GreenSlime.java