mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 20:50:58 +00:00
Added a failure animation if you don't get the emerald. https://cdn.discordapp.com/attachments/402861856219463681/405477752972509185/srb20004.gif
This commit is contained in:
parent
dd3b39089f
commit
ab0296d1c1
1 changed files with 19 additions and 3 deletions
|
@ -398,6 +398,8 @@ void Y_IntermissionDrawer(void)
|
||||||
emeraldy = -40;
|
emeraldy = -40;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (emeralds & (1 << em))
|
||||||
{
|
{
|
||||||
if (emeraldbounces < 3)
|
if (emeraldbounces < 3)
|
||||||
{
|
{
|
||||||
|
@ -411,6 +413,20 @@ void Y_IntermissionDrawer(void)
|
||||||
emeraldy = 74;
|
emeraldy = 74;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
emeraldmomy += 1;
|
||||||
|
emeraldy += emeraldmomy;
|
||||||
|
emeraldx += intertic - 6;
|
||||||
|
if (emeraldbounces < 1 && emeraldy > 74)
|
||||||
|
{
|
||||||
|
S_StartSound(NULL, sfx_shldls); // nope
|
||||||
|
emeraldbounces++;
|
||||||
|
emeraldmomy = -(emeraldmomy/2);
|
||||||
|
emeraldy = 74;
|
||||||
|
}
|
||||||
|
}
|
||||||
V_DrawScaledPatch(emeraldx, emeraldy, 0, emeraldpics[0][em]);
|
V_DrawScaledPatch(emeraldx, emeraldy, 0, emeraldpics[0][em]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue