Newer
Older
JumpingGame / src / main / java / entities / Movey.java
package entities;

public class Movey {
	private Velocity velocity;
	private double value;
	public Movey(Velocity velocity) {
		this.velocity = velocity;
	}
	public void jump(double y2) {
		this.value = y2;
		velocity.updateMovey(value);
	}
	public double getValue() {
		return value;
	}
}