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

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