diff --git a/CProjectTemplate b/CProjectTemplate index 5a7c2f9..95c7c59 100755 Binary files a/CProjectTemplate and b/CProjectTemplate differ diff --git a/main.cpp b/main.cpp index e53f82e..84abd0c 100644 --- a/main.cpp +++ b/main.cpp @@ -12,16 +12,17 @@ public: public: bool OnUserCreate() override { + SetPixelMode(olc::Pixel::ALPHA); // Called once at the start, so create things here + for (int x = 0; x < ScreenWidth(); x++) + for (int y = 0; y < ScreenHeight(); y++) + Draw(x, y, olc::Pixel(rand() % 255, rand() % 255, rand()% 255)); return true; } bool OnUserUpdate(float fElapsedTime) override { // called once per frame - for (int x = 0; x < ScreenWidth(); x++) - for (int y = 0; y < ScreenHeight(); y++) - Draw(x, y, olc::Pixel(rand() % 255, rand() % 255, rand()% 255)); return true; } };