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.
SeasonI/main.cpp

57 lines
873 B

#define OLC_PGE_APPLICATION
#include "pixelGameEngine.h"
#define OLC_PGEX_SPLASHSCREEN
#include "splash.h"
#define OLC_SOUNDWAVE
#include "soundwaveEngine.h"
using namespace std;
class Example : public olc::PixelGameEngine
{
public:
Example()
{
sAppName = "Season I: Winters of Loneliness";
}
public:
int frameCount=0;
float elapsedTime=0;
const float TARGET_RATE = 1/60.0;
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
{
while (elapsedTime>TARGET_RATE) {
elapsedTime-=TARGET_RATE;
updateGame();
}
drawGame();
return true;
}
void updateGame(){
};
void drawGame(){
};
};
int main()
{
Example demo;
if (demo.Construct(256, 224, 4, 4))
demo.Start();
return 0;
}