package com.mygdx.ludum;

import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable;

public class RayaMan extends Image {
    final float MAX_VELOCITY = 100f;
    final float JUMP_VELOCITY = 250f; // 210f;
    final float DAMPING = 0.87f;
    enum State {
        Standing, Walking, Jumping, StandingShooting
    }
    Vector2 desiredPosition = new Vector2();
    final Vector2 velocity = new Vector2();
    State state = State.Walking;
    boolean facesRight = true;
    boolean grounded = true;
    public boolean updateVelocity;
    public boolean shooting = false;

    protected Animation animation = null;
    float stateTime = 0;

    public RayaMan(Animation animation) {
        super(animation.getKeyFrame(0));
        this.animation = animation;
    }

    @Override
    public void act(float delta)
    {
        ((TextureRegionDrawable)this.getDrawable()).setRegion(this.animation.getKeyFrame(this.stateTime+=delta, true));
        super.act(delta);
    }
}

@@ -331,17 +331,17 @@
 ITY = 25
-0
+5
 f; // 21

change jump speed