SeasonI/main.cpp
sigonasr2 4f33d16db2 Include basic terrain map to start off.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2022-09-08 22:25:26 -05:00

57 lines
873 B
C++

#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;
}