diff --git a/assets/config.json b/assets/config.json index f521e8b..c8b2b91 100644 --- a/assets/config.json +++ b/assets/config.json @@ -46,6 +46,11 @@ {"path": "assets/hands/hands_sword_attack.png", "frame_width": 900, "frame_height": 600 + }, + "test_background": + {"path": "assets/scenes/test_background.png", + "frame_width": 1920, + "frame_height": 1080 } }, "worldgen": { diff --git a/assets/scenes.json b/assets/scenes.json new file mode 100644 index 0000000..ba6c03c --- /dev/null +++ b/assets/scenes.json @@ -0,0 +1,16 @@ +{ + "NEXT_LEVEL": { + "components": [ + {"_type": "AnimatedScene", + "layout": [ + "[=text]" + ], + "background": "test_background", + "actors": [ + ], + "fixtures": [ + ] + } + ] + } +} diff --git a/assets/scenes/test_background.png b/assets/scenes/test_background.png new file mode 100644 index 0000000..3af780a Binary files /dev/null and b/assets/scenes/test_background.png differ diff --git a/src/constants.hpp b/src/constants.hpp index 43d4adf..d2a772c 100644 --- a/src/constants.hpp +++ b/src/constants.hpp @@ -72,10 +72,7 @@ constexpr int INITIAL_MAP_H = 21; constexpr float DEFAULT_ROTATE=0.5f; // for the panels/renderer -constexpr wchar_t BG_TILE = L'█'; -constexpr wchar_t UI_BASE_CHAR = L'█'; -constexpr int BG_BOX_OFFSET=5; -constexpr const char *FONT_FILE_NAME="assets/text.otf"; +constexpr const char *FONT_FILE_NAME="assets/text.ttf"; constexpr std::array COMPASS{ // L"E", L"SE", L"S", L"SW", L"W", L"NW", L"N", L"NE" diff --git a/src/game/components.hpp b/src/game/components.hpp index c90eac5..d81b67d 100644 --- a/src/game/components.hpp +++ b/src/game/components.hpp @@ -70,6 +70,7 @@ namespace components { settings::Config items; settings::Config tiles; settings::Config devices; + settings::Config scenes; }; struct Personality { diff --git a/src/game/level.cpp b/src/game/level.cpp index 5f2992f..2b6f02b 100644 --- a/src/game/level.cpp +++ b/src/game/level.cpp @@ -129,6 +129,7 @@ namespace GameDB { settings::get("items"), settings::get("tiles"), settings::get("devices"), + settings::get("scenes"), }); } }