Преглед изворни кода

Merge pull request #657 from noshbar/minor-game-fixes

3 minor sample game cleanups:
pull/661/head
Ray пре 6 година
committed by GitHub
родитељ
комит
64778e8cd8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 измењених фајлова са 8 додато и 6 уклоњено
  1. +1
    -1
      games/just_do/screens/screen_level06.c
  2. +1
    -1
      games/koala_seasons/screens/screen_gameplay.c
  3. +6
    -4
      games/transmission/screens/screen_ending.c

+ 1
- 1
games/just_do/screens/screen_level06.c Прегледај датотеку

@ -132,7 +132,7 @@ void DrawLevel06Screen(void)
DrawRectangleRec(movingRecs[i], GRAY); DrawRectangleRec(movingRecs[i], GRAY);
} }
if (!done & (mouseOverNum >= 0)) DrawRectangleLines(movingRecs[mouseOverNum].x - 5, movingRecs[mouseOverNum].y - 5, movingRecs[mouseOverNum].width + 10, movingRecs[mouseOverNum].height + 10, Fade(LIGHTGRAY, 0.8f));
if (!done && (mouseOverNum >= 0)) DrawRectangleLines(movingRecs[mouseOverNum].x - 5, movingRecs[mouseOverNum].y - 5, movingRecs[mouseOverNum].width + 10, movingRecs[mouseOverNum].height + 10, Fade(LIGHTGRAY, 0.8f));
if (levelFinished) if (levelFinished)
{ {

+ 1
- 1
games/koala_seasons/screens/screen_gameplay.c Прегледај датотеку

@ -954,7 +954,7 @@ void UpdateGameplayScreen(void)
playerActive = false; playerActive = false;
killer = 5; killer = 5;
} }
else if (CheckCollisionRecs(bee, player) && (state == FINALFORM) && (state != KICK))
else if (CheckCollisionRecs(bee, player) && (state == FINALFORM))
{ {
isHitBee = true; isHitBee = true;
beeVelocity = 8; beeVelocity = 8;

+ 6
- 4
games/transmission/screens/screen_ending.c Прегледај датотеку

@ -110,10 +110,12 @@ void InitEndingScreen(void)
{ {
// WARNING: It fails if the last sentence word has a '.' after space // WARNING: It fails if the last sentence word has a '.' after space
char *title = StringReplace(headline, messageWords[i].text, codingWords[messageWords[i].id]); char *title = StringReplace(headline, messageWords[i].text, codingWords[messageWords[i].id]);
strcpy(headline, title); // Base headline updated
if (title != NULL) free(title);
if (title != NULL)
{
strcpy(headline, title); // Base headline updated
free(title);
}
} }
} }

Loading…
Откажи
Сачувај