GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — olcPixelGameEngine/olcExampleProgram.cpp at master · OneLoneCoder/olcPixelGameEngine Expand file tree/ Copy patholcExampleProgram.cppMore file actions 37 lines (31 loc) · 622 Bytes / Copy patholcExampleProgram.cppFile metadata and controls37 lines (31 loc) · 622 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 #define OLC_PGE_APPLICATION #include "olcPixelGameEngine.h" class Example : public olc::PixelGameEngine { public: Example() { sAppName = "Example"; } public: bool OnUserCreate() override { // Called once at the start, so create things here 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; } }; int main() { Example demo; if (demo.Construct(256, 240, 4, 4)) demo.Start(); return 0; } |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |