generated from sigonasr2/CPlusPlusProjectTemplate
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
599 B
38 lines
599 B
2 years ago
|
#define OLC_PGE_APPLICATION
|
||
|
#include "pixelGameEngine.h"
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
2 years ago
|
class SeasonsOfLoneliness : public olc::PixelGameEngine
|
||
2 years ago
|
{
|
||
|
public:
|
||
2 years ago
|
SeasonsOfLoneliness()
|
||
2 years ago
|
{
|
||
2 years ago
|
sAppName = "Seasons of Loneliness";
|
||
2 years ago
|
}
|
||
|
|
||
|
public:
|
||
|
bool OnUserCreate() override
|
||
|
{
|
||
|
SetPixelMode(olc::Pixel::ALPHA);
|
||
|
ConsoleCaptureStdOut(true);
|
||
|
// Called once at the start, so create things here
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
bool OnUserUpdate(float fElapsedTime) override
|
||
|
{
|
||
|
// called once per frame
|
||
|
return true;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
int main()
|
||
|
{
|
||
2 years ago
|
SeasonsOfLoneliness demo;
|
||
2 years ago
|
if (demo.Construct(256, 240, 4, 4))
|
||
|
demo.Start();
|
||
|
|
||
|
return 0;
|
||
|
}
|