summaryrefslogtreecommitdiff
path: root/include/barrel_data.h
blob: 8dbfd5ef333bde3ceb1e2824589badbb0273af73 (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
#include "barrel.h"

static Rectangle physicsCollider = (Rectangle) {
  .x = NO_OFFSET,
  .y = NO_OFFSET,
  .width = 100,
  .height = 120
};

static Rectangle destRect = (Rectangle) {
    .x = -65,
    .y = -140,
    .width = 230,
    .height = 300
};

static Rectangle srcRect = (Rectangle) {
  .x = 0,
  .y = 0,
  .width = 32,
  .height = 32
};

static Rectangle srcRectDamaged = (Rectangle) {
  .x = 32,
  .y = 0,
  .width = 32,
  .height = 32
};

#define BARREL_REMOVE_TIME 1.0f