diff --git a/Adventures in Lestoria/Key.cpp b/Adventures in Lestoria/Key.cpp index 5b7e8091..0116d3f1 100644 --- a/Adventures in Lestoria/Key.cpp +++ b/Adventures in Lestoria/Key.cpp @@ -317,12 +317,12 @@ void InputGroup::DrawInput(const std::variantwidth+"Interface.InputHelperSpacing"_F; + buttonImgSize.x+=input.GetIcon(GameSettings::GetIconType()).Sprite()->width*textScale.x+"Interface.InputHelperSpacing"_F; buttonImgSize.y=std::max(buttonImgSize.y,float(input.GetIcon(GameSettings::GetIconType()).Sprite()->height)); buttonImgs.push_back(input.GetIcon(GameSettings::GetIconType()).Decal()); }else if(input.HasIcon()){ - buttonImgSize.x+=input.GetIcon().Sprite()->width+"Interface.InputHelperSpacing"_F; + buttonImgSize.x+=input.GetIcon().Sprite()->width*textScale.x+"Interface.InputHelperSpacing"_F; buttonImgSize.y=std::max(buttonImgSize.y,float(input.GetIcon().Sprite()->height)); buttonImgs.push_back(input.GetIcon().Decal()); }else{ @@ -336,12 +336,12 @@ void InputGroup::DrawInput(const std::variantwidth+"Interface.InputHelperSpacing"_F; + buttonImgSize.x+=primaryKey.value().GetIcon(GameSettings::GetIconType()).Sprite()->width*textScale.x+"Interface.InputHelperSpacing"_F; buttonImgSize.y=std::max(buttonImgSize.y,float(primaryKey.value().GetIcon(GameSettings::GetIconType()).Sprite()->height)); buttonImgs.push_back(primaryKey.value().GetIcon(GameSettings::GetIconType()).Decal()); }else if(primaryKey.value().HasIcon()){ - buttonImgSize.x+=primaryKey.value().GetIcon().Sprite()->width+"Interface.InputHelperSpacing"_F; + buttonImgSize.x+=primaryKey.value().GetIcon().Sprite()->width*textScale.x+"Interface.InputHelperSpacing"_F; buttonImgSize.y=std::max(buttonImgSize.y,float(primaryKey.value().GetIcon().Sprite()->height)); buttonImgs.push_back(primaryKey.value().GetIcon().Decal()); }else{ diff --git a/Adventures in Lestoria/TODO.txt b/Adventures in Lestoria/TODO.txt index 2d897922..91af530f 100644 --- a/Adventures in Lestoria/TODO.txt +++ b/Adventures in Lestoria/TODO.txt @@ -1,16 +1,18 @@ -January 1st -=========== +February 28th -> Begin Internal Game Playtesting +March 6th -> Discord/Friend Playtesting +March 30th -> Public Demo Release + + - Foreground tile depth correction for tiles w/hitboxes - Add Death screen (Zoom in on fatal blow, slow time down... Display some game over text... Allow retry or return to world map.) - Track items used during a stage, on death, restore the loadout item quantities used. +- Mosaic transition on level load Add Bonus XP when completing a stage -January 31st -============ - Title Screen setpieces - Hide mouse cursor during controller play. Reveal it again during mouse play. @@ -19,4 +21,10 @@ January 31st - Condense stage track (loading times) -- Credits/Licensing \ No newline at end of file +- Credits/Licensing + +- Implement some obtained commercial art. + +- Basic tutorial on the first stage, Only allow the player to select "Change Loadout", explain how to setup items, can only start once a loadout item is set. + +- show inputs that can be used by the player to navigate, ability usage, and defensive. When player takes enough damage show how to use recovery items. \ No newline at end of file diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index 41dad1ec..f79e71a7 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 0 #define VERSION_MINOR 3 #define VERSION_PATCH 0 -#define VERSION_BUILD 7574 +#define VERSION_BUILD 7577 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Adventures in Lestoria/VisualNovel.cpp b/Adventures in Lestoria/VisualNovel.cpp index aec1fa7c..02d81eb1 100644 --- a/Adventures in Lestoria/VisualNovel.cpp +++ b/Adventures in Lestoria/VisualNovel.cpp @@ -193,6 +193,9 @@ void VisualNovel::Update(){ locationDisplayTime=std::max(0.f,locationDisplayTime-game->GetElapsedTime()); transitionTime=std::max(0.f,transitionTime-game->GetElapsedTime()); textScrollTime=std::max(0.f,textScrollTime-game->GetElapsedTime()); + if(backgroundScrollAmt<90.f){ + backgroundScrollAmt=std::min(90.f,backgroundScrollAmt+backgroundScrollSpd*game->GetElapsedTime()); + } } void VisualNovel::ExecuteNextCommand(){ if(commandIndexDrawDecal({0,0},GFX["story_background_image_location"_S+prevBackgroundFilename].Decal()); + game->DrawDecal({0,-prevBackgroundScrollAmt},GFX["story_background_image_location"_S+prevBackgroundFilename].Decal()); } - game->DrawDecal({0,0},GFX["story_background_image_location"_S+backgroundFilename].Decal(),{1,1},{255,255,255,uint8_t(255*alpha)}); + game->DrawDecal({0,-backgroundScrollAmt},GFX["story_background_image_location"_S+backgroundFilename].Decal(),{1,1},{255,255,255,uint8_t(255*alpha)}); }else{ game->FillRectDecal({0,0},game->GetScreenSize()); } @@ -289,6 +292,8 @@ void BackgroundCommand::Execute(VisualNovel&vn){ vn.prevBackgroundFilename=vn.backgroundFilename; vn.backgroundFilename=backgroundFilename; vn.transitionTime=2.0f; + vn.prevBackgroundScrollAmt=vn.backgroundScrollAmt; + vn.backgroundScrollAmt=0.f; vn.ExecuteNextCommand(); } BackgroundCommand::BackgroundCommand(std::string backgroundFilename) diff --git a/Adventures in Lestoria/VisualNovel.h b/Adventures in Lestoria/VisualNovel.h index 3cfde798..7c6525bd 100644 --- a/Adventures in Lestoria/VisualNovel.h +++ b/Adventures in Lestoria/VisualNovel.h @@ -143,12 +143,15 @@ class VisualNovel{ std::string prevBackgroundFilename; float transitionTime=0; static constexpr float maxTransitionTime=2.0f; + const float backgroundScrollSpd=2.0f; std::vectorcommands; int commandIndex=0; std::string locationDisplayText=""; float locationDisplayTime=0; std::string prevTheme=""; float textScrollTime=0; + float backgroundScrollAmt=0; + float prevBackgroundScrollAmt=0; static constexpr float maxTextScrollTime=1.0f; public: static Font font,narratorFont,locationFont; diff --git a/Adventures in Lestoria/assets/backgrounds/cave.png b/Adventures in Lestoria/assets/backgrounds/cave.png index 2c218fe9..8739164f 100644 Binary files a/Adventures in Lestoria/assets/backgrounds/cave.png and b/Adventures in Lestoria/assets/backgrounds/cave.png differ diff --git a/Adventures in Lestoria/assets/backgrounds/cave_dark.png b/Adventures in Lestoria/assets/backgrounds/cave_dark.png index 55273f2d..c260ed48 100644 Binary files a/Adventures in Lestoria/assets/backgrounds/cave_dark.png and b/Adventures in Lestoria/assets/backgrounds/cave_dark.png differ diff --git a/Adventures in Lestoria/assets/backgrounds/rest.png b/Adventures in Lestoria/assets/backgrounds/rest.png deleted file mode 100644 index 5b695b3b..00000000 Binary files a/Adventures in Lestoria/assets/backgrounds/rest.png and /dev/null differ diff --git a/Adventures in Lestoria/assets/backgrounds/sea.png b/Adventures in Lestoria/assets/backgrounds/sea.png index dab980cd..2860339b 100644 Binary files a/Adventures in Lestoria/assets/backgrounds/sea.png and b/Adventures in Lestoria/assets/backgrounds/sea.png differ diff --git a/Adventures in Lestoria/assets/config/story/Chapter 1.txt b/Adventures in Lestoria/assets/config/story/Chapter 1.txt index 5215bd4c..c1dff6f7 100644 --- a/Adventures in Lestoria/assets/config/story/Chapter 1.txt +++ b/Adventures in Lestoria/assets/config/story/Chapter 1.txt @@ -14,6 +14,7 @@ Merchant crossing is a Crossway that connects Bleakport, the Lestorian Forest, E The crossing is famous for merchants to rest on their travels and trade goods with each other. +{BACKGROUND commercial_assets/Burning Trading Post.png} While you are getting closer you realise something isnt right. The Smoke in the sky is way thicker then what you would expect from just a few campfires... You reach the crossing where a #FF0000horrible scenery#FFFFFF awaits you. @@ -110,7 +111,7 @@ Oh what shall I do? I can't return to the Kingdom without it! [You] First you need more rest. Once you are able to walk on your own again, we can think about a solution for your lost object. -{BACKGROUND rest.png} +{BACKGROUND commercial_assets/Forest Clearing Campsite.png} [] You set up a tent and a campfire a little outside of the main camp where the tragedy happened and helped Sherman over. @@ -121,9 +122,9 @@ Without the corpses surrounding you, you relax a little bit. You keep an eye on Sherman as he recovers. -{BACKGROUND sea.png} The next day you wake to find Sherman no longer lying down but is instead sitting on the grass. +{BACKGROUND commercial_assets/Forest Clearing Campsite_Day.png} [Sherman] Good Morning! You told me you are an Adventurer right? diff --git a/x64/Release/Adventures in Lestoria.exe b/x64/Release/Adventures in Lestoria.exe index ae87eb67..b56636af 100644 Binary files a/x64/Release/Adventures in Lestoria.exe and b/x64/Release/Adventures in Lestoria.exe differ