summaryrefslogtreecommitdiff
path: root/src/player.h
blob: 96c4c2954b9b7efa40ea1b0b19eb7c07c7fc9e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef PLAYER_H_
#define PLAYER_H_

#include "entity.h"

enum player_state {
  Player_Idle,
  Player_Air
};

void add_player(float xpos, float ypos);
void update_player(struct entity* player, float dt);
void player_handle_collision
(
 struct entity* player,
 struct entity* other,
 enum direction collision_direction
 );

#endif // PLAYER_H_