2022-06-12 17:49:42 +00:00
|
|
|
/*
|
|
|
|
- Avoid ~ a game by Canneddonuts
|
|
|
|
- Filename ~ Gameplay.c
|
|
|
|
- Author ~ Return0ne
|
|
|
|
- 2022
|
|
|
|
- *no license*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "../include/raylib.h"
|
|
|
|
|
|
|
|
#include "Screens.h"
|
|
|
|
#include "Controls.h"
|
|
|
|
#include "Gameplay.h"
|
|
|
|
#include "Score.h"
|
2022-06-26 23:43:39 +00:00
|
|
|
#include "Timers.h"
|
2022-06-17 02:17:26 +00:00
|
|
|
#include "Textures.h"
|
2022-06-12 17:49:42 +00:00
|
|
|
|
|
|
|
int score = 0, bestscore = 0;
|
|
|
|
|
2022-07-15 16:59:37 +00:00
|
|
|
void LoadGamplayScreen(void)
|
|
|
|
{
|
|
|
|
fxhit = LoadSound("assets/sfx/hit.wav");
|
|
|
|
player_sprite = LoadTexture("assets/gfx/player.png");
|
|
|
|
enemy_sprite = LoadTexture("assets/gfx/enemy.png");
|
|
|
|
fxfeather = LoadSound("assets/sfx/feather.wav");
|
|
|
|
feather_sprite = LoadTexture("assets/gfx/feather.png");
|
|
|
|
attack_sprite = LoadTexture("assets/gfx/attack.png");
|
|
|
|
firework_sprite = LoadTexture("assets/gfx/firework.png");
|
|
|
|
fxboom = LoadSound("assets/sfx/boom.wav");
|
|
|
|
}
|
|
|
|
|
2022-06-12 17:49:42 +00:00
|
|
|
void InitGameplayScreen(void)
|
|
|
|
{
|
2022-07-04 01:08:45 +00:00
|
|
|
SetMasterVolume(0.5);
|
2022-06-12 17:49:42 +00:00
|
|
|
|
|
|
|
player.currentframe = 0;
|
|
|
|
player.speed = 300.0f;
|
2022-06-29 16:11:37 +00:00
|
|
|
player.hp = PLAYER_HP;
|
2022-07-15 16:59:37 +00:00
|
|
|
if (GI_callcount < 1) {
|
|
|
|
player.frameRec = (Rectangle) {
|
|
|
|
player.hitbox.x,
|
|
|
|
player.hitbox.y,
|
|
|
|
(float) player_sprite.width/3,
|
|
|
|
(float) player_sprite.height
|
|
|
|
};
|
|
|
|
}
|
2022-06-12 17:49:42 +00:00
|
|
|
player.hitbox = (Rectangle) {
|
2022-06-19 21:36:26 +00:00
|
|
|
0,
|
2022-07-08 20:00:38 +00:00
|
|
|
100,
|
2022-06-18 16:10:36 +00:00
|
|
|
(float) player_sprite.width/3,
|
2022-07-15 16:59:37 +00:00
|
|
|
(float) player_sprite.height/2 +5
|
2022-06-12 17:49:42 +00:00
|
|
|
};
|
2022-06-26 23:43:39 +00:00
|
|
|
player_iframeTimer = 0;
|
|
|
|
player_in = false;
|
|
|
|
player.color = RAYWHITE;
|
|
|
|
player_flashtimer = 0;
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-06-17 16:32:35 +00:00
|
|
|
enemy.currentframe = 0;
|
2022-06-29 16:11:37 +00:00
|
|
|
enemy.speed = 2.0f;
|
2022-06-17 16:32:35 +00:00
|
|
|
enemy.hp = 30;
|
2022-07-15 16:59:37 +00:00
|
|
|
if (GI_callcount < 1) {
|
|
|
|
enemy.frameRec = (Rectangle) {
|
|
|
|
enemy.hitbox.x,
|
|
|
|
enemy.hitbox.y,
|
|
|
|
(float) enemy_sprite.width/2,
|
|
|
|
(float) enemy_sprite.height
|
|
|
|
};
|
|
|
|
}
|
2022-06-17 16:32:35 +00:00
|
|
|
enemy.hitbox = (Rectangle) {
|
2022-06-19 21:36:26 +00:00
|
|
|
690,
|
2022-06-17 16:32:35 +00:00
|
|
|
10,
|
2022-07-15 16:59:37 +00:00
|
|
|
(float) enemy_sprite.width/2,
|
2022-06-18 16:10:36 +00:00
|
|
|
(float) enemy_sprite.height
|
2022-06-17 16:32:35 +00:00
|
|
|
};
|
2022-06-26 23:43:39 +00:00
|
|
|
enemy.color = RAYWHITE;
|
2022-07-15 16:59:37 +00:00
|
|
|
enemy_hurt = false;
|
|
|
|
|
2022-06-17 16:32:35 +00:00
|
|
|
|
2022-07-08 20:00:38 +00:00
|
|
|
feather.hitbox = (Rectangle) {
|
2022-06-29 16:11:37 +00:00
|
|
|
GetRandomValue(0, GetScreenWidth() - feather_sprite.width),
|
|
|
|
GetRandomValue(0, GetScreenHeight() - feather_sprite.height),
|
|
|
|
(float) feather_sprite.width,
|
|
|
|
(float) feather_sprite.height
|
2022-06-12 17:49:42 +00:00
|
|
|
};
|
2022-07-08 20:00:38 +00:00
|
|
|
feather.active = true;
|
|
|
|
feather.power = 0;
|
|
|
|
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-06-18 16:10:36 +00:00
|
|
|
for (int i = 0; i < MAX_FIREWORKS; i++) {
|
2022-07-08 20:00:38 +00:00
|
|
|
fireworks[i].speed.x = 300.0f;
|
|
|
|
fireworks[i].active = 0;
|
2022-06-18 16:10:36 +00:00
|
|
|
fireworks[i].hitbox = (Rectangle) {
|
2022-06-19 21:36:26 +00:00
|
|
|
630,
|
|
|
|
GetRandomValue(0, GetScreenHeight()),
|
2022-06-26 23:43:39 +00:00
|
|
|
(float) firework_sprite.width/2 + 10,
|
2022-06-18 16:10:36 +00:00
|
|
|
(float) firework_sprite.height
|
|
|
|
};
|
2022-06-26 23:43:39 +00:00
|
|
|
fireworks[i].color = RAYWHITE;
|
2022-06-18 16:10:36 +00:00
|
|
|
}
|
|
|
|
|
2022-07-08 20:00:38 +00:00
|
|
|
for (int i = 0; i < MAX_SHOOTS; i++) {
|
|
|
|
shoot[i].hitbox = (Rectangle) {
|
|
|
|
player.hitbox.x,
|
|
|
|
player.hitbox.y,
|
|
|
|
(float) attack_sprite.width,
|
|
|
|
(float) attack_sprite.height
|
|
|
|
};
|
|
|
|
shoot[i].speed.x = 7;
|
|
|
|
shoot[i].speed.y = 0;
|
|
|
|
shoot[i].active = false;
|
|
|
|
shoot[i].color = RED;
|
|
|
|
}
|
|
|
|
ammo = 0;
|
|
|
|
|
2022-06-12 17:49:42 +00:00
|
|
|
pause = 0;
|
|
|
|
DebugMode = 0;
|
|
|
|
pauseTimer = 0;
|
2022-07-15 16:59:37 +00:00
|
|
|
score = 0;
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-07-15 16:59:37 +00:00
|
|
|
GI_callcount++;
|
2022-06-12 17:49:42 +00:00
|
|
|
}
|
|
|
|
|
2022-06-26 23:43:39 +00:00
|
|
|
void DamagePlayer(void)
|
|
|
|
{
|
|
|
|
if (!player_in) {
|
|
|
|
player.hp--;
|
2022-07-04 01:08:45 +00:00
|
|
|
if (!mute) PlaySoundMulti(fxhit);
|
2022-06-26 23:43:39 +00:00
|
|
|
player_in = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
player.currentframe = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void UpdateiFrameTimer(void)
|
|
|
|
{
|
|
|
|
if (player_in) {
|
|
|
|
player_iframeTimer++;
|
|
|
|
if (player_flashtimer % 2 == 0) player.color = BLANK;
|
|
|
|
else player.color = RAYWHITE;
|
|
|
|
if (player_iframeTimer >= 60) {
|
|
|
|
player_in = false;
|
|
|
|
player_iframeTimer = 0;
|
|
|
|
}
|
|
|
|
} else player.color = RAYWHITE;
|
2022-07-15 16:59:37 +00:00
|
|
|
|
|
|
|
if (enemy_hurt) {
|
|
|
|
enemy_frametimer++;
|
|
|
|
enemy.currentframe = 1;
|
|
|
|
if (enemy_frametimer >= 60) {
|
|
|
|
enemy_hurt = false;
|
|
|
|
enemy_frametimer = 0;
|
|
|
|
}
|
|
|
|
} else enemy.currentframe = 0;
|
2022-06-26 23:43:39 +00:00
|
|
|
}
|
|
|
|
|
2022-06-12 17:49:42 +00:00
|
|
|
void UpdateGameplayScreen(void)
|
|
|
|
{
|
2022-06-14 00:33:35 +00:00
|
|
|
if (IsKeyPressed(KEY_M)) mute = !mute;
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-06-14 00:33:35 +00:00
|
|
|
if (INPUT_OPTION_PRESSED) pause = !pause;
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-06-14 00:33:35 +00:00
|
|
|
if (!pause) {
|
2022-06-17 16:32:35 +00:00
|
|
|
|
2022-06-14 00:33:35 +00:00
|
|
|
if (INPUT_LEFT_DOWN) player.hitbox.x -= GetFrameTime() * player.speed;
|
|
|
|
if (INPUT_RIGHT_DOWN) player.hitbox.x += GetFrameTime() * player.speed;
|
|
|
|
if (INPUT_UP_DOWN) player.hitbox.y -= GetFrameTime() * player.speed;
|
|
|
|
if (INPUT_DOWN_DOWN) player.hitbox.y += GetFrameTime() * player.speed;
|
|
|
|
if (INPUT_DASH_DOWN) {
|
|
|
|
player.speed = 600.0f;
|
|
|
|
if (player.currentframe != 1) player.currentframe = 2;
|
|
|
|
} else player.speed = 300.0f;
|
2022-07-08 20:00:38 +00:00
|
|
|
if (INPUT_FIRE_PRESSED) {
|
|
|
|
if (ammo > 0) {
|
|
|
|
for (int i = 0; i < MAX_SHOOTS; i++) {
|
|
|
|
if (!shoot[i].active) {
|
|
|
|
ammo--;
|
|
|
|
shoot[i].hitbox.x = player.hitbox.x;
|
|
|
|
shoot[i].hitbox.y = player.hitbox.y + player.hitbox.height/4;
|
|
|
|
shoot[i].active = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-12 17:49:42 +00:00
|
|
|
|
|
|
|
player.sprite_pos = (Vector2){ player.hitbox.x, player.hitbox.y };
|
2022-06-18 16:10:36 +00:00
|
|
|
player.frameRec.x = (float)player.currentframe*(float)player_sprite.width/3;
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-07-08 20:00:38 +00:00
|
|
|
feather.sprite_pos = (Vector2){ feather.hitbox.x, feather.hitbox.y };
|
2022-06-17 16:32:35 +00:00
|
|
|
enemy.sprite_pos = (Vector2){ enemy.hitbox.x, enemy.hitbox.y };
|
2022-07-15 16:59:37 +00:00
|
|
|
enemy.frameRec.x = (float)enemy.currentframe*(float)enemy_sprite.width/2;
|
|
|
|
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-06-26 23:43:39 +00:00
|
|
|
player_flashtimer++;
|
|
|
|
|
2022-06-18 16:10:36 +00:00
|
|
|
for (int i = 0; i < MAX_FIREWORKS; i++) {
|
|
|
|
fireworks[i].sprite_pos = (Vector2){ fireworks[i].hitbox.x, fireworks[i].hitbox.y };
|
|
|
|
}
|
|
|
|
|
2022-07-08 20:00:38 +00:00
|
|
|
for (int i = 0; i < MAX_SHOOTS; i++) {
|
|
|
|
shoot[i].sprite_pos = (Vector2){ shoot[i].hitbox.x, shoot[i].hitbox.y };
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-07-15 16:59:37 +00:00
|
|
|
if (score % 500 == 0) feather.active = true;
|
2022-06-12 17:49:42 +00:00
|
|
|
|
|
|
|
// Player to da wallz collies
|
|
|
|
if ((player.hitbox.x + player.hitbox.width) >= GetScreenWidth()) player.hitbox.x = GetScreenWidth() - player.hitbox.width;
|
|
|
|
else if (player.hitbox.x <= 0) player.hitbox.x = 0;
|
|
|
|
|
|
|
|
if ((player.hitbox.y + player.hitbox.height) >= GetScreenHeight()) player.hitbox.y = GetScreenHeight() - player.hitbox.height;
|
|
|
|
else if (player.hitbox.y <= 0) player.hitbox.y = 0;
|
|
|
|
|
2022-06-26 23:43:39 +00:00
|
|
|
UpdateiFrameTimer();
|
|
|
|
|
2022-06-12 17:49:42 +00:00
|
|
|
if (IsKeyPressed(KEY_D)) DebugMode = !DebugMode;
|
2022-07-08 20:00:38 +00:00
|
|
|
if (IsKeyPressed(KEY_NINE)) ammo = 99;
|
|
|
|
if (IsKeyPressed(KEY_ZERO)) ammo = 0;
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-07-15 16:59:37 +00:00
|
|
|
|
|
|
|
|
2022-06-12 17:49:42 +00:00
|
|
|
if (IsKeyPressed(KEY_R)) {
|
|
|
|
gameReset();
|
|
|
|
currentScreen = TITLE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (player.hp <= 0) {
|
|
|
|
gameReset();
|
|
|
|
currentScreen = GAMEOVER;
|
|
|
|
}
|
|
|
|
|
2022-07-08 20:00:38 +00:00
|
|
|
for (int i = 0; i < MAX_SHOOTS; i++) {
|
|
|
|
if (shoot[i].active) {
|
|
|
|
shoot[i].hitbox.x += shoot[i].speed.x;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (CheckCollisionRecs(shoot[i].hitbox, enemy.hitbox) && shoot[i].active) {
|
|
|
|
// enemy.hp--;
|
2022-07-15 16:59:37 +00:00
|
|
|
enemy_hurt = true;
|
2022-07-08 20:00:38 +00:00
|
|
|
score += 300;
|
|
|
|
if (!mute) PlaySoundMulti(fxboom);
|
|
|
|
shoot[i].active = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (shoot[i].hitbox.x + shoot[i].hitbox.width >= GetScreenWidth() + attack_sprite.width) {
|
|
|
|
shoot[i].active = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (feather.active) {
|
|
|
|
switch (feather.power) {
|
|
|
|
case 0: feather.color = GREEN; break;
|
|
|
|
case 1: feather.color = RED; break;
|
|
|
|
}
|
|
|
|
if (CheckCollisionRecs(player.hitbox, feather.hitbox)) {
|
|
|
|
switch (feather.power) {
|
|
|
|
case 0: player.hp++; feather.power = 1; break;
|
|
|
|
case 1: ammo++; feather.power = 0; break;
|
|
|
|
}
|
2022-07-04 01:08:45 +00:00
|
|
|
if (!mute) PlaySoundMulti(fxfeather);
|
2022-07-08 20:00:38 +00:00
|
|
|
feather.hitbox.x = GetRandomValue(0, GetScreenWidth() - feather_sprite.width);
|
|
|
|
feather.hitbox.y = GetRandomValue(0, GetScreenHeight() - feather_sprite.height);
|
|
|
|
feather.active = false;
|
2022-06-12 17:49:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-17 16:32:35 +00:00
|
|
|
if (enemy.hp != 0) {
|
|
|
|
score++;
|
|
|
|
if (score >= bestscore) bestscore = score;
|
2022-06-17 02:17:26 +00:00
|
|
|
|
2022-06-29 16:11:37 +00:00
|
|
|
enemy.hitbox.y += enemy.speed;
|
2022-06-17 02:17:26 +00:00
|
|
|
|
2022-06-17 16:32:35 +00:00
|
|
|
if (((enemy.hitbox.y + enemy.hitbox.height) >= GetScreenHeight()
|
|
|
|
|| (enemy.hitbox.y <= 0))) enemy.speed *= -1.0f;
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-06-26 23:43:39 +00:00
|
|
|
if (CheckCollisionRecs(player.hitbox, enemy.hitbox)) DamagePlayer();
|
|
|
|
else player.currentframe = 0;
|
2022-06-17 16:32:35 +00:00
|
|
|
}
|
2022-06-12 17:49:42 +00:00
|
|
|
|
2022-06-19 21:36:26 +00:00
|
|
|
for (int i = 0; i < MAX_FIREWORKS; i++) {
|
2022-07-04 01:08:45 +00:00
|
|
|
if (CheckCollisionRecs(player.hitbox, fireworks[i].hitbox)) {
|
|
|
|
DamagePlayer();
|
2022-07-08 20:00:38 +00:00
|
|
|
fireworks[i].active = 0;
|
2022-07-04 01:08:45 +00:00
|
|
|
}
|
2022-06-19 21:36:26 +00:00
|
|
|
|
2022-07-08 20:00:38 +00:00
|
|
|
switch (fireworks[i].active) {
|
2022-06-19 21:36:26 +00:00
|
|
|
case 0:
|
|
|
|
fireworks[i].hitbox.x = enemy.hitbox.x - 20;
|
|
|
|
fireworks[i].hitbox.y = enemy.hitbox.y - 20;
|
|
|
|
|
2022-07-04 01:08:45 +00:00
|
|
|
if (GetRandomValue(0, 50) == 50) {
|
2022-07-08 20:00:38 +00:00
|
|
|
fireworks[i].active = 1;
|
2022-07-04 01:08:45 +00:00
|
|
|
fireworks[i].hitbox.y += enemy.hitbox.height/2;
|
|
|
|
}
|
2022-06-19 21:36:26 +00:00
|
|
|
break;
|
|
|
|
case 1:
|
2022-07-08 20:00:38 +00:00
|
|
|
fireworks[i].hitbox.x += GetFrameTime() * -fireworks[i].speed.x;
|
2022-06-19 21:36:26 +00:00
|
|
|
if (((fireworks[i].hitbox.x + -firework_sprite.width) > GetScreenWidth()
|
2022-07-08 20:00:38 +00:00
|
|
|
|| (fireworks[i].hitbox.x <= -firework_sprite.width))) fireworks[i].active = 0;
|
2022-06-19 21:36:26 +00:00
|
|
|
break;
|
|
|
|
}
|
2022-06-18 16:10:36 +00:00
|
|
|
}
|
2022-06-12 17:49:42 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
else pauseTimer++;
|
|
|
|
}
|
|
|
|
|
|
|
|
void DrawGameplayScreen(void)
|
|
|
|
{
|
2022-06-17 02:17:26 +00:00
|
|
|
DrawTexture(background, 0, 0, RAYWHITE);
|
2022-06-12 17:49:42 +00:00
|
|
|
DrawFPS(10, 430);
|
|
|
|
if (DebugMode) {
|
|
|
|
DrawRectangleRec(player.hitbox, BLUE);
|
2022-07-08 20:00:38 +00:00
|
|
|
DrawRectangleRec(feather.hitbox, WHITE);
|
2022-06-26 23:43:39 +00:00
|
|
|
DrawText(TextFormat("enemy.hitbox.y: %f", enemy.hitbox.y), 10, 200, 20, GREEN);
|
|
|
|
DrawText(TextFormat("player.hitbox.y: %f", player.hitbox.y), 10, 230, 20, GREEN);
|
2022-06-17 16:32:35 +00:00
|
|
|
DrawRectangleRec(enemy.hitbox, BLACK);
|
2022-06-26 23:43:39 +00:00
|
|
|
DrawText(TextFormat("firework_sprite.width: %d", firework_sprite.width), 10, 270, 20, GREEN);
|
2022-06-18 16:10:36 +00:00
|
|
|
for (int i = 0; i < MAX_FIREWORKS; i++) {
|
|
|
|
DrawRectangleRec(fireworks[i].hitbox, BLACK);
|
|
|
|
}
|
2022-07-08 20:00:38 +00:00
|
|
|
for (int i = 0; i < MAX_SHOOTS; i++) {
|
|
|
|
DrawRectangleRec(shoot[i].hitbox, GREEN);
|
|
|
|
DrawText(TextFormat("ammo: %d", ammo), 10, 340, 20, GREEN);
|
|
|
|
}
|
2022-06-26 23:43:39 +00:00
|
|
|
DrawText(TextFormat("player_iframeTimer: %d", player_iframeTimer), 10, 300, 20, GREEN);
|
|
|
|
DrawText(TextFormat("player_in: %d", player_in), 10, 320, 20, GREEN);
|
2022-06-12 17:49:42 +00:00
|
|
|
}
|
2022-07-08 20:00:38 +00:00
|
|
|
if (feather.active) DrawTexture(feather_sprite, feather.sprite_pos.x, feather.sprite_pos.y, feather.color);
|
2022-07-15 16:59:37 +00:00
|
|
|
DrawTextureRec(enemy_sprite, enemy.frameRec, enemy.sprite_pos, enemy.color);
|
2022-06-18 16:10:36 +00:00
|
|
|
for (int i = 0; i < MAX_FIREWORKS; i++) {
|
2022-06-26 23:43:39 +00:00
|
|
|
DrawTexture(firework_sprite, fireworks[i].sprite_pos.x, fireworks[i].sprite_pos.y, fireworks[i].color);
|
2022-06-18 16:10:36 +00:00
|
|
|
}
|
2022-07-08 20:00:38 +00:00
|
|
|
for (int i = 0; i < MAX_SHOOTS; i++) {
|
|
|
|
if (shoot[i].active) DrawTexture(attack_sprite, shoot[i].sprite_pos.x, shoot[i].sprite_pos.y, shoot[i].color);
|
|
|
|
}
|
2022-06-26 23:43:39 +00:00
|
|
|
DrawTextureRec(player_sprite, player.frameRec, player.sprite_pos, player.color);
|
2022-07-08 20:00:38 +00:00
|
|
|
DrawTexture(feather_sprite, 0, 0, GREEN);
|
|
|
|
DrawText(TextFormat("= %i", player.hp), 30, 30, 20, GREEN);
|
|
|
|
DrawTexture(feather_sprite, 70, 0, RED);
|
|
|
|
DrawText(TextFormat("= %i", ammo), 100, 30, 20, RED);
|
|
|
|
// DrawText(TextFormat("ENEMY HP: %i", enemy.hp), GetScreenWidth() - 150, 10, 20, RED);
|
2022-07-15 16:59:37 +00:00
|
|
|
if (score >= 10000) DrawText(TextFormat("SCORE: %i", score), 10, 65, 20, (Color){ 222, 181, 0, 255 });
|
|
|
|
else DrawText(TextFormat("SCORE: %i", score), 10, 65, 20, BLUE);
|
2022-07-04 01:08:45 +00:00
|
|
|
if (pause && ((pauseTimer/30)%2)) DrawText("PAUSED", 330, 190, 30, WHITE);
|
2022-06-12 17:49:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void UnloadGameplayScreen()
|
|
|
|
{
|
2022-07-04 01:08:45 +00:00
|
|
|
UnloadSound(fxhit);
|
|
|
|
UnloadSound(fxfeather);
|
2022-07-08 20:00:38 +00:00
|
|
|
UnloadSound(fxboom);
|
2022-06-18 16:10:36 +00:00
|
|
|
UnloadTexture(player_sprite);
|
2022-06-29 16:11:37 +00:00
|
|
|
UnloadTexture(feather_sprite);
|
2022-06-18 16:10:36 +00:00
|
|
|
UnloadTexture(enemy_sprite);
|
|
|
|
UnloadTexture(firework_sprite);
|
2022-07-08 20:00:38 +00:00
|
|
|
UnloadTexture(attack_sprite);
|
2022-06-12 17:49:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void gameReset(void)
|
|
|
|
{
|
2022-07-15 16:59:37 +00:00
|
|
|
InitGameplayScreen();
|
2022-06-12 17:49:42 +00:00
|
|
|
InitGameoverScreen();
|
|
|
|
}
|