From f141220e824363713ed758e129316976677e81df Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 29 Jul 2019 22:13:12 +0100 Subject: [PATCH] Added escape pod. Okay, now I'm truly done with this branch. https://cdn.discordapp.com/attachments/249925765423038464/605506507345362964/srb20033.gif --- src/f_finale.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/f_finale.c b/src/f_finale.c index cb315be03..3d1b2ab83 100644 --- a/src/f_finale.c +++ b/src/f_finale.c @@ -104,6 +104,7 @@ static patch_t *endfwrk[3]; // firework - replaced with skin when good ending static patch_t *endspkl[3]; // sparkle static patch_t *endglow[2]; // glow aura - replaced with black rock's midway through good ending static patch_t *endxpld[4]; // mini explosion +static patch_t *endescp[5]; // escape pod + flame static INT32 sparkloffs[3][2]; // eggrock explosions/blackrock sparkles static INT32 sparklloop; @@ -1571,6 +1572,12 @@ void F_StartEnding(void) endxpld[2] = W_CachePatchName("ENDXPLD2", PU_LEVEL); endxpld[3] = W_CachePatchName("ENDXPLD3", PU_LEVEL); + endescp[0] = W_CachePatchName("ENDESCP0", PU_LEVEL); + endescp[1] = W_CachePatchName("ENDESCP1", PU_LEVEL); + endescp[2] = W_CachePatchName("ENDESCP2", PU_LEVEL); + endescp[3] = W_CachePatchName("ENDESCP3", PU_LEVEL); + endescp[4] = W_CachePatchName("ENDESCP4", PU_LEVEL); + // so we only need to check once if ((goodending = ALL7EMERALDS(emeralds))) { @@ -1703,6 +1710,20 @@ void F_EndingDrawer(void) V_DrawFixedPatch(-(x/5), -(y/5), FRACUNIT, 0, endbgsp[1], NULL); // sun V_DrawFixedPatch( 0, -(y/2), FRACUNIT, 0, endbgsp[2], NULL); // planet + // player's escape pod + V_DrawFixedPatch((200< -19) + { + INT32 trans = (-parallaxticker)>>1; + if (trans < 0) + trans = 0; + V_DrawFixedPatch((200< 0) // gunchedrock { INT32 scale = FRACUNIT + ((parallaxticker-10)<<7);