summaryrefslogtreecommitdiff
path: root/include/player_data.h
blob: c4a31489ef9d8e0923f59cd3c7dbf6a83a26d768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef PLAYER_DATA_H_
#define PLAYER_DATA_H_

#include "game.h"

#define PLAYER_SPEED 300.0f

Rectangle shadowDestRect = {
    .x = -20,
    .y = 115,
    .width = 128,
    .height = 20
};

Rectangle physicsCollider =  {
    .x = NO_OFFSET,
    .y = NO_OFFSET,
    .width = 100,
    .height = 100
};

Rectangle bodyDestRect = {
    .x = -160,
    .y = -280,
    .width = 400,
    .height = 400
};

#define HITBOX_XPOS 70
#define HITBOX_XPOS_FLIPPED -90

Rectangle punchHitBox = {
    .x = HITBOX_XPOS,
    .y = -5,
    .width = 100,
    .height = 40
};

#define IDLE_FTIME 0.1f

#endif // PLAYER_DATA_H_