#define OLC_PGE_APPLICATION #include "pixelGameEngine.h" #include #include "Block.h" class Example : public olc::PixelGameEngine { public: Example() { sAppName = "Example"; } public: std::unordered_map Blocks; bool OnUserCreate() override { // Called once at the start, so create things here Blocks[126]=Block(25,10,255,255,255); return true; } bool OnUserUpdate(float fElapsedTime) override { return true; } }; int main() { Example demo; if (demo.Construct(256, 240, 4, 4)) demo.Start(); return 0; }