@Override
	public void update(int tick) {
		if(isControlled) {
			if(Settings.moveLeft.isPressed()) {
				vx = -speed;
				world.playerNoMoveTime = 0;
			} else if(Settings.moveRight.isPressed()) {
				vx = speed;
				world.playerNoMoveTime = 0;
			} else {
				vx = 0;
			}
			if(Settings.jump.isPressed() && onGround) {
				vy = -speed * 4;
				world.playerNoMoveTime = 0;
			}
			if(Settings.getDebugOption("playerMovement")) {
				if(Keyboard.isKeyDown(Keyboard.KEY_W)) {
					vy = -speed;
					world.playerNoMoveTime = 0;
				} else if(Keyboard.isKeyDown(Keyboard.KEY_S)) {
					vy = speed;
					world.playerNoMoveTime = 0;
				}
			}
		}
		super.update(tick);
	}