Skip to content

Instantly share code, notes, and snippets.

@NimbusBP1729
Last active December 12, 2015 08:58
Show Gist options
  • Save NimbusBP1729/4747757 to your computer and use it in GitHub Desktop.
Save NimbusBP1729/4747757 to your computer and use it in GitHub Desktop.
package com.projecthawkthorne.server.nodes;
import com.badlogic.gdx.graphics.g2d.tiled.TiledObject;
import com.projecthawkthorne.gamestate.Level;
public class Hippy extends Enemy {
public Hippy(TiledObject obj, Level level) {
super(obj, level);
this.width = 48;
this.height = 48;
this.bb.setWidth(30);
this.bb.setHeight(24);
this.bboxOffsetY = 24;
this.behaviors.add(Behavior.Following);
this.followSpeed = 30;
this.behaviors.add(Behavior.GravityObeying);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment