]> git.lizzy.rs Git - shadowclad.git/blob - src/game/player.h
Implement first stage of obstacle detection
[shadowclad.git] / src / game / player.h
1 #ifndef PLAYER_H_
2 #define PLAYER_H_
3
4 #include <GL/gl.h>
5
6 #include "engine/scene.h"
7
8 enum Direction {
9         DIRECTION_UP = 1 << 0,
10         DIRECTION_DOWN = 1 << 1,
11         DIRECTION_LEFT = 1 << 2,
12         DIRECTION_RIGHT = 1 << 3,
13 };
14
15 typedef enum Direction Direction;
16
17 extern Scene* playerCharacter;
18 extern Scene* playerProjectedMovement;
19
20 void initPlayer();
21 void spawnPlayer(Transform transform);
22 void updatePlayer(float delta);
23 void startMovement(Direction direction);
24 void stopMovement(Direction direction);
25
26 #endif // PLAYER_H_