crystal-tower/inc/player.h

21 lines
394 B
C
Raw Normal View History

2021-11-10 06:15:41 +01:00
#pragma once
#include "vec.h"
struct Player {
struct Vec pos;
struct VecF spd;
struct VecF rem;
2021-11-10 23:29:12 +01:00
int jump_grace;
int jump_buffer;
2021-11-11 01:16:01 +01:00
int lock_direction;
2021-11-11 16:03:17 +01:00
int last_direction;
2021-11-10 06:15:41 +01:00
};
2021-11-10 08:08:29 +01:00
void player_init(struct Vec pos);
void player_update(void);
void player_draw(void);
/* return truncated speed */
struct Vec player_update_rem(void);
void player_move(struct Vec spd);
2021-11-10 12:10:04 +01:00
struct Vec *player_pos(void);