20 lines
453 B
Java
20 lines
453 B
Java
|
package de.samdev.colorrunner.game.world.entities.gameentities;
|
||
|
|
||
|
import de.samdev.colorrunner.game.world.entities.GravityEntity;
|
||
|
|
||
|
public class PlayerEntity extends GravityEntity {
|
||
|
public final static float PLAYER_WIDTH = 32;
|
||
|
public final static float PLAYER_HEIGHT = 32;
|
||
|
|
||
|
public PlayerEntity() {
|
||
|
super(PLAYER_WIDTH, PLAYER_HEIGHT);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void update(float delta) {
|
||
|
super.update(delta);
|
||
|
|
||
|
moveBy(50 * delta, 50 * delta);
|
||
|
}
|
||
|
}
|