22 lines
601 B
C++
22 lines
601 B
C++
#pragma once
|
|
|
|
#include <object/entity.hpp>
|
|
#include <renderer/texture.hpp>
|
|
#include <renderer/font.hpp>
|
|
#include <object/sound.hpp>
|
|
#include <game/gamemanager.hpp>
|
|
#include <game/agame/enemy.hpp>
|
|
#include <game/agame/trash.hpp>
|
|
|
|
namespace Game::AGame {
|
|
GAME_ENTITY(Background)
|
|
public:
|
|
void onWindowResized(int newWidth, int newHeight) override;
|
|
private:
|
|
float mEnemySpawnTimer = 0.f;
|
|
float mTimeToSpawn = 5.f;
|
|
int mW, mH;
|
|
std::shared_ptr<Game::Renderer::Texture> mEnemyTex;
|
|
std::shared_ptr<Game::Renderer::Texture> mTrashTex;
|
|
END_GAME_ENTITY()
|
|
} |