2025-02-01 05:58:30 -05:00
|
|
|
#ifndef _HF_MOVE_
|
|
|
|
#define _HF_MOVE_
|
|
|
|
|
|
|
|
#include <raylib.h>
|
|
|
|
|
|
|
|
typedef enum Curve {
|
|
|
|
CURVE_LINEAR,
|
|
|
|
CURVE_EASE_IN_OUT,
|
|
|
|
} Curve;
|
|
|
|
|
|
|
|
typedef struct Move Move;
|
|
|
|
|
|
|
|
struct Move {
|
2025-02-03 20:07:22 -05:00
|
|
|
Vector2 *position;
|
2025-02-01 05:58:30 -05:00
|
|
|
Vector2 origin;
|
|
|
|
Vector2 destination;
|
|
|
|
Curve curve;
|
|
|
|
float current_time;
|
|
|
|
float end_time;
|
|
|
|
};
|
|
|
|
|
2025-02-03 20:07:22 -05:00
|
|
|
void move_position(Move *m, float delta);
|
2025-02-01 05:58:30 -05:00
|
|
|
|
|
|
|
#endif
|