2022-06-10 22:07:14 +00:00
|
|
|
#include <gb/gb.h>
|
|
|
|
#include "../src/sprite.h"
|
|
|
|
#include "../src/flags.h"
|
|
|
|
|
|
|
|
Sprite sprites_info[] = {
|
|
|
|
{
|
|
|
|
.frames_since_last_dash = 0,
|
|
|
|
.frames_since_last_jump = 0,
|
|
|
|
.name = "arrow",
|
|
|
|
.has_diag_sprites = 0,
|
|
|
|
.bitmap_index = SI_LEFT,
|
|
|
|
.has_joypad = 0,
|
|
|
|
.pos = { .x = 0, .y = 0},
|
|
|
|
.vel = { .x = 0, .y = 0},
|
|
|
|
.acc = { .x = 0, .y = 0},
|
|
|
|
|
|
|
|
.bitmap_indexes[SI_UP] = 12, .bitmap_prop[SI_UP] = 0,
|
|
|
|
.collision_offset[SI_UP] = {
|
|
|
|
.itl = { .x = 3, .y = 8},
|
|
|
|
.itr = { .x = 1, .y = 8},
|
|
|
|
.ibl = { .x = 3, .y = 1},
|
|
|
|
.ibr = { .x = 1, .y = 1},
|
|
|
|
},
|
|
|
|
.bitmap_indexes[SI_DOWN] = 12, .bitmap_prop[SI_DOWN] = S_FLIPY,
|
|
|
|
.collision_offset[SI_DOWN] = {
|
2022-06-12 18:42:01 +00:00
|
|
|
.itl = { .x = 3, .y = 8},
|
|
|
|
.itr = { .x = 1, .y = 8},
|
|
|
|
.ibl = { .x = 3, .y = 1},
|
|
|
|
.ibr = { .x = 1, .y = 1},
|
2022-06-10 22:07:14 +00:00
|
|
|
},
|
|
|
|
.bitmap_indexes[SI_LEFT] = 11, .bitmap_prop[SI_LEFT] = 0,
|
|
|
|
.collision_offset[SI_LEFT] = {
|
|
|
|
.itl = { .x = 8, .y = 3},
|
|
|
|
.itr = { .x = 1, .y = 3},
|
|
|
|
.ibl = { .x = 8, .y = 1},
|
|
|
|
.ibr = { .x = 1, .y = 1},
|
|
|
|
},
|
|
|
|
.bitmap_indexes[SI_RIGHT] = 11, .bitmap_prop[SI_RIGHT] = S_FLIPX,
|
|
|
|
.collision_offset[SI_RIGHT] = {
|
|
|
|
.itl = { .x = 8, .y = 3},
|
|
|
|
.itr = { .x = 1, .y = 3},
|
|
|
|
.ibl = { .x = 8, .y = 1},
|
|
|
|
.ibr = { .x = 1, .y = 1},
|
|
|
|
},
|
|
|
|
.bitmap_indexes[SI_UP_RIGHT] = 13, .bitmap_prop[SI_UP_RIGHT] = 0,
|
|
|
|
.collision_offset[SI_UP_RIGHT] = {
|
|
|
|
.itl = { .x = 7, .y = 8},
|
|
|
|
.itr = { .x = 1, .y = 8},
|
|
|
|
.ibl = { .x = 7, .y = 2},
|
|
|
|
.ibr = { .x = 1, .y = 2},
|
|
|
|
},
|
|
|
|
.bitmap_indexes[SI_UP_LEFT] = 13, .bitmap_prop[SI_UP_LEFT] = S_FLIPX,
|
|
|
|
.collision_offset[SI_UP_LEFT] = {
|
|
|
|
.itl = { .x = 8, .y = 8},
|
|
|
|
.itr = { .x = 2, .y = 8},
|
|
|
|
.ibl = { .x = 8, .y = 2},
|
|
|
|
.ibr = { .x = 2, .y = 2},
|
|
|
|
},
|
|
|
|
.bitmap_indexes[SI_DOWN_LEFT] = 13, .bitmap_prop[SI_DOWN_LEFT] = S_FLIPX | S_FLIPY,
|
|
|
|
.collision_offset[SI_DOWN_LEFT] = {
|
|
|
|
.itl = { .x = 8, .y = 7},
|
|
|
|
.itr = { .x = 2, .y = 7},
|
|
|
|
.ibl = { .x = 8, .y = 1},
|
|
|
|
.ibr = { .x = 2, .y = 1},
|
|
|
|
},
|
|
|
|
.bitmap_indexes[SI_DOWN_RIGHT] = 13, .bitmap_prop[SI_DOWN_RIGHT] = S_FLIPY,
|
|
|
|
.collision_offset[SI_DOWN_RIGHT] = {
|
|
|
|
.itl = { .x = 7, .y = 7},
|
|
|
|
.itr = { .x = 1, .y = 7},
|
|
|
|
.ibl = { .x = 7, .y = 1},
|
|
|
|
.ibr = { .x = 1, .y = 1},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|