diff --git a/C++/scripts/md5 b/C++/scripts/md5 index 3e77b3f..7cf8083 100644 --- a/C++/scripts/md5 +++ b/C++/scripts/md5 @@ -1,3 +1,3 @@ build.sh:530634457ea9041267c05d4ced95eee1 - commit.sh:d03a46e721060c22ccb146e19d27e70a - -web.sh:241ce74055952325f82f009b494df250 - +web.sh:3dcc2fe7e036359eedd257a864e9a1e1 - diff --git a/C++/scripts/web.sh b/C++/scripts/web.sh index eef8c5b..2e1a1f3 100755 --- a/C++/scripts/web.sh +++ b/C++/scripts/web.sh @@ -1,9 +1,9 @@ #Compiles emscripten instance of this project for the web. #C++ if [ -d "assets" ]; then - em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 $(find . -type f -name "*.cpp") -o ${PROJECT_NAME}.html -I pixelGameEngine.h --preload-file ./assets + em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_SDL_MIXER=2 -s USE_LIBPNG=1 $(find . -type f -name "*.cpp") -o ${PROJECT_NAME}.html -I pixelGameEngine.h --preload-file ./assets else - em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_LIBPNG=1 $(find . -type f -name "*.cpp") -o ${PROJECT_NAME}.html -I pixelGameEngine.h + em++ -std=c++17 -O2 -s ALLOW_MEMORY_GROWTH=1 -s MAX_WEBGL_VERSION=2 -s MIN_WEBGL_VERSION=2 -s USE_SDL_MIXER=2 -s USE_LIBPNG=1 $(find . -type f -name "*.cpp") -o ${PROJECT_NAME}.html -I pixelGameEngine.h fi cp buildtemplate.html ${PROJECT_NAME}.html @@ -15,3 +15,4 @@ if [ "$1" == "headless" ]; then else emrun --serve_after_close ${PROJECT_NAME}.html fi + diff --git a/C++ProjectTemplate b/C++ProjectTemplate index dc59e7a..6522a94 100755 Binary files a/C++ProjectTemplate and b/C++ProjectTemplate differ diff --git a/main.cpp b/SeasonsOfLoneliness.cpp similarity index 55% rename from main.cpp rename to SeasonsOfLoneliness.cpp index 05849a6..cf94f39 100644 --- a/main.cpp +++ b/SeasonsOfLoneliness.cpp @@ -3,12 +3,12 @@ using namespace std; -class Example : public olc::PixelGameEngine +class SeasonsOfLoneliness : public olc::PixelGameEngine { public: - Example() + SeasonsOfLoneliness() { - sAppName = "Example"; + sAppName = "Seasons of Loneliness"; } public: @@ -17,14 +17,6 @@ public: SetPixelMode(olc::Pixel::ALPHA); ConsoleCaptureStdOut(true); // Called once at the start, so create things here - for (int x = 0; x < ScreenWidth(); x++) - for (int y = 0; y < ScreenHeight(); y++) - Draw(x, y, olc::Pixel(rand() % 255, rand() % 255, rand()% 255)); - for (int x=0;x<50;x++) { - for (int y=0;y<50;y++) { - Draw(x, y, olc::Pixel(255, 0, 0, 128)); - } - } return true; } @@ -38,7 +30,7 @@ public: int main() { - Example demo; + SeasonsOfLoneliness demo; if (demo.Construct(256, 240, 4, 4)) demo.Start(); diff --git a/ideas b/ideas new file mode 100644 index 0000000..1d19780 --- /dev/null +++ b/ideas @@ -0,0 +1,83 @@ +RPG Storytelling + +Extraterrestial Weather + +Someone living on this planet. Sparse on resources, very volatile weather. + +"ERROR CODE -1: Transmission Failed. Lost Receiving Target Location. +GPSNAV-17 - UNABLE TO LOCATE +GPSNAV-18 - UNABLE TO LOCATE +GPSNAV-22 - UNABLE TO LOCATE +GPSNAV-26 - UNABLE TO LOCATE +GPSNAV-31 - UNABLE TO LOCATE +GPSNAV-33 - UNABLE TO LOCATE +GPSNAV-35 - UNABLE TO LOCATE" +Transmission from Rover. (Rover is in bad condition) + +Pan over to character's "dome" + +Small house with some plants and simulating a small earth rain cycle / weather. +"RAIN CYCLE COMMENCING." + +RESOURCES COUNTER: 3 (Shaking violently red) + + +We'll get to see the main character: +"Phew, thank goodness these came just in time." + + +"RAIN CYCLE ENDING. NEXT RAIN CYCLE DUE IN 17 TERRESTIAL CYCLES." + +"I wonder how the air is today.." + + +Upon checking oxygen monitor, it will say Air Quality: 34%. (This now appears in the interface) + +"Hmm, an actual good day." + +"The winds must have kicked in early. Better go out and work on R.O.V.E.R.." + + + +(For the time being these numbers will remain static but will be later in the player's control) + +Player will go check on ROVER and see that another transmission has failed. + +"I almost have the receiving unit repaired, I just need another good vein of silicon and we can finish this." +"Hmmm..." + + +"So those dust columns only form around large hole deposits. This is usually where volcanic activity subsides, and usually dense rich in minerals!" +"We'll head there." + + + + +Tarantula/Centipede creatures will ambush the player. + +"Not a great time for buggers. But, I'll have to take them out." + +Combat: +- Every turn you can perform a Weather action. +- Weather actions are randomized, but known from the start. You will have to use them in a certain order to get the desired effect you want. + +"Hurricane" - Creates a rainstorm and causes targets to become Wet. +"Snowstorm" - Causes wet enemies to freeze and does freezing damage over time +"Hailstorm" - Causes chunks of hail to rain onto enemies. (AoE) + +After the first fight, the player acknowledges their control over weather. +"That's right, I do have some control over the elements around here. Over time, I've managed to study what my ancestors were exposed to on this planet." +"Careful reading and diligence has paid off and I am now able to conjure up at least small forms of these storms that my past generations were so consumed by." + +"They would write on and on about how the entire world was completely transformed by these powers, and that everyday their lives would be completely +changed and influenced simply by controlling these systems." + +"In complete awe of the scope of these powers, I started reading and spending time learning how these powers worked. But in the process, I've been +a little baffled." + +"I don't see most of these weather systems here anymore. And what happened to all the other people? The only thing I have left...Is R.O.V.E.R. That's why I am so fixated on repairing him. Once I do, surely he will have all the answers..." + + +"Winds" - Winds interact with Seeds and Fire. +"Petal Storm" - A petal storm causes Seeds to scatter and minor damage. +"" \ No newline at end of file diff --git a/sig b/sig index f50df4f..f27d49c 100755 --- a/sig +++ b/sig @@ -2,8 +2,8 @@ export AUTO_UPDATE=true source utils/define.sh -define PROJECT_NAME "C++ProjectTemplate" -define CUSTOM_PARAMS "-std=c++17 -lX11 -lGL -lpthread -lpng -lstdc++fs -lasound" +define PROJECT_NAME "Seasons_of_Loneliness" +define CUSTOM_PARAMS "-std=c++17 -lX11 -lGL -lpthread -lpng -lstdc++fs -lpulse -lpulse-simple" define LANGUAGE "C++" source utils/main.sh