Last active
December 12, 2015 08:58
-
-
Save NimbusBP1729/4747757 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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