277 lines
6.1 KiB
C
277 lines
6.1 KiB
C
#pragma once
|
|
#include "dolphin/scenes/scene.h"
|
|
|
|
const DolphinFrame up = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_up1_73x61,
|
|
.b = &I_black_up1_73x61,
|
|
},
|
|
{
|
|
.f = &I_up2_73x61,
|
|
.b = &I_black_up2_73x61,
|
|
},
|
|
},
|
|
.total = 2,
|
|
};
|
|
|
|
const DolphinFrame up_down = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_updown1_73x61,
|
|
.b = &I_black_updown1_73x61,
|
|
},
|
|
{
|
|
.f = &I_updown2_73x61,
|
|
.b = &I_black_updown2_73x61,
|
|
},
|
|
{
|
|
.f = &I_updown3_73x61,
|
|
.b = &I_black_updown3_73x61,
|
|
},
|
|
},
|
|
.total = 3,
|
|
};
|
|
|
|
const DolphinFrame up_right = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_upright1_73x61,
|
|
.b = &I_black_upright1_73x61,
|
|
},
|
|
{
|
|
.f = &I_upright2_73x61,
|
|
.b = &I_black_upright2_73x61,
|
|
},
|
|
},
|
|
.total = 2,
|
|
};
|
|
|
|
const DolphinFrame up_left = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_upleft1_73x61,
|
|
.b = &I_black_upleft1_73x61,
|
|
},
|
|
{
|
|
.f = &I_upleft2_73x61,
|
|
.b = &I_black_upleft2_73x61,
|
|
},
|
|
},
|
|
.total = 2,
|
|
};
|
|
|
|
const DolphinFrame right = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_right1_73x61,
|
|
.b = &I_black_right1_73x61,
|
|
},
|
|
{
|
|
.f = &I_right2_73x61,
|
|
.b = &I_black_right2_73x61,
|
|
},
|
|
{
|
|
.f = &I_right3_73x61,
|
|
.b = &I_black_right3_73x61,
|
|
},
|
|
},
|
|
.total = 3,
|
|
};
|
|
|
|
const DolphinFrame right_up = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_rightup1_73x61,
|
|
.b = &I_black_rightup1_73x61,
|
|
},
|
|
{
|
|
.f = &I_rightup2_73x61,
|
|
.b = &I_black_rightup2_73x61,
|
|
},
|
|
},
|
|
.total = 2,
|
|
};
|
|
|
|
const DolphinFrame right_down = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_rightdown1_73x61,
|
|
.b = &I_black_rightdown1_73x61,
|
|
},
|
|
{
|
|
.f = &I_rightdown2_73x61,
|
|
.b = &I_black_rightdown2_73x61,
|
|
},
|
|
},
|
|
.total = 2,
|
|
};
|
|
|
|
const DolphinFrame right_left = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_rightleft1_73x61,
|
|
.b = &I_black_rightleft1_73x61,
|
|
},
|
|
{
|
|
.f = &I_rightleft2_73x61,
|
|
.b = &I_black_rightleft2_73x61,
|
|
},
|
|
},
|
|
.total = 2,
|
|
};
|
|
|
|
const DolphinFrame down = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_down1_73x61,
|
|
.b = &I_black_down1_73x61,
|
|
},
|
|
{
|
|
.f = &I_down2_73x61,
|
|
.b = &I_black_down2_73x61,
|
|
},
|
|
},
|
|
.total = 2,
|
|
};
|
|
|
|
const DolphinFrame down_up = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_downup1_73x61,
|
|
.b = &I_black_downup1_73x61,
|
|
},
|
|
{
|
|
.f = &I_downup2_73x61,
|
|
.b = &I_black_downup2_73x61,
|
|
},
|
|
{
|
|
.f = &I_downup3_73x61,
|
|
.b = &I_black_downup3_73x61,
|
|
},
|
|
},
|
|
.total = 3,
|
|
};
|
|
|
|
const DolphinFrame down_left = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_downleft1_73x61,
|
|
.b = &I_black_downleft1_73x61,
|
|
},
|
|
{
|
|
.f = &I_downleft2_73x61,
|
|
.b = &I_black_downleft2_73x61,
|
|
},
|
|
{
|
|
.f = &I_downleft3_73x61,
|
|
.b = &I_black_downleft3_73x61,
|
|
},
|
|
},
|
|
.total = 3,
|
|
};
|
|
|
|
const DolphinFrame down_right = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_downright1_73x61,
|
|
.b = &I_black_downright1_73x61,
|
|
},
|
|
{
|
|
.f = &I_downright2_73x61,
|
|
.b = &I_black_downright2_73x61,
|
|
},
|
|
{
|
|
.f = &I_downright3_73x61,
|
|
.b = &I_black_downright3_73x61,
|
|
},
|
|
},
|
|
.total = 3,
|
|
};
|
|
|
|
const DolphinFrame left = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_left1_73x61,
|
|
.b = &I_black_left1_73x61,
|
|
},
|
|
{
|
|
.f = &I_left2_73x61,
|
|
.b = &I_black_left2_73x61,
|
|
},
|
|
{
|
|
.f = &I_left3_73x61,
|
|
.b = &I_black_left3_73x61,
|
|
},
|
|
},
|
|
.total = 3,
|
|
};
|
|
|
|
const DolphinFrame left_up = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_leftup1_73x61,
|
|
.b = &I_black_leftup1_73x61,
|
|
},
|
|
{
|
|
.f = &I_leftup2_73x61,
|
|
.b = &I_black_leftup2_73x61,
|
|
},
|
|
},
|
|
.total = 2,
|
|
};
|
|
|
|
const DolphinFrame left_down = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_leftdown1_73x61,
|
|
.b = &I_black_leftdown1_73x61,
|
|
},
|
|
{
|
|
.f = &I_leftdown2_73x61,
|
|
.b = &I_black_leftdown2_73x61,
|
|
},
|
|
},
|
|
.total = 2,
|
|
};
|
|
|
|
const DolphinFrame left_right = {
|
|
.frames =
|
|
{
|
|
{
|
|
.f = &I_rightleft1_73x61,
|
|
.b = &I_black_rightleft1_73x61,
|
|
},
|
|
{
|
|
.f = &I_rightleft2_73x61,
|
|
.b = &I_black_rightleft2_73x61,
|
|
},
|
|
},
|
|
.total = 2,
|
|
};
|
|
|
|
const DolphinFrame* frames[4][4] = {
|
|
[DirUp] = {[DirUp] = &up, [DirRight] = &up_right, [DirDown] = &up_down, [DirLeft] = &up_left},
|
|
[DirRight] =
|
|
{[DirUp] = &right_up, [DirRight] = &right, [DirDown] = &right_down, [DirLeft] = &right_left},
|
|
[DirDown] =
|
|
{[DirUp] = &down_up, [DirRight] = &down_right, [DirDown] = &down, [DirLeft] = &down_left},
|
|
[DirLeft] =
|
|
{[DirUp] = &left_up, [DirRight] = &left_right, [DirDown] = &left_down, [DirLeft] = &left},
|
|
};
|