[Added] Start of enemies
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
#ifndef GAME_OVER_SCREEN_H
|
||||
#define GAME_OVER_SCREEN_H
|
||||
|
||||
#include "screens/Screen.h"
|
||||
#include "raylib.h"
|
||||
#include "services/AudioService.h"
|
||||
|
||||
class GameOverScreen : public Screen
|
||||
{
|
||||
|
||||
public:
|
||||
GameOverScreen()
|
||||
{
|
||||
AudioService::getInstance().setMusic(EMusic::GAME_OVER);
|
||||
AudioService::getInstance().playMusic();
|
||||
}
|
||||
|
||||
void logic() override
|
||||
{
|
||||
}
|
||||
|
||||
void draw() override
|
||||
{
|
||||
BeginDrawing();
|
||||
// ClearBackground((Color){255,0,0,100});
|
||||
DrawRectangle(0, 0, 640, 544, (Color){255,0,0,65});
|
||||
EndDrawing();
|
||||
}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef VICTORY_SCREEN_H
|
||||
#define VICTORY_SCREEN_H
|
||||
|
||||
#include "raylib.h"
|
||||
#include "screens/Screen.h"
|
||||
#include "services/AssetService.h"
|
||||
#include "entities/TextureWrapper.h"
|
||||
#include "entities/Text.h"
|
||||
#include "entities/Background.h"
|
||||
#include <vector>
|
||||
|
||||
class VictoryScreen : public Screen
|
||||
{
|
||||
|
||||
public:
|
||||
VictoryScreen();
|
||||
void logic() override;
|
||||
void draw() override;
|
||||
|
||||
private:
|
||||
std::vector<Text> text;
|
||||
std::vector<TextureWrapper> textures;
|
||||
std::vector<Text> buttons;
|
||||
int hoveredButton = 0;
|
||||
Background background;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user