#ifndef METEOS_H #define METEOS_H #include "pixelGameEngine.h" #include "Board.h" #include #include "ComboOverlay.h" class Meteos : public olc::PixelGameEngine{ public: Meteos(){ sAppName="Meteos"; } float lastBlockSpawn=0.0f; float accumulatedTime=0.0f; std::uniform_int_distribution<> randBlockPos,coinFlip,comboOverlayOffset; std::mt19937 gen; Board gameBoard; bool gameCanRun=true; std::map SPRITES; std::vectorcomboDisplayList; bool OnUserCreate()override; void updateGame(float fElapsedTime); void handleInput(); void drawGame(float fElapsedTime,bool debugView); bool OnUserUpdate(float fElapsedTime)override; void spawnBlocks(float fElapsedTime); void handleBlockGravity(float fElapsedTime); void matchBlocks(); void matchFlyingBlockClumps(); void cleanupBlockClumps(); void matchGroundedBlocks(); void cleanupBlocks(); void handleWarningLevels(float fElapsedTime); void validateSelectedBlock(); void handleComboAnimations(); }; #endif