#pragma once #include "olcPixelGameEngine.h" #include "Animation.h" #include "olcUTIL_Animate2D.h" #include "Monster.h" #include "olcPGEX_TransformedView.h" #include "Player.h" #include "olcUTIL_Camera2D.h" class Crawler : public olc::PixelGameEngine { const vi2d WORLD_SIZE={64,8}; Camera2D camera; TileTransformedView view; Player player; Renderable GFX_Pl_Sheet,GFX_Slime_Sheet,GFX_Circle; public: Crawler(); public: bool OnUserCreate() override; bool OnUserUpdate(float fElapsedTime) override; void InitializeAnimations(); void HandleUserInput(float fElapsedTime); void UpdateCamera(float fElapsedTime); void RenderWorld(float fElapsedTime); };