Skip to content

Commit

Permalink
use more visually pleasing titlescreen & menu's
Browse files Browse the repository at this point in the history
  • Loading branch information
joyrider3774 committed Aug 13, 2024
1 parent 5e0f268 commit 58d3c05
Show file tree
Hide file tree
Showing 5 changed files with 444 additions and 234 deletions.
1 change: 1 addition & 0 deletions src/CGame.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ void CGame_UnLoadSound()
void CGame_LoadGraphics()
{
GFXFrameID = CImage_LoadImage("main/frame.png");
GFXOuterFrameID = CImage_LoadImage("main/outerframe.png");
GFXMedal = CImage_LoadImage("main/medal.png");
GFXPrevewID = CImage_LoadImage("gamepreview/gamepreview.png");
GFXPreviewID2 = CImage_LoadImage("gamepreview/gamepreview2.png");
Expand Down
7 changes: 6 additions & 1 deletion src/CImage.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,14 @@ Texture* getTextureFromName(int* Name)
return newTextureHorz(6, 0, 1, 0, 0, 512, 102, 1.0,1.0);
}

if (strcmp(Name, "main/outerframe.png") == 0)
{
return newTextureHorz(6, 1, 1, 0, 922, 512, 102, 1.0,1.0);
}

if (strcmp(Name, "main/medal.png") == 0)
{
return newTextureHorz(6, 1, 1, 513, 0, 77, 122, 1.0,1.0);
return newTextureHorz(6, 2, 1, 513, 0, 77, 122, 1.0,1.0);
}

if (strcmp(Name, "gamepreview/gamepreview.png") == 0)
Expand Down
8 changes: 2 additions & 6 deletions src/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,13 +316,14 @@ int ActiveGameGameStateId;
int RetroCarouselHighScore, RetroCarouselScore;
int[Games][Modes] HighScores;
int[Games][Modes] Scores;

int GameState, SubGameState, GameMode, Game;
float SubStateCounter;
int MusMenu;
int SfxConfirm, SfxBack, SfxSelect, SfxScore, SfxOne, SfxTwo, SfxThree, SfxTimeOver, SfxReadyGo, SfxOneMinute;
float Timer;
int SubStateTime;
int GFXFrameID, GFXMedal, GFXPrevewID, GFXPreviewID2;
int GFXFrameID, GFXOuterFrameID, GFXMedal, GFXPrevewID, GFXPreviewID2;
int CurrentGameMusicID;

game_signature GameSignature;
Expand Down Expand Up @@ -379,11 +380,6 @@ void CGame_AddToScore(int Value)
Scores[Game][GameMode] = 0;
}

void CGame_DrawTitleBackground()
{
clear_screen (color_black);
}

void CGame_LoadHighScoresSettings()
{
int VolumeMusic = 128, VolumeSound = 128;
Expand Down
Loading

0 comments on commit 58d3c05

Please sign in to comment.