From 66e2328ea88ea7bdc38bbf74848d34bc39e39430 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Tue, 31 Mar 2026 12:00:02 -0400 Subject: [PATCH] Setup for the transition scenes. --- assets/config.json | 5 +++++ assets/scenes.json | 16 ++++++++++++++++ assets/scenes/test_background.png | Bin 0 -> 10217 bytes src/constants.hpp | 5 +---- src/game/components.hpp | 1 + src/game/level.cpp | 1 + 6 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 assets/scenes.json create mode 100644 assets/scenes/test_background.png 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 0000000000000000000000000000000000000000..3af780a293fec7aff785285814fb8ce54ae59290 GIT binary patch literal 10217 zcmeHNeQZ-z6o2J&8;k-O!eGMdV?i=#U)!ydKH9;yZnS2dqpPfw!1mVOw$HVFkG{9H zn+gL#V=%-KKtO|JQG<-}71R*E#xjOcaUep#0D)`?Bmxr_R6Zi!`#SdFKx5)RCijo# zzI%V?oO|!N=bZb?P2VjlT#%SBIe{REM4Q#(Ac&E51Tkz*+z>e8+qWnQb`Eh)m*lb+ zFm67mVLf~W&_sg*#0kPQFDkI^N+6LHz{iEmRM(+n6v=taREfc^wF|kx&sl53pt!cs z>8`DG8$Hy#tOQe(fd+y=V##PQ5E7ZFnUd`?@EZ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u$1gL6 zPDUSfs}+f;o!?S70<|PNe<*6-*KSv!);j4lYKYX)ez_e#B13NDu{w4g4jYsUIAw6T zKyiReCB7z59N;SwG89Y?Fg?KZ0F?tw4=_DIae(OorUxhvFg?KZ0EPjk2bdn9a)9Xp zrUxhv{xf=TG^j)_m_PkrJiaqPP;$qLa&kc#a0%KTy?Z$4w z;Q+G*X9=zjxM<=uz?UTE4*##)pkZ4J1^=xv7yTCiQ#%yB|Mo6djIW7bUbW};exz*6 LE41v+DPQ#`{J0w= literal 0 HcmV?d00001 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"), }); } }