13 #include <key_definitions.hpp>
14 #include <game_manager/level/entity.hpp>
15 #include <game_manager/level/text.hpp>
16 #include <game_manager/level/light.hpp>
17 #include <message_bus.hpp>
18 #include <game_manager/level/camera.hpp>
22 #define PARALLAX_BG_LAYERS 4
30 friend class ::level_tests;
37 static key key_index(
const std::string &arg);
47 ska::bytell_hash_map<uint16_t, std::vector<ST::key>> actions_buttons{};
48 std::vector<ST::entity> entities{};
49 std::vector<ST::light> lights{};
50 std::vector<ST::text> text_objects{};
51 uint16_t background[PARALLAX_BG_LAYERS] = {65535, 65535, 65535, 65535};
52 uint8_t parallax_speed[PARALLAX_BG_LAYERS] = {0, 0, 0, 0};
53 SDL_Color background_color{0, 0, 0, 0};
54 uint16_t overlay = 65535;
55 uint8_t overlay_sprite_num = 1;
56 uint32_t physics_objects_count = 0;
69 [[nodiscard]] std::string
get_name()
const;
This object contains all the data for a level and provides functions for loading and unloading a leve...
std::string get_name() const
level(const std::string &, message_bus *)
Tests fixture for the level object.
The central messaging system of the engine. All subsystem make extensive use of it.
The camera object - represents the viewport for the game.