2021-04-25 20:42:55 +00:00
|
|
|
#ifndef SPRITES_H
|
|
|
|
#define SPRITES_H
|
|
|
|
|
2021-05-26 12:17:07 +00:00
|
|
|
#ifndef _WIN32
|
2021-04-25 20:42:55 +00:00
|
|
|
#include <SDL2/SDL_rect.h>
|
2021-05-26 12:17:07 +00:00
|
|
|
#else
|
|
|
|
#include "../sdlpp/SDL2/SDL_rect.h"
|
|
|
|
#endif
|
2021-04-25 20:42:55 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2021-04-30 07:10:58 +00:00
|
|
|
#include "../sdlpp/sdlpp_vector.hpp"
|
2021-04-25 20:42:55 +00:00
|
|
|
|
2021-04-30 19:02:14 +00:00
|
|
|
extern double BLOCK_SIZE;
|
2021-04-25 20:42:55 +00:00
|
|
|
|
2021-04-30 07:10:58 +00:00
|
|
|
//------------------ COLORS -------------------------
|
2021-04-25 20:42:55 +00:00
|
|
|
extern const std::string MARIO_OVERWORLD_COLORKEY;
|
|
|
|
//------------------ MARIO --------------------------
|
2021-04-30 07:10:58 +00:00
|
|
|
extern const SDL_Rect MARIO_STANDING_SRC;
|
|
|
|
extern const SDL_Rect MARIO_DEATH_SRC;
|
|
|
|
extern const std::vector<SDL_Rect> MARIO_WALK_ANIM;
|
|
|
|
extern const SDL_Rect MARIO_CHANGE_DIR_SRC;
|
|
|
|
extern const SDL_Rect MARIO_JUMP_SRC;
|
2021-04-25 20:42:55 +00:00
|
|
|
//------------------ BIG MARIO ----------------------
|
2021-04-30 07:10:58 +00:00
|
|
|
extern const SDL_Rect MARIO_STANDING_BIG_SRC;
|
|
|
|
extern const SDL_Rect MARIO_DEATH_BIG_SRC;
|
|
|
|
extern const std::vector<SDL_Rect> MARIO_WALK_BIG_ANIM;
|
|
|
|
extern const SDL_Rect MARIO_CHANGE_DIR_BIG_SRC;
|
|
|
|
extern const SDL_Rect MARIO_JUMP_BIG_SRC;
|
2021-04-25 20:42:55 +00:00
|
|
|
|
|
|
|
//------------------ TERRAIN ------------------------
|
2021-04-30 07:10:58 +00:00
|
|
|
extern const SDL_Rect FLOOR_SRC;
|
|
|
|
extern const SDL_Rect HILL_INCLINE_SRC;
|
|
|
|
extern const SDL_Rect HILL_DECLINE_SRC;
|
|
|
|
extern const SDL_Rect HILL_FILL_SRC;
|
|
|
|
extern const SDL_Rect HILL_DOTS_RIGHT_SRC;
|
|
|
|
extern const SDL_Rect HILL_DOTS_LEFT_SRC;
|
|
|
|
extern const SDL_Rect HILL_TOP_SRC;
|
|
|
|
extern const SDL_Rect BUSH_LEFT_SRC;
|
|
|
|
extern const SDL_Rect BUSH_MIDDLE_SRC;
|
|
|
|
extern const SDL_Rect BUSH_RIGHT_SRC;
|
|
|
|
extern const SDL_Rect CLOUD_LEFT_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect CLOUD_MIDDLE_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect CLOUD_RIGHT_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect CLOUD_LEFT_TOP_SRC;
|
|
|
|
extern const SDL_Rect CLOUD_MIDDLE_TOP_SRC;
|
|
|
|
extern const SDL_Rect CLOUD_RIGHT_TOP_SRC;
|
2021-05-07 08:36:45 +00:00
|
|
|
extern const SDL_Rect PIPE_LEFT_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect PIPE_LEFT_TOP_SRC;
|
|
|
|
extern const SDL_Rect PIPE_RIGHT_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect PIPE_RIGHT_TOP_SRC;
|
|
|
|
extern const SDL_Rect CASTLE_LEFT_SRC;
|
|
|
|
extern const SDL_Rect CASTLE_RIGHT_SRC;
|
|
|
|
extern const SDL_Rect CASTLE_BLACK_SRC;
|
|
|
|
extern const SDL_Rect CASTLE_ENTRY_SRC;
|
|
|
|
extern const SDL_Rect CASTLE_TOWER_SRC;
|
|
|
|
extern const SDL_Rect CASTLE_TOWER_FILLED_SRC;
|
2021-05-07 21:17:05 +00:00
|
|
|
extern const SDL_Rect VINE_TOP_SRC;
|
|
|
|
extern const SDL_Rect VINE_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect POLE_TOP_SRC;
|
|
|
|
extern const SDL_Rect POLE_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect FLAG_SRC;
|
|
|
|
extern const SDL_Rect STEP_SRC;
|
|
|
|
extern const SDL_Rect BRICK_SRC;
|
|
|
|
extern const SDL_Rect BRICK_TOP_SRC;
|
|
|
|
extern const SDL_Rect SIDEWAY_PIPE_END_TOP_SRC;
|
|
|
|
extern const SDL_Rect SIDEWAY_PIPE_END_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect SIDEWAY_PIPE_MIDDLE_TOP_SRC;
|
|
|
|
extern const SDL_Rect SIDEWAY_PIPE_MIDDLE_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect SIDEWAY_PIPE_CONNECTOR_TOP_SRC;
|
|
|
|
extern const SDL_Rect SIDEWAY_PIPE_CONNECTOR_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect TREE_PLATFORM_TOP_LEFT_SRC;
|
|
|
|
extern const SDL_Rect TREE_PLATFORM_TOP_MIDDLE_SRC;
|
|
|
|
extern const SDL_Rect TREE_PLATFORM_TOP_RIGHT_SRC;
|
|
|
|
extern const SDL_Rect TREE_PLATFORM_BARK_SRC;
|
|
|
|
extern const SDL_Rect WATER_TOP_SRC;
|
|
|
|
extern const SDL_Rect WATER_FILL_SRC;
|
|
|
|
extern const SDL_Rect MUSHROOM_PLATFORM_TOP_LEFT_SRC;
|
|
|
|
extern const SDL_Rect MUSHROOM_PLATFORM_TOP_MIDDLE_SRC;
|
|
|
|
extern const SDL_Rect MUSHROOM_PLATFORM_TOP_RIGHT_SRC;
|
|
|
|
extern const SDL_Rect MUSHROOM_PLATFORM_BARK_TOP_SRC;
|
|
|
|
extern const SDL_Rect MUSHROOM_PLATFORM_BARK_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect TREE_BARK_SRC;
|
|
|
|
extern const SDL_Rect TREE_LEAVES_SMALL_SRC;
|
|
|
|
extern const SDL_Rect TREE_LEAVES_TOP_SRC;
|
|
|
|
extern const SDL_Rect TREE_LEAVES_BOTTOM_SRC;
|
|
|
|
extern const SDL_Rect CANNON_TOWER_SRC;
|
|
|
|
extern const SDL_Rect CANNON_PEDESTAL_SRC;
|
|
|
|
extern const SDL_Rect CANNON_SRC;
|
2021-07-24 18:50:24 +00:00
|
|
|
extern const SDL_Rect COIN_SRC;
|
2021-08-07 19:41:15 +00:00
|
|
|
extern const SDL_Rect MUSHROOM_SRC;
|
2021-05-25 22:46:19 +00:00
|
|
|
//------------------ MODIFIERS ----------------------
|
2021-06-24 18:53:58 +00:00
|
|
|
extern const SDL_Rect MOD_DESTRUCTIBLE_SRC;
|
|
|
|
extern const SDL_Rect MOD_BACKGROUND_SRC;
|
|
|
|
extern const SDL_Rect MOD_COIN_SRC;
|
|
|
|
extern const SDL_Rect MOD_MUSHROOM_SRC;
|
2021-08-08 19:45:05 +00:00
|
|
|
//------------------ ENEMIES -------------------------
|
|
|
|
extern const SDL_Rect GOOMBA_DEATH_SRC;
|
|
|
|
extern const std::vector<SDL_Rect> GOOMBA_WALK_ANIM;
|
2021-04-30 07:10:58 +00:00
|
|
|
|
|
|
|
extern const SDLPP::Vec2D<uint64_t> OVERWORLD_SHIFT;
|
|
|
|
extern const SDLPP::Vec2D<uint64_t> UNDERWORLD_SHIFT;
|
|
|
|
extern const SDLPP::Vec2D<uint64_t> WATER_SHIFT;
|
|
|
|
extern const SDLPP::Vec2D<uint64_t> BOWSER_SHIFT;
|
2021-04-25 20:42:55 +00:00
|
|
|
|
|
|
|
#endif
|