adding gameplay buffer

This commit is contained in:
Noel Berry
2021-01-02 13:51:50 -08:00
parent 7d917a98a2
commit 8db43ce18e
6 changed files with 182 additions and 2 deletions

45
src/main.cpp Normal file
View File

@ -0,0 +1,45 @@
#include <blah.h>
#include "game.h"
using namespace Blah;
using namespace TL;
namespace
{
Game game;
void startup()
{
game.startup();
}
void shutdown()
{
game.shutdown();
}
void update()
{
game.update();
}
void render()
{
game.render();
}
}
int main()
{
Config config;
config.name = "Tiny Link";
config.width = 1280;
config.height = 720;
config.on_startup = startup;
config.on_shutdown = shutdown;
config.on_update = update;
config.on_render = render;
App::run(&config);
}