changed the amount of shoots on screen from 3 to 5
This commit is contained in:
parent
b897b23b1b
commit
9b2eff2b58
4 changed files with 15 additions and 14 deletions
|
@ -327,6 +327,7 @@ void UpdateGameplayScreen(void)
|
||||||
if (CheckCollisionRecs(shoot[j].hitbox, fireworks[i].hitbox) && shoot[j].active) {
|
if (CheckCollisionRecs(shoot[j].hitbox, fireworks[i].hitbox) && shoot[j].active) {
|
||||||
if (!mute) PlaySoundMulti(enemy.fxhit);
|
if (!mute) PlaySoundMulti(enemy.fxhit);
|
||||||
fireworks[i].active = 0;
|
fireworks[i].active = 0;
|
||||||
|
scoreTimer += 300;
|
||||||
fireworkAmount--;
|
fireworkAmount--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#define GAMEPLAY_HEADER
|
#define GAMEPLAY_HEADER
|
||||||
|
|
||||||
#define MAX_FIREWORKS 10
|
#define MAX_FIREWORKS 10
|
||||||
#define MAX_SHOOTS 3
|
#define MAX_SHOOTS 5
|
||||||
|
|
||||||
struct Actor {
|
struct Actor {
|
||||||
float speed;
|
float speed;
|
||||||
|
|
|
@ -46,14 +46,14 @@ void DrawLevelSelScreen(void)
|
||||||
else DrawText(TextFormat("SCORE: %i", score), 10, 65, 30, BLUE);
|
else DrawText(TextFormat("SCORE: %i", score), 10, 65, 30, BLUE);
|
||||||
|
|
||||||
if (levelSelected == 0) DrawText("1", 100, 220, 60, WHITE);
|
if (levelSelected == 0) DrawText("1", 100, 220, 60, WHITE);
|
||||||
else DrawText("1", 100, 220, 60, BLUE);
|
else DrawText("1", 100, 220, 60, GREEN);
|
||||||
|
|
||||||
if (levelSelected == 1) DrawText("2", 200, 220, 60, WHITE);
|
if (levelSelected == 1) DrawText("2", 200, 220, 60, WHITE);
|
||||||
else if (levelunlocked[1]) DrawText("2", 200, 220, 60, BLUE);
|
else if (levelunlocked[1]) DrawText("2", 200, 220, 60, GREEN);
|
||||||
else DrawText("2", 200, 220, 60, GRAY);
|
else DrawText("2", 200, 220, 60, GRAY);
|
||||||
|
|
||||||
if (levelSelected == 2) DrawText("3", 300, 220, 60, WHITE);
|
if (levelSelected == 2) DrawText("3", 300, 220, 60, WHITE);
|
||||||
else if (levelunlocked[2]) DrawText("3", 300, 220, 60, BLUE);
|
else if (levelunlocked[2]) DrawText("3", 300, 220, 60, RED);
|
||||||
else DrawText("3", 300, 220, 60, GRAY);
|
else DrawText("3", 300, 220, 60, GRAY);
|
||||||
|
|
||||||
// printf("%d, %d, %d\n", levelunlocked[0], levelunlocked[1], levelunlocked[2]);
|
// printf("%d, %d, %d\n", levelunlocked[0], levelunlocked[1], levelunlocked[2]);
|
||||||
|
|
|
@ -37,23 +37,23 @@ void DrawOptionsScreen(void)
|
||||||
{
|
{
|
||||||
DrawTexture(background, 0, 0, DARKGRAY);
|
DrawTexture(background, 0, 0, DARKGRAY);
|
||||||
DrawTextEx(ZadoBold, "OPTIONS", (Vector2){ 300, 20 }, 50, 2, BLUE);
|
DrawTextEx(ZadoBold, "OPTIONS", (Vector2){ 300, 20 }, 50, 2, BLUE);
|
||||||
if (optionsSelected == 0) DrawTextEx(ZadoBold, "Back", (Vector2){ 20, 170 }, 40, 2, WHITE);
|
if (optionsSelected == 0) DrawText("Back", 20, 170, 40, WHITE);
|
||||||
else DrawTextEx(ZadoBold, "Back", (Vector2){ 20, 170 }, 40, 2, BLUE);
|
else DrawText("Back", 20, 170, 40, RED);
|
||||||
if (optionsSelected == -1) {
|
if (optionsSelected == -1) {
|
||||||
DrawTextEx(ZadoBold, "Mute", (Vector2) { 20, 220 }, 40, 2, WHITE);
|
DrawText("Mute", 20, 220, 40, WHITE);
|
||||||
DrawTextEx(ZadoBold, TextFormat("<%i>", mute), (Vector2){ 250, 220 }, 40, 2, WHITE);
|
DrawText(TextFormat("<%i>", mute), 250, 220, 40, WHITE);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
DrawTextEx(ZadoBold, "Mute", (Vector2) { 20, 220 }, 40, 2, BLUE);
|
DrawText("Mute", 20, 220, 40, BLUE);
|
||||||
DrawTextEx(ZadoBold, TextFormat("<%i>", mute), (Vector2){ 250, 220 }, 40, 2, BLUE);
|
DrawText(TextFormat("<%i>", mute), 250, 220, 40, BLUE);
|
||||||
}
|
}
|
||||||
if (optionsSelected == -2) {
|
if (optionsSelected == -2) {
|
||||||
DrawTextEx(ZadoBold, "Fullscreen", (Vector2){ 20, 270 }, 40, 2, WHITE);
|
DrawText("Fullscreen", 20, 270, 40, WHITE);
|
||||||
DrawTextEx(ZadoBold, TextFormat("<%i>", fullscreen), (Vector2){ 250, 270 }, 40, 2, WHITE);
|
DrawText(TextFormat("<%i>", fullscreen), 250, 270, 40, WHITE);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
DrawTextEx(ZadoBold, "Fullscreen", (Vector2){ 20, 270 }, 40, 2, BLUE);
|
DrawText("Fullscreen", 20, 270, 40, BLUE);
|
||||||
DrawTextEx(ZadoBold, TextFormat("<%i>", fullscreen), (Vector2){ 250, 270 }, 40, 2, BLUE);
|
DrawText(TextFormat("<%i>", fullscreen), 250, 270, 40, BLUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue