generated from sigonasr2/CPlusPlusProjectTemplate
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
421 B
19 lines
421 B
2 years ago
|
#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;
|
||
|
std::mt19937 gen;
|
||
|
Board gameBoard;
|
||
|
bool OnUserCreate()override;
|
||
|
bool OnUserUpdate(float fElapsedTime)override;
|
||
|
};
|
||
|
#endif
|