Added special indicators for Sid, Phoebe, and Ursula.

This commit is contained in:
onpon4 2016-01-08 10:31:01 -05:00
parent 401a306793
commit efc2311f7a
7 changed files with 33 additions and 4 deletions

View File

@ -61,6 +61,11 @@ gfx/targetText.png
Author: Astrid S. de Wijn
License: CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0/>
Notes:
The text in these images was made by rendering the
DejaVu Sans Mono Bold font in the GIMP. smallFont.png uses size 13pt
with anti-aliasing off, while the other images use size 10pt with
anti-aliasing on.
------------------------------------------------------------------------
@ -80,6 +85,18 @@ License: CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0/>
------------------------------------------------------------------------
gfx/phoebeText.png
gfx/sidText.png
gfx/ursulaText.png
Author: onpon4
License: CC0 <http://creativecommons.org/publicdomain/zero/1.0/>
Notes:
Made by rendering the DejaVu Sans Mono Bold font in the GIMP at size
10pt wih anti-aliasing on.
------------------------------------------------------------------------
gfx/face_chris.png
gfx/face_phoebe.png
gfx/face_sid.png

BIN
gfx/phoebeText.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

BIN
gfx/sidText.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

BIN
gfx/ursulaText.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

View File

@ -375,7 +375,10 @@ enum {
SP_ARROW_FRIEND_SOUTHWEST,
SP_ARROW_FRIEND_WEST,
SP_ARROW_FRIEND_NORTHWEST,
SP_TARGET,
SP_INDICATOR_TARGET,
SP_INDICATOR_SID,
SP_INDICATOR_PHOEBE,
SP_INDICATOR_URSULA,
SP_MAX
};

View File

@ -1641,8 +1641,14 @@ static void game_doArrow(int i)
arrowY = MAX(0, MIN(arrowY, screen->h - gfx_sprites[arrow]->h));
screen_blit(gfx_sprites[arrow], arrowX, arrowY);
if (i == engine.targetIndex)
indicator = SP_TARGET;
if (i == ALIEN_SID)
indicator = SP_INDICATOR_SID;
else if (i == ALIEN_PHOEBE)
indicator = SP_INDICATOR_PHOEBE;
else if (i == ALIEN_URSULA)
indicator = SP_INDICATOR_URSULA;
else if (i == engine.targetIndex)
indicator = SP_INDICATOR_TARGET;
if (indicator != -1)
{

View File

@ -227,7 +227,10 @@ void loadGameGraphics()
gfx_sprites[SP_ARROW_FRIEND_SOUTHWEST] = gfx_loadImage("gfx/friendArrowSouthWest.png");
gfx_sprites[SP_ARROW_FRIEND_WEST] = gfx_loadImage("gfx/friendArrowWest.png");
gfx_sprites[SP_ARROW_FRIEND_NORTHWEST] = gfx_loadImage("gfx/friendArrowNorthWest.png");
gfx_sprites[SP_TARGET] = gfx_loadImage("gfx/targetText.png");
gfx_sprites[SP_INDICATOR_TARGET] = gfx_loadImage("gfx/targetText.png");
gfx_sprites[SP_INDICATOR_SID] = gfx_loadImage("gfx/sidText.png");
gfx_sprites[SP_INDICATOR_PHOEBE] = gfx_loadImage("gfx/phoebeText.png");
gfx_sprites[SP_INDICATOR_URSULA] = gfx_loadImage("gfx/ursulaText.png");
gfx_sprites[SP_ESCAPE_POD] = gfx_loadImage("gfx/pod.png");
gfx_sprites[SP_ORE] = gfx_loadImage("gfx/ore1.png");
gfx_sprites[SP_ORE_2] = gfx_loadImage("gfx/ore2.png");