game/mario/sprites.cpp
2021-04-25 22:42:55 +02:00

39 lines
2.0 KiB
C++

#include "sprites.hpp"
extern const double BLOCK_SIZE = 0.0625;
const std::string MARIO_OVERWORLD_COLORKEY = "#93bbec";
const SDL_Rect MARIO_OVERWORLD_STANDING_SRC = { 1, 9, 16, 16 };
const SDL_Rect MARIO_OVERWORLD_DEATH_SRC = { 22, 9, 16, 16 };
const std::vector< SDL_Rect > MARIO_OVERWORLD_WALK_ANIM = { { 43, 9, 16, 16 },
{ 60, 9, 16, 16 },
{ 77, 9, 16, 16 } };
const SDL_Rect MARIO_OVERWORLD_CHANGE_DIR_SRC = { 98, 9, 16, 16 };
const SDL_Rect MARIO_OVERWORLD_JUMP_SRC = { 119, 9, 16, 16 };
const SDL_Rect MARIO_OVERWORLD_STANDING_BIG_SRC = { 1, 26, 16, 32 };
const SDL_Rect MARIO_OVERWORLD_DEATH_BIG_SRC = { 22, 26, 16, 32 };
const std::vector< SDL_Rect > MARIO_OVERWORLD_WALK_BIG_ANIM = {
{ 43, 26, 16, 32 }, { 60, 9, 16, 32 }, { 77, 9, 16, 32 }
};
const SDL_Rect MARIO_OVERWORLD_CHANGE_DIR_BIG_SRC = { 98, 26, 16, 32 };
const SDL_Rect MARIO_OVERWORLD_JUMP_BIG_SRC = { 119, 26, 16, 32 };
const SDL_Rect FLOOR_OVERWORLD_SRC = { 1, 131, 16, 16 };
const SDL_Rect HILL_OVERWORLD_INCLINE_SRC = { 137, 97, 16, 16 };
const SDL_Rect HILL_OVERWORLD_DECLINE_SRC = { 205, 97, 16, 16 };
const SDL_Rect HILL_OVERWORLD_FILL_SRC = { 171, 97, 16, 16 };
const SDL_Rect HILL_OVERWORLD_DOTS_RIGHT_SRC = { 154, 97, 16, 16 };
const SDL_Rect HILL_OVERWORLD_DOTS_LEFT_SRC = { 188, 97, 16, 16 };
const SDL_Rect HILL_OVERWORLD_TOP_SRC = { 171, 63, 16, 16 };
extern const SDL_Rect BUSH_OVERWORLD_LEFT_SRC = {222,97,16,16};
extern const SDL_Rect BUSH_OVERWORLD_MIDDLE_SRC = {239,97,16,16};
extern const SDL_Rect BUSH_OVERWORLD_RIGHT_SRC = {256,97,16,16};
extern const SDL_Rect CLOUD_OVERWORLD_LEFT_BOTTOM_SRC = {222,80,16,16};
extern const SDL_Rect CLOUD_OVERWORLD_MIDDLE_BOTTOM_SRC = {239,80,16,16};
extern const SDL_Rect CLOUD_OVERWORLD_RIGHT_BOTTOM_SRC = {256,80,16,16};
extern const SDL_Rect CLOUD_OVERWORLD_LEFT_TOP_SRC = {222,63,16,16};
extern const SDL_Rect CLOUD_OVERWORLD_MIDDLE_TOP_SRC = {239,63,16,16};
extern const SDL_Rect CLOUD_OVERWORLD_RIGHT_TOP_SRC = {256,63,16,16};