parent
5ffbda7f46
commit
f7d046f7b6
@ -0,0 +1,38 @@ |
||||
#define OLC_PGE_APPLICATION |
||||
#include "olcPixelGameEngine.h" |
||||
|
||||
using namespace olc; |
||||
|
||||
class FiestaCraftingCalculator : public olc::PixelGameEngine |
||||
{ |
||||
public: |
||||
FiestaCraftingCalculator() |
||||
{ |
||||
sAppName = "Example"; |
||||
} |
||||
|
||||
public: |
||||
bool OnUserCreate() override |
||||
{ |
||||
// Called once at the start, so create things here
|
||||
return true; |
||||
} |
||||
|
||||
bool OnUserUpdate(float fElapsedTime) override |
||||
{ |
||||
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() |
||||
{ |
||||
FiestaCraftingCalculator calculator; |
||||
if (calculator.Construct(256, 240, 4, 4)) |
||||
calculator.Start(); |
||||
|
||||
return 0; |
||||
} |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue