olc::CodeJam 2022 Entry #olcCodeJam2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

149 lines
3.9 KiB

#include <string>
std::string STORY_TEXT1=R"(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
Press any key to continue.)";
std::string STORY_TEXT2=R"( SEASONS
-of-
LONELINESS)";
std::string STORY_TEXT3=R"(ERROR CODE -4: Transmission Failed. Unable to Retrieve Launch Data.
GPSNAV-17 - FAILED.
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
Press any key to continue.)";
std::string STORY_TEXT4=R"(Unable to hang on, )";
std::string STORY_TEXT5=R"( lets out their last breath before collapsing for eternity...?
Press any key to continue.)";
std::string STORY_DIALOG[]={R"(
???
RAIN CYCLE COMMENCING)", //0
R"(
$PLAYER
Oh thank goodness, and just in time too!)", //1
R"(
CompU-16770
RAIN CYCLE ENDING. NEXT RAIN CYCLE DUE IN 17 TERRA REVOLUTIONS.)", //2
R"(
$PLAYER
Time to collect these crops!)", //3
R"(
$PLAYER
Looks like a good time to go out too! Oxygen levels are at a good reading. Just going to do a quick system log...)",//4
R"(
CompU-16770
<ENTER USERNAME>)",//5
R"(
$PLAYER
The winds must have kicked in early this morning. Better go outside and work on R.O.V.E.R..)",//6
R"(
$PLAYER
I almost have the receiving unit repaired, I just need another good vein of silicon and we can finish this.)",//7
R"(
$PLAYER
Hmmm...)",//8
R"(
$PLAYER
So those dust columns only form around large hole deposits. This is usually where volcanic activity subsides, and usually dense rich in minerals!)",//9
R"(
$PLAYER
We'll head there. I recall seeing some volcanic rock North-East of here.)",//10
R"(
$PLAYER
What a great harvest!)",//11
R"(
CompU-16770
Authenticated. Record successfully logged.)",//12
R"(
R.O.V.E.R. 2001
< No response... >)",//13
R"(
Silicon resources acquired!!)",//14
R"(
$PLAYER
Now I can finally repair the Receiver! Better head back to the site.)",//15
R"(
$PLAYER
Please let this work...)",//16
R"(
$PLAYER
Perfect! Now to see if it will detect anything.)",//17
R"(
$PLAYER
Huh, it still doesn't work. At least the signaling is fixed. Maybe it'll work tomorrow...)",//18
R"(
$PLAYER
I'll go inside and get some rest in the meantime.)",//19
R"(
$PLAYER
Ugh..Why now?)",//20
R"(
$PLAYER
Of course now would be a GREAT time for an invasion.)",//21
R"(
$PLAYER
I'd better be careful, this ain't no ordinary monster... And what's with that weird sigil on its body..?)",//22
R"(
$PLAYER
Urgh...Not good, but looks like I'm safe for now. Now then...)",//23
R"(
$PLAYER
Time to use Petal Storm! It allows me to regenerate health while setting up seeds!)",//24
R"(
$PLAYER
Then I'll be able to use Hurricane powers in order to grow them, nourishing me and dealing additional damage!)",//25
R"(
$PLAYER
What a rough fight... Oh yeah! R.O.V.E.R! I should check if things are better!)",//26
R"(
R.O.V.E.R. 2001
SIGNS INDICATE TRACES OF SILICON LOCATION ::: SOUTHWEST)",//27
R"(
$PLAYER
Perfect! We can improve the tracking ability by collecting more of these! Then hopefully the signal will become strong enough...)",//28
R"(
$PLAYER
Well that was simpl-... Eh?)",//29
R"(
$PLAYER
Worms? Don't think they're here to play either.)",//30
R"(
$PLAYER
Alright! Another one done. Oh! It's responding!)",//31
R"(
R.O.V.E.R. 2001
SIGNS INDICATE TRACES OF SILICON LOCATION ::: EAST)",//32
R"(
$PLAYER
Hopefully no more ambushes... (Or maybe I'll just jinx myself.))",//33
};
olc::Pixel TILE_COLORS[]={
olc::Pixel(112, 88, 64), //0 DIRT
olc::Pixel(60, 97, 49), //1 GRASS
olc::Pixel(30, 84, 87), //2 WATER
olc::Pixel(180, 191, 209), //3 MARBLE
olc::Pixel(112, 88, 64), //4 WALL (DIRT)
olc::Pixel(33, 12, 28), //5 Volcanic Ground
olc::Pixel(118, 180, 181), //6 Slate
};