90 lines
1.5 KiB
C
90 lines
1.5 KiB
C
|
|
SpriteSheet knight = {
|
|
.name = "blue_knight",
|
|
.texture = {0},
|
|
.anim_count = 8,
|
|
.width = 1152,
|
|
.height = 1536,
|
|
};
|
|
|
|
const u16 cell_size = 192;
|
|
SpriteAnimation knight_idle = {
|
|
.name = "idle",
|
|
.pos_x = 0,
|
|
.pos_y = 0,
|
|
.rows = 1,
|
|
.cols = 6,
|
|
.width = 192,
|
|
.height = 192,
|
|
};
|
|
|
|
SpriteAnimation knight_run = {
|
|
.name = "run",
|
|
.pos_x = cell_size,
|
|
.pos_y = 0,
|
|
.rows = 1,
|
|
.cols = 6,
|
|
.width = 192,
|
|
.height = 192,
|
|
};
|
|
|
|
SpriteAnimation knight_attack_side1 = {
|
|
.name = "attack_side1",
|
|
.pos_x = cell_size * 2,
|
|
.pos_y = 0,
|
|
.rows = 1,
|
|
.cols = 6,
|
|
.width = 192,
|
|
.height = 192,
|
|
};
|
|
|
|
SpriteAnimation knight_attack_side2 = {
|
|
.name = "attack_side2",
|
|
.pos_x = cell_size * 3,
|
|
.pos_y = 0,
|
|
.rows = 1,
|
|
.cols = 6,
|
|
.width = 192,
|
|
.height = 192,
|
|
};
|
|
|
|
SpriteAnimation knight_attack_front1 = {
|
|
.name = "attack_front1",
|
|
.pos_x = cell_size * 4,
|
|
.pos_y = 0,
|
|
.rows = 1,
|
|
.cols = 6,
|
|
.width = 192,
|
|
.height = 192,
|
|
};
|
|
|
|
SpriteAnimation knight_attack_front2 = {
|
|
.name = "attack_front2",
|
|
.pos_x = cell_size * 5,
|
|
.pos_y = 0,
|
|
.rows = 1,
|
|
.cols = 6,
|
|
.width = 192,
|
|
.height = 192,
|
|
};
|
|
|
|
SpriteAnimation knight_attack_back1 = {
|
|
.name = "attack_back1",
|
|
.pos_x = cell_size * 6,
|
|
.pos_y = 0,
|
|
.rows = 1,
|
|
.cols = 6,
|
|
.width = 192,
|
|
.height = 192,
|
|
};
|
|
|
|
SpriteAnimation knight_attack_back2 = {
|
|
.name = "attack_back2",
|
|
.pos_x = cell_size * 7,
|
|
.pos_y = 0,
|
|
.rows = 1,
|
|
.cols = 6,
|
|
.width = 192,
|
|
.height = 192,
|
|
};
|