Add launchpad decal

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2 2 years ago
parent 61ce12a1db
commit 277ff92e88
  1. 40
      SeasonsOfLoneliness.cpp
  2. BIN
      Seasons_of_Loneliness
  3. BIN
      assets/launchpad.png
  4. BIN
      assets/launchpad_back.png
  5. BIN
      assets/launchpad_half1.png
  6. BIN
      assets/launchpad_half2.png
  7. 121
      assets/maps/map5
  8. 2
      data.h

@ -487,7 +487,7 @@ public:
int oxygenQualityLevel=34;
int plantState=0b01001010010100010101010010010101;
SplashScreen splash;
Animation*current_playerAnim=new Animation();
Animation*current_playerAnim;
Animation*playerAnim=new Animation();
Animation*playerAnimRight=new Animation();
Animation*playerAnimLeft=new Animation();
@ -636,7 +636,8 @@ public:
*NADO_DECAL,*SILICON_ROCK_DECAL,*PETAL_STORM_DECAL,*ROVER_DECAL,*X_X_DECAL,
*LATER_THAT_NIGHT_DECAL,*SLEEP_DECAL,*SEED_DECAL,*TREE_DECAL,*X_X_UNCHARGED_DECAL,
*SANDWORM_DECAL,*SNAKE_DECAL,*MOTH_DECAL,*FLASH_FLOOD_DECAL,*SUNNY_DAY_DECAL,*FIRESTORM_DECAL,*SOLARFLARE_DECAL,
*HP_REGEN_DECAL,*SLOWED_DECAL, *SPEED_DECAL,*HIDDEN_DECAL,*BOOK_DECAL,*BOOK2_DECAL;
*HP_REGEN_DECAL,*SLOWED_DECAL, *SPEED_DECAL,*HIDDEN_DECAL,*BOOK_DECAL,*BOOK2_DECAL,
*LAUNCHPAD_CLOSED_DECAL,*LAUNCHPAD_HALF1_DECAL,*LAUNCHPAD_HALF2_DECAL,*LAUNCHPAD_DECAL,*Y_Y_DECAL;
std::map<std::string,ObjectLoadInfo*> BASE_OBJECTS;
std::vector<Encounter> ENCOUNTERS;
Encounter ENCOUNTER_SPIDEY_1;
@ -764,10 +765,14 @@ public:
SLOWED_DECAL=new Decal(new Sprite("assets/slowed.png"));
SPEED_DECAL=new Decal(new Sprite("assets/speedup.png"));
HIDDEN_DECAL=new Decal(new Sprite("assets/hidden.png"));
BOOK_DECAL=new Decal(new Sprite("assets/book.png"));
BOOK2_DECAL=new Decal(new Sprite("assets/book2.png"));
BOOK_DECAL=new Decal(new Sprite("assets/book2.png"));
BOOK2_DECAL=new Decal(new Sprite("assets/book.png"));
LAUNCHPAD_CLOSED_DECAL=new Decal(new Sprite("assets/launchpad.png"));
LAUNCHPAD_HALF1_DECAL=new Decal(new Sprite("assets/launchpad_half1.png"));
LAUNCHPAD_HALF2_DECAL=new Decal(new Sprite("assets/launchpad_half2.png"));
LAUNCHPAD_DECAL=new Decal(new Sprite("assets/launchpad_back.png"));
Y_Y_DECAL=new Decal(new Sprite("assets/Y.Y.png"));
current_playerAnim->spr=PLAYER_DECAL;
playerAnim->spr=PLAYER_DECAL;
playerAnimRight->spr=PLAYER_DECAL;
playerAnimLeft->spr=PLAYER_DECAL;
@ -1424,6 +1429,7 @@ public:
}break;
case cutscene::STORY_REVIEW:{
GAME_STATE=DISPLAY_BOOK;
fadeIn();
PlayCutscene(cutscene::STORY_REVIEW2);
}break;
case cutscene::STORY_REVIEW2:{
@ -1452,10 +1458,6 @@ public:
case cutscene::MAP_TRANSITION:{
EndCutscene();
}break;
case cutscene::FINAL_REVIEW:{
DisplayMessageBox(45);
//EndCutscene();
}break;
}
}
@ -2440,7 +2442,7 @@ public:
case cutscene::STORY_REVIEW:{
if (!messageBoxVisible) {
if (!CUTSCENE_FLAGS[0]) {
if (MoveObjectTowardsPoint({19,2.5},CUTSCENE_OBJS[0],BOTH)) {
if (MoveCameraTowardsPoint({18,5})&&MoveObjectTowardsPoint({19,2.5},CUTSCENE_OBJS[0],BOTH)) {
CUTSCENE_FLAGS[0]=true;
}
} else
@ -2459,6 +2461,7 @@ public:
}break;
case cutscene::STORY_REVIEW2:{
if (CUTSCENE_TIMER>120) {
if (!messageBoxVisible) {
if (!CUTSCENE_FLAGS[0]) {
DisplayMessageBox(40);
CUTSCENE_FLAGS[0]=true;
@ -2485,11 +2488,22 @@ public:
CUTSCENE_FLAGS[5]=true;
}
}
}
}break;
case cutscene::FINAL_REVIEW:{
if (CUTSCENE_TIMER>60) {
if (!messageBoxVisible) {
if (!CUTSCENE_FLAGS[0]) {
CUTSCENE_FLAGS[0]=true;
DisplayMessageBox(45);
} else {
PLAYER_COORDS[0]=CUTSCENE_OBJS[0]->x;
PLAYER_COORDS[1]=CUTSCENE_OBJS[1]->y;
current_playerAnim=playerAnimLeft;
EndCutscene();
}
}
}
}break;
}
@ -2744,10 +2758,10 @@ public:
DrawDecal({(float)(WIDTH/2-LATER_THAT_NIGHT_DECAL->sprite->width/2),(float)(HEIGHT/2-LATER_THAT_NIGHT_DECAL->sprite->height/2)},LATER_THAT_NIGHT_DECAL);
}break;
case DISPLAY_BOOK:{
DrawDecal({WIDTH/2-BOOK_DECAL->sprite->width/2,HEIGHT/2-BOOK_DECAL->sprite->height/2},BOOK_DECAL);
DrawDecal({WIDTH/2-BOOK_DECAL->sprite->width*2/2,HEIGHT/2-BOOK_DECAL->sprite->height*2/2},BOOK_DECAL,{2,2});
}break;
case DISPLAY_BOOK2:{
DrawDecal({WIDTH/2-BOOK2_DECAL->sprite->width/2,HEIGHT/2-BOOK2_DECAL->sprite->height/2},BOOK2_DECAL);
DrawDecal({WIDTH/2-BOOK2_DECAL->sprite->width*2/2,HEIGHT/2-BOOK2_DECAL->sprite->height*2/2},BOOK2_DECAL,{2,2});
}break;
}
switch (BATTLE_STATE) {
@ -2823,7 +2837,7 @@ public:
SetDrawTarget(nullptr);
DrawDialogBox({4,HEIGHT-60},{WIDTH/2,16},Pixel(18, 0, 33,180));
DrawDialogBox({0,HEIGHT-48},{WIDTH,48},Pixel(18, 0, 33,180));
DrawStringPropDecal({8,HEIGHT-40},messageBoxText);
DrawStringPropDecal({8,HEIGHT-42},messageBoxText);
DrawStringPropDecal({8,HEIGHT-57},messageBoxSpeaker);
if (messageBoxCursor==messageBoxRefText.length()) {
DrawStringPropDecal({WIDTH-16-(float)sin(frameCount*8/60.0)*3,HEIGHT-8+(float)(cos(frameCount*6/60.0)*0.6)},"v",Pixel(173, 74, 255,(0.5*sin(frameCount*8/60.0)+0.5)*128+128),{(float)sin(frameCount*8/60.0),0.5});

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

@ -0,0 +1,121 @@
204
78
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500000000005000550000500000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005000000005000550000000000000050000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500005055000050000550005050000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005500550000050000500050050000550005000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005000000055555555555555555555555555000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005000055555555555555555555555555550000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005000000000555555555555555555555500000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000505000555555555555555555555505055000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055000500005555555555555555555000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000500555555555555550000050000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000555555550000500500000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000505505000000555555550055000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000555555550500550000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050500000000500005050000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055000000000000500050000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050000500500000550000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550000000000000005500000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550000000000005550000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000555000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550000000000000000000000005500000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005500000000000000000050000055500000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000055500000000000000000000000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066000000000066000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000660000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000666600000000000000066000000000000000006000000000006600000000000000660000000000000000000
000000000000000000000111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000060000000000006600000000660000000000000000000000000000000000000000000000000
000000000000000000000111111111111111111111111111111111110000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000006000600660000000000000000000000
000000000000000000000000000000000002222222222222222222222222222222222222222222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000606606600006606666000000000000000000
000000000000000000000000000000000002222222222222222222222222222222222222222222200000000000000000000000000000000000000000000000000000600000000000000000000000000066000060006060660006066066000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000222222222222222222222222220000000000000000000000000000000000000000000000000600000600000000000000000066606660660066660066666000000000000
000000000000000000000000000000000000000000000000000000000000000000002222222222222222222222222200000000000000000000000000000000000600000000000660000006600000000000000000606666006666666600000000066000000000
000000000000000000000000000000000000000000000000000000000000000000222222222222222222222222222222220000000000000000000000000000000000000000000000000000000000000000660000006666660060060060000000066000000000
000000000000000000000000000000000000000000000000000000000000000000222222222222222222222222222222222222222222222222222200000000000000000660000000000000000000000000000000006000006000060000000000066000000000
000000000000000000000000000000000000000000000000000000000000000000222222222222222222222222222200000000000000000000000000000000000000000000000000000000000060000000000000006006600606600000000000006600000000
000000000000000000000000000000005000000000000000000000000000000000022222222222222222222222222000000000000000000000000000000000000000000000000000000000000000000000000006000000006000000000000000000660000000
000000000000000000000000000000000000000000000000000000000000000000000222222222222222222222222220000000000000000000000000000000000000000000000066000000000000660000000000000000000000000000000000000660000000
000000000000000000050000000000000000000000000005000000000000000000000002222222222222222222222222200000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000660000000
000000000000000000000000000000000000000000000000000000000000000000000000002222222222222222222222222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006660000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000001006666000020
000000500000000000000005550000000000000000000000000000000000000000000000000000000222200000000000000000000000000000000000000000000000000000000000000000000006600000000000000000000000000000000000006666000000
000000000000000000000055500000000000000000000050000000000000000000000000000000002222220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066666000000
000000000000000000000000000055000000000000000000000000000050000000000000000000002222220000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000000666666600000
000000000000000000000000000005500000000000000000000000000000000000000000000000000222200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000666666600000
000000000000550000000000000000000000005500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000666666600000
000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006660000000
000000000000000000000550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000600000000
000000000000000000000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000550000000000500000000005550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000005500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000050000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000050000000000000000050000000000000000050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000055500000000000000500000000000000000000000005000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000555500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000055555500000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000555550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000055550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000005555000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000555555000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000005555555000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000005555555500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000005555555000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
38;35;DOME
83;53;HAILSTORM_NODE
135;14;HAILSTORM_NODE
14;69;METEORSHOWER_NODE
202;33;METEORSTORM_NODE
167;44;SNOWSTORM_NODE
20;10;HURRICANE_NODE
39;38;SUNNYDAY_NODE
38;38;FLASHFLOOD_NODE
47;57;SNOWSTORM_NODE
9;48;PETALSTORM_NODE
48;74;FLASHFLOOD_NODE
29;54;METEORSHOWER_NODE
6;74;SUNNYDAY_NODE
84;64;HURRICANE_NODE
23;35;HAILSTORM_NODE
33;35;BROKEN_ROVER
82;54;METEORSTORM_NODE
138;36;SOLARFLARE_NODE
96;23;FIRESTORM_NODE
120;8;FIRESTORM_NODE
45;17;SNOWSTORM_NODE
20;71;METEORSTORM_NODE
45;66;SOLARFLARE_NODE
181;42;SNOWSTORM_NODE
195;54;HAILSTORM_NODE
191;50;PETALSTORM_NODE
202;50;FLASHFLOOD_NODE
169;56;SUNNYDAY_NODE
193;37;HURRICANE_NODE
172;32;METEORSTORM_NODE
116;8;NADO
120;9;NADO
123;7;NADO
122;10;NADO
116;11;NADO
120;11;NADO
122;13;NADO
121;9;SILICON_PIECE
20;73;SILICON_PIECE
195;56;SILICON_PIECE

@ -182,7 +182,7 @@ $PLAYER
I studied carefully and learned everything there is to know about how weather works on this planet. The Planet of Hope. My future...)",//44
R"(
$PLAYER
Hopefully R.O.V.E.R. is calibrated now!")",//45
Hopefully R.O.V.E.R. is calibrated now!)",//45
};

Loading…
Cancel
Save