game/mario/sprites.hpp
2021-08-08 21:45:05 +02:00

106 lines
4.0 KiB
C++

#ifndef SPRITES_H
#define SPRITES_H
#ifndef _WIN32
#include <SDL2/SDL_rect.h>
#else
#include "../sdlpp/SDL2/SDL_rect.h"
#endif
#include <string>
#include <vector>
#include "../sdlpp/sdlpp_vector.hpp"
extern double BLOCK_SIZE;
//------------------ COLORS -------------------------
extern const std::string MARIO_OVERWORLD_COLORKEY;
//------------------ MARIO --------------------------
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;
//------------------ BIG MARIO ----------------------
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;
//------------------ TERRAIN ------------------------
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;
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;
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;
extern const SDL_Rect COIN_SRC;
extern const SDL_Rect MUSHROOM_SRC;
//------------------ MODIFIERS ----------------------
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;
//------------------ ENEMIES -------------------------
extern const SDL_Rect GOOMBA_DEATH_SRC;
extern const std::vector<SDL_Rect> GOOMBA_WALK_ANIM;
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;
#endif