1
0
Fork 0
mirror of https://git.sr.ht/~kikoodx/crystal-tower synced 2024-06-08 19:50:34 +02:00
crystal-tower/inc/player.h

19 lines
352 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-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);