diff --git a/Crawler/Crawler.cpp b/Crawler/Crawler.cpp index 22e9e253..5826c03f 100644 --- a/Crawler/Crawler.cpp +++ b/Crawler/Crawler.cpp @@ -58,6 +58,7 @@ SUCH DAMAGE. #include "State_OverworldMap.h" #include "Test.h" #include "ItemDrop.h" +#include "VisualNovel.h" INCLUDE_EMITTER_LIST @@ -184,6 +185,8 @@ bool Crawler::OnUserCreate(){ Unlock::Initialize(); ItemDrop::Initialize(); + VisualNovel::Initialize(); + ValidateGameStatus(); //Checks to make sure everything has been initialized properly. return true; diff --git a/Crawler/Crawler.vcxproj b/Crawler/Crawler.vcxproj index 3e341f6a..4304fd35 100644 --- a/Crawler/Crawler.vcxproj +++ b/Crawler/Crawler.vcxproj @@ -329,6 +329,7 @@ + @@ -397,6 +398,7 @@ + @@ -424,6 +426,9 @@ + + + diff --git a/Crawler/Crawler.vcxproj.filters b/Crawler/Crawler.vcxproj.filters index dcca21c9..60415669 100644 --- a/Crawler/Crawler.vcxproj.filters +++ b/Crawler/Crawler.vcxproj.filters @@ -67,6 +67,12 @@ {7d5c4dfd-a5a1-4a3d-8231-ace70551db5a} + + {fffc7975-0823-472f-8f07-0419586e05e7} + + + {9ab34e07-c7ba-4f4b-9dad-29c7602c1550} + @@ -261,6 +267,9 @@ Header Files + + Header Files + @@ -440,6 +449,9 @@ Source Files + + Source Files + @@ -509,6 +521,15 @@ Documentation + + Configurations\Story + + + Documentation\Story + + + Configurations\Story + diff --git a/Crawler/GameState.cpp b/Crawler/GameState.cpp index 9b602738..d3439c54 100644 --- a/Crawler/GameState.cpp +++ b/Crawler/GameState.cpp @@ -37,6 +37,7 @@ SUCH DAMAGE. #include "State_OverworldMap.h" #include "State_MainMenu.h" #include "State_LevelComplete.h" +#include "State_Story.h" INCLUDE_game @@ -47,6 +48,7 @@ void GameState::Initialize(){ NEW_STATE(States::OVERWORLD_MAP,State_OverworldMap); NEW_STATE(States::MAIN_MENU,State_MainMenu); NEW_STATE(States::LEVEL_COMPLETE,State_LevelComplete); + NEW_STATE(States::STORY,State_Story); GameState::ChangeState(States::OVERWORLD_MAP); } diff --git a/Crawler/GameState.h b/Crawler/GameState.h index a81d08a4..2edf1f33 100644 --- a/Crawler/GameState.h +++ b/Crawler/GameState.h @@ -42,6 +42,7 @@ namespace States{ OVERWORLD_MAP, MAIN_MENU, LEVEL_COMPLETE, + STORY, }; }; diff --git a/Crawler/State_Story.cpp b/Crawler/State_Story.cpp new file mode 100644 index 00000000..203059c1 --- /dev/null +++ b/Crawler/State_Story.cpp @@ -0,0 +1,43 @@ +#pragma region License +/* +License (OLC-3) +~~~~~~~~~~~~~~~ + +Copyright 2018 - 2023 OneLoneCoder.com + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions or derivations of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +2. Redistributions or derivative works in binary form must reproduce the above +copyright notice. This list of conditions and the following disclaimer must be +reproduced in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may +be used to endorse or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. +*/ +#pragma endregion +#include "State_Story.h" +#include "VisualNovel.h" + +void State_Story::OnStateChange(GameState*prevState){}; +void State_Story::OnUserUpdate(Crawler*game){ + VisualNovel::Update(); +}; +void State_Story::Draw(Crawler*game){ + VisualNovel::Draw(); +}; \ No newline at end of file diff --git a/Crawler/State_Story.h b/Crawler/State_Story.h new file mode 100644 index 00000000..d468f6cc --- /dev/null +++ b/Crawler/State_Story.h @@ -0,0 +1,41 @@ +#pragma region License +/* +License (OLC-3) +~~~~~~~~~~~~~~~ + +Copyright 2018 - 2023 OneLoneCoder.com + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions or derivations of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +2. Redistributions or derivative works in binary form must reproduce the above +copyright notice. This list of conditions and the following disclaimer must be +reproduced in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may +be used to endorse or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. +*/ +#pragma endregion +#pragma once +#include "GameState.h" + +class State_Story:public GameState{ + virtual void OnStateChange(GameState*prevState)override final; + virtual void OnUserUpdate(Crawler*game)override final; + virtual void Draw(Crawler*game)override final; +}; \ No newline at end of file diff --git a/Crawler/Version.h b/Crawler/Version.h index 6dde9e5d..ff2001c0 100644 --- a/Crawler/Version.h +++ b/Crawler/Version.h @@ -35,7 +35,7 @@ SUCH DAMAGE. #define VERSION_MAJOR 0 #define VERSION_MINOR 2 #define VERSION_PATCH 1 -#define VERSION_BUILD 3158 +#define VERSION_BUILD 3160 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Crawler/VisualNovel.cpp b/Crawler/VisualNovel.cpp new file mode 100644 index 00000000..92595905 --- /dev/null +++ b/Crawler/VisualNovel.cpp @@ -0,0 +1,198 @@ +#pragma region License +/* +License (OLC-3) +~~~~~~~~~~~~~~~ + +Copyright 2018 - 2023 OneLoneCoder.com + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions or derivations of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +2. Redistributions or derivative works in binary form must reproduce the above +copyright notice. This list of conditions and the following disclaimer must be +reproduced in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may +be used to endorse or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. +*/ +#pragma endregion +#include "VisualNovel.h" +#include "GameState.h" +#include "Crawler.h" +#include + +VisualNovel VisualNovel::novel; +safemap>>VisualNovel::storyLevelData; + +void VisualNovel::Initialize(){ + for(int chapter=1;chapter<=6;chapter++){ + std::string chapterFilename="story_directory"_S+"Chapter "+std::to_string(chapter)+".txt"; + std::ifstream file(chapterFilename); + if(!file)ERR("Failed to open file "<args; + size_t counter=0; + while(text.find(',',counter)!=std::string::npos){ + std::string arg=text.substr(counter,text.find(',',counter)-counter); + counter=text.find(',',counter)+1; + if(arg.find(',')!=std::string::npos)ERR("Found an erraneous comma inside parsed arg "<arguments=ReadCSVArgs(args); + + if(line.find("{LOCATION")!=std::string::npos){//Location command + if(arguments.size()!=1)ERR("Arguments size is "<(arguments[0])); + }else + if(line.find("{BACKGROUND")!=std::string::npos){//Background command + if(arguments.size()!=1)ERR("Arguments size is "<(arguments[0])); + }else + if(line.find("{LEFT")!=std::string::npos){//Left command + data.push_back(std::make_unique(arguments)); + }else + if(line.find("{RIGHT")!=std::string::npos){//Right command + data.push_back(std::make_unique(arguments)); + }else + if(line.find("{PAUSE")!=std::string::npos){//Pause command + if(arguments.size()!=0)ERR("Arguments size is "<()); + }else{ + ERR("Unknown command "<arguments=ReadCSVArgs(args); + if(arguments.size()>2)ERR("Expecting a maximum of two arguments for parsed args in "<(arguments[0])); + }else{ + data.push_back(std::make_unique(arguments[0],arguments[1])); + } + }break; + default:{ + data.push_back(std::make_unique(line)); + }break; + } + + } + } + + storyLevelData.SetInitialized(); +}; +void VisualNovel::LoadVisualNovel(std::string storyLevelName){ + novel.storyLevel=storyLevelName; + GameState::ChangeState(States::STORY); +} +void VisualNovel::Update(){ + +} +void VisualNovel::Draw(){ + +} + +Command::Command(){} + +void LocationCommand::Execute(VisualNovel&vn){ + +} +LocationCommand::LocationCommand(std::string location){ + +} + +void BackgroundCommand::Execute(VisualNovel&vn){ + +} +BackgroundCommand::BackgroundCommand(std::string backgroundFilename){ + +} + +void LeftCommand::Execute(VisualNovel&vn){ + +} +LeftCommand::LeftCommand(std::vectorcharacters){ + +} + +void RightCommand::Execute(VisualNovel&vn){ + +} +RightCommand::RightCommand(std::vectorcharacters){ + +} + +void SpeakerCommand::Execute(VisualNovel&vn){ + +} +SpeakerCommand::SpeakerCommand(std::string speaker){ + +} +SpeakerCommand::SpeakerCommand(std::string displayedName,std::string speaker){ + +} + +void DialogCommand::Execute(VisualNovel&vn){ + +} +DialogCommand::DialogCommand(std::string dialog){ + +} + +void PauseCommand::Execute(VisualNovel&vn){ + +} +PauseCommand::PauseCommand(){ + +} \ No newline at end of file diff --git a/Crawler/VisualNovel.h b/Crawler/VisualNovel.h new file mode 100644 index 00000000..d91c8864 --- /dev/null +++ b/Crawler/VisualNovel.h @@ -0,0 +1,117 @@ +#pragma region License +/* +License (OLC-3) +~~~~~~~~~~~~~~~ + +Copyright 2018 - 2023 OneLoneCoder.com + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions or derivations of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +2. Redistributions or derivative works in binary form must reproduce the above +copyright notice. This list of conditions and the following disclaimer must be +reproduced in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may +be used to endorse or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. +*/ +#pragma endregion +#include +#include +#include +#include "safemap.h" + +class VisualNovel; + +class PauseCommand final:public Command{ +public: + void Execute(VisualNovel&vn)override; + PauseCommand(); +}; + +class DialogCommand final:public Command{ + std::string dialog; +public: + void Execute(VisualNovel&vn)override; + DialogCommand(std::string dialog); +}; + +class SpeakerCommand final:public Command{ + std::string displayedName; + std::string actualSpeakerName; +public: + void Execute(VisualNovel&vn)override; + SpeakerCommand(std::string speaker); + SpeakerCommand(std::string displayedName,std::string speaker); +}; + +class BackgroundCommand final:public Command{ + std::string backgroundFilename; +public: + void Execute(VisualNovel&vn)override; + BackgroundCommand(std::string backgroundFilename); +}; + +class RightCommand final:public Command{ + std::vectorcharacters; +public: + void Execute(VisualNovel&vn)override; + RightCommand(std::vectorcharacters); +}; + +class LeftCommand final:public Command{ + std::vectorcharacters; +public: + void Execute(VisualNovel&vn)override; + LeftCommand(std::vectorcharacters); +}; + +class LocationCommand final:public Command{ + std::string location; +public: + void Execute(VisualNovel&vn)override; + LocationCommand(std::string location); +}; + +class Command{ + virtual void Execute(VisualNovel&vn)=0; +protected: + Command(); +}; + +class VisualNovel{ + std::string storyLevel; + std::string activeText; + std::vectorleftCharacters; + std::vectorrightCharacters; + std::string backgroundFilename; + std::vectorcommands; + int commandIndex; + + static safemap>>storyLevelData; + + static VisualNovel novel; +public: + VisualNovel()=delete; + VisualNovel(VisualNovel&)=delete; + VisualNovel(VisualNovel&&)=delete; + static void Initialize(); + static void LoadVisualNovel(std::string storyLevelName); + static void Update(); + static void Draw(); +}; \ No newline at end of file diff --git a/Crawler/assets/backgrounds/cave.png b/Crawler/assets/backgrounds/cave.png new file mode 100644 index 00000000..2234ffa6 Binary files /dev/null and b/Crawler/assets/backgrounds/cave.png differ diff --git a/Crawler/assets/backgrounds/cave_dark.png b/Crawler/assets/backgrounds/cave_dark.png new file mode 100644 index 00000000..55273f2d Binary files /dev/null and b/Crawler/assets/backgrounds/cave_dark.png differ diff --git a/Crawler/assets/backgrounds/sea.png b/Crawler/assets/backgrounds/sea.png new file mode 100644 index 00000000..dab980cd Binary files /dev/null and b/Crawler/assets/backgrounds/sea.png differ diff --git a/Crawler/assets/characters/greg.png b/Crawler/assets/characters/greg.png new file mode 100644 index 00000000..75f80811 Binary files /dev/null and b/Crawler/assets/characters/greg.png differ diff --git a/Crawler/assets/characters/player_f.png b/Crawler/assets/characters/player_f.png new file mode 100644 index 00000000..8fb037b7 Binary files /dev/null and b/Crawler/assets/characters/player_f.png differ diff --git a/Crawler/assets/characters/player_m.png b/Crawler/assets/characters/player_m.png new file mode 100644 index 00000000..a2253042 Binary files /dev/null and b/Crawler/assets/characters/player_m.png differ diff --git a/Crawler/assets/characters/red_stone.png b/Crawler/assets/characters/red_stone.png new file mode 100644 index 00000000..6f87e67e Binary files /dev/null and b/Crawler/assets/characters/red_stone.png differ diff --git a/Crawler/assets/characters/sherman.png b/Crawler/assets/characters/sherman.png new file mode 100644 index 00000000..979f53f7 Binary files /dev/null and b/Crawler/assets/characters/sherman.png differ diff --git a/Crawler/assets/config/configuration.txt b/Crawler/assets/config/configuration.txt index ab3df3e0..996f1ad2 100644 --- a/Crawler/assets/config/configuration.txt +++ b/Crawler/assets/config/configuration.txt @@ -48,6 +48,9 @@ item_directory = items/ # Path to items configuration item_img_directory = items/ +# Path to story files +story_directory = config/story/ + # Whether or not to show individual data accesses from config data structure. debug_access_options = 0 diff --git a/Crawler/assets/config/story/Chapter 1.txt b/Crawler/assets/config/story/Chapter 1.txt new file mode 100644 index 00000000..1aed8d86 --- /dev/null +++ b/Crawler/assets/config/story/Chapter 1.txt @@ -0,0 +1,350 @@ +===STORY_1_1=== +{LOCATION Bleakport Outskirts} +{BACKGROUND sea.png} +[] +You are on your way from Bleakport to the Lestorian Forest, where you want to hunt slimes. + +Slime Remains are used to brew healing potions and recent pirate attacks around Bleakport used up alot of those. + +This makes it an easy opportunity to make some coin. + +Merchant crossing is getting close, the smoke of the campfires can already be seen. + +Merchant crossing is a Crossway that connects Bleakport, the Lestorian Forest, Eagleview Mountains and the Capitol of the Lestorian Kingdom, Clafton. + +The crossing is famous for merchants to rest on there travels and trade goods with each other. + +While you are getting closer you realise something isnt right. the Smoke on the sky is way thicker then what you would expect from a few campfires. + +You reach the crossing where a horrible scenery awaits you. + +Tents are burning and lifeless bodys lying on the floor. It looks like some Bandit attack, which also is a kinda strange occurance. + +Bandit groups weren't active in the past 50 years because of the Lestorian military. + +In the entire history of the Lestorian Kingdom, there are no wars on the records. + +Which leads that the military is used more like a police force, which presence discourages large scale crimes. + +The only active criminal group in the Area would be the Pirates in the Bleakport area. + +But even they know that they can only operate because the Lestorian military isnt leaving the mainland. + +You search the entire camp for any survivors. And finally, you found someone still breathing. + +you feed him a health potion, clean his wounds with water and close them with bandages. + +The health potion seem to work kinda fast. The mans consciousness returns a few minutes later. + +[?,Sherman] +{LEFT Sherman} +{RIGHT You} +Th..Thanks. + +[You] + +no Problem. Rest for now. + +[] + +after around half an hour of letting the health potion work the man finally seems to be in a somewhat stable state. + +[You] + +How are you feeling. + +[?] + +Better, i guess. + +[You] + +Can you tell me what happened here? + +[?] + +I... We... No, it happened way to fast. + +[You] + +Thats ok, maybe your memories come back later. Whats your Name? + +[Sherman] + +Sherman. Professor of the Lestorian Science Corporation. + +[You] + +I'm [Player Name]. Adventurer and Hunter. + +[] + +You are kinda surprised of his response. You did not expect anyone from the Science Corporation to leave the Capitol in the first place. + +While you are deep in thoughts, suddenly Sherman starts to panic. + +[Sherman] + +The stone. did they... please, can you check if you can find a red colored stone? It was in my bag. + +[You] + +calm down. I see if i can find anything like that. + +[] + +You check every bag around the loaction where you found Sherman. + +While searching you realise that whoever did this wasn't after money. + +You don't find any red stone though. + +[Sherman] + +What shall I do. I can't return to the Kingdom without it. + +[You] + +First you should rest. Once you are able to walk on your own again, we can think about a solution for your lost object. + +[] + +You set up a tent and a campfire a little outside of the main camp where the tragedy happened and help Sherman to move over. + +Without the corpses surrounding you, you relax a little bit. For the rest of the day you keep an Eye on Sherman while he recovers. + +The next day Sherman no longer lying down, instead sitting on the grass. + +[Sherman] + +Good Morning. You told me you are an Adventurer right? + +[You] + +Morning... Yes i am. Why? + +[] + +Sherman is full of Energy you can barely tell that he almost died a day before. That health Potion you gave to him performed a miracle. + +[Sherman] + +Ok, So you remember the Stone i asked you about yesterday right? It's an source of Energy we currently are investigating. + +We may have lost the first stone. But we got a clue that another one lies deep inside the Lestorian Forest. + +With that Stone i could return to the kingdom with something to show. i obviously would pay you for it. + +It should be in a cave somewhere in the middle of the Forest. + +[] + +For the Slime hunting you have to enter the Lestorian Forest anyway. Therefore searching for a cave while doing that doesnt sound like a big deal. + +[You] + +I am on my way to the Forest anyway. I can check any cave i come across and if I find any Red Stone i will report back. + +No promises though. My main goal is Slime hunting. But i see what i can do to help. + +[Sherman] + +Great, i still feel a little weak so i will be staying in this camp for now. + +Also i expect Lestorian Soldiers to show up soon to investigate the campside. Guess i can help as witness. + +[You] + +Did your Memories return? + +[Sherman] + +Well, a few things but i still need to sort myself. I cant really tell you more then what i did yesterday. + +[You] + +Guess i have to take that answer for now. I am on my way to the Forest. bye. + + + + + +===STORY_1_2=== +{LOCATION Lestorian Forest} +{BACKGROUND sea.png} +[?,Greg] +Did you defeat the Monsters? + +[] + +A voice from the top of the trees appears. + +[You] + +I can't see any more atleast. + +[?,Greg] + +thats great. Give me a short moment i come down. + +[] + +A man Starts Climbing down a tree. + +{LEFT Greg} +{RIGHT You} +[Greg] + +Hello, my name is Greg. Thanks for the rescue. + +[You] + +Rescue? i am just hunting slimes. Anyway, [Player name]. Glad i could help. + +[Greg] + +You for sure did. I was wandering around and didnt realised that a bunch of slimes sneaked up on me. + +Luckily those guys can't climb trees. But those damn slimes are really good in just waiting. + +Was sitting for over one day on this tree. + +[You] + +Did you had any plan in case no one would have come around? + +[Greg] + +Nah, got enough food and water on me. Could have stayed there for like a week. + +Last time this happened I was able to leave after 3 days. + +[You] + +Last time? ... Anyway, why are you even in the forest if you are not Hunting Slimes? + +[Greg] + +Ever heard of the Echanted Trees deep inside this Forest? + +I dont have any proof that those really exist but since i heard about them i cant think of anything else then find one. + +Its said that they look on first glance like a normal Cedar Tree, but there wood is hard as Steel. + +Legends say that a sword out of this wood is Sharper then any normal sword made with steel and way lighter. + +[You] + +Sounds like a great material. But if its hard as steel. any Plans how to cut it down? + +[Greg] + +... + +{PAUSE} + +... well ... + +{PAUSE} + +Never thought about that part. + +This could indeed become a Problem. + +Maybe i leave the forest for now and think up a plan before returning. + +If you search for me, i will be at merchant crossing. Offering my skills as a Blacksmith to Merchants. + +[You] + +About Merchant Crossing... + +[] + +You explain Greg what happened at the crossing. + +[Greg] + +Thats not good. You said you build a small camp nearby? Guess i will go there for now then. + +If you need any weapons or armour. you can find me there. + +See you later. + + + + + +===STORY_1_3=== +{LOCATION Stone Wall} +{BACKGROUND sea.png} +[] + +You see a crack in the Stone Wall. + +The closer you get to the crack the colder the air feels. + +A shiver runs down your spine. This doesn't feel like a normal cave. + +Its big enough that you can enter without any problem. + +After a few steps inside, a glimmering red light lightens up the cave. + +you follow the way until you hit an open Space. +{BACKGROUND cave.png} +The Walls are slick. No Rocks spiking out of the walls. the entire room has some unnatural feeling. + +In the middle of the room is some kind of Pillar which is the same heigh as your Torso. +{LEFT Red Stone} +{RIGHT You} +On Top of that Pillar lies a redish Stone Cube. + +The Stone Cube seems to emit the light + +In the Wall behind the Cube are runes engraved. + +You never seen anything close to those runes and obviously can't read them. + +[You] + +This could be the Stone Sherman was looking for. + +[] + +You get closer to the pillar and grab the Cube. +{LEFT} +{RIGHT} +*click* +{BACKGROUND cave_dark.png} +Darkness. + +The Stone Cube is still glowing but the glow is way weaker then it was before. + +The light its emitting is now to weak to see your own foot. + +The sudden unexpected darkness casts fear on you. + +You turn around and search for the way back. + +Returning seems to be no Problem, until. + +Halfway back you suddenly feel a movement. + +An Earthquake. + +Its not a strong one but in your current position it is extremly dangerous. + +Even though you still can't see anything, you start running. + +{PAUSE} + +... + +{PAUSE} +{BACKGROUND sea.png} +Finally. Sunlight. You are out of the cave. + +{PAUSE} + +Together with the Stone Cube you leave the Forest behind. + diff --git a/Crawler/assets/config/story/Chapter 2.txt b/Crawler/assets/config/story/Chapter 2.txt new file mode 100644 index 00000000..e69de29b diff --git a/Crawler/assets/config/story/Chapter 3.txt b/Crawler/assets/config/story/Chapter 3.txt new file mode 100644 index 00000000..e69de29b diff --git a/Crawler/assets/config/story/Chapter 4.txt b/Crawler/assets/config/story/Chapter 4.txt new file mode 100644 index 00000000..e69de29b diff --git a/Crawler/assets/config/story/Chapter 5.txt b/Crawler/assets/config/story/Chapter 5.txt new file mode 100644 index 00000000..e69de29b diff --git a/Crawler/assets/config/story/Chapter 6.txt b/Crawler/assets/config/story/Chapter 6.txt new file mode 100644 index 00000000..e69de29b diff --git a/Crawler/assets/config/story/characters.txt b/Crawler/assets/config/story/characters.txt new file mode 100644 index 00000000..d0556c77 --- /dev/null +++ b/Crawler/assets/config/story/characters.txt @@ -0,0 +1,10 @@ +character_image_location = assets/characters + +Characters +{ + Player_F = player_f.png + Player_M = player_m.png + Sherman = sherman.png + Greg = greg.png + Red Stone = red_stone.png +} \ No newline at end of file