Meteos/Meteos.h

21 lines
501 B
C
Raw Normal View History

#ifndef METEOS_H
#define METEOS_H
#include "pixelGameEngine.h"
#include "Board.h"
#include <random>
class Meteos : public olc::PixelGameEngine{
public:
Meteos(){
sAppName="Meteos";
}
float lastBlockSpawn=0.0f;
std::uniform_int_distribution<> randBlockPos,coinFlip;
std::mt19937 gen;
Board gameBoard;
std::map<std::string,Renderable> SPRITES;
bool onlyOnce=false;
bool OnUserCreate()override;
bool OnUserUpdate(float fElapsedTime)override;
};
#endif