SHARE
TWEET
Untitled
a guest
Nov 20th, 2016
20
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- package com.kingclub2.jelly;
- import com.badlogic.gdx.graphics.Texture;
- import com.badlogic.gdx.graphics.g2d.Sprite;
- public class Ghost extends Sprite {
- public GhostType type;
- public float moveX = 0, moveY = 0;
- public Ghost(GhostType t, Texture tex, float x, float y) {
- super();
- this.type = t;
- super.setTexture(tex);
- super.setPosition(x, y);
- super.setOriginCenter();
- }
- public void update(float delta) {
- super.translate(moveX * delta, moveY * delta);
- }
- public void dispose() {
- this.getTexture().dispose();
- }
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

