44 lines
1.9 KiB
C++
44 lines
1.9 KiB
C++
#include "sprites.hpp"
|
|
|
|
double BLOCK_SIZE = 1.0 / 16;
|
|
|
|
const std::string MARIO_OVERWORLD_COLORKEY = "#93bbec";
|
|
|
|
const SDL_Rect MARIO_STANDING_SRC = { 1, 9, 16, 16 };
|
|
const SDL_Rect MARIO_DEATH_SRC = { 22, 9, 16, 16 };
|
|
const std::vector< SDL_Rect > MARIO_WALK_ANIM = { { 43, 9, 16, 16 },
|
|
{ 60, 9, 16, 16 },
|
|
{ 77, 9, 16, 16 } };
|
|
const SDL_Rect MARIO_CHANGE_DIR_SRC = { 98, 9, 16, 16 };
|
|
const SDL_Rect MARIO_JUMP_SRC = { 119, 9, 16, 16 };
|
|
|
|
const SDL_Rect MARIO_STANDING_BIG_SRC = { 1, 26, 16, 32 };
|
|
const SDL_Rect MARIO_DEATH_BIG_SRC = { 22, 26, 16, 32 };
|
|
const std::vector< SDL_Rect > MARIO_WALK_BIG_ANIM = {
|
|
{ 43, 26, 16, 32 }, { 60, 9, 16, 32 }, { 77, 9, 16, 32 }
|
|
};
|
|
const SDL_Rect MARIO_CHANGE_DIR_BIG_SRC = { 98, 26, 16, 32 };
|
|
const SDL_Rect MARIO_JUMP_BIG_SRC = { 119, 26, 16, 32 };
|
|
|
|
const SDL_Rect FLOOR_SRC = { 1, 131, 16, 16 };
|
|
const SDL_Rect HILL_INCLINE_SRC = { 137, 97, 16, 16 };
|
|
const SDL_Rect HILL_DECLINE_SRC = { 205, 97, 16, 16 };
|
|
const SDL_Rect HILL_FILL_SRC = { 171, 97, 16, 16 };
|
|
const SDL_Rect HILL_DOTS_RIGHT_SRC = { 154, 97, 16, 16 };
|
|
const SDL_Rect HILL_DOTS_LEFT_SRC = { 188, 97, 16, 16 };
|
|
const SDL_Rect HILL_TOP_SRC = { 171, 63, 16, 16 };
|
|
const SDL_Rect BUSH_LEFT_SRC = {222,97,16,16};
|
|
const SDL_Rect BUSH_MIDDLE_SRC = {239,97,16,16};
|
|
const SDL_Rect BUSH_RIGHT_SRC = {256,97,16,16};
|
|
const SDL_Rect CLOUD_LEFT_BOTTOM_SRC = {222,80,16,16};
|
|
const SDL_Rect CLOUD_MIDDLE_BOTTOM_SRC = {239,80,16,16};
|
|
const SDL_Rect CLOUD_RIGHT_BOTTOM_SRC = {256,80,16,16};
|
|
const SDL_Rect CLOUD_LEFT_TOP_SRC = {222,63,16,16};
|
|
const SDL_Rect CLOUD_MIDDLE_TOP_SRC = {239,63,16,16};
|
|
const SDL_Rect CLOUD_RIGHT_TOP_SRC = {256,63,16,16};
|
|
|
|
const SDLPP::Vec2D<uint64_t> OVERWORLD_SHIFT = {0, 0};
|
|
const SDLPP::Vec2D<uint64_t> UNDERWORLD_SHIFT = {274, 0};
|
|
const SDLPP::Vec2D<uint64_t> WATER_SHIFT = {548, 0};
|
|
const SDLPP::Vec2D<uint64_t> BOWSER_SHIFT = {0, 173};
|