making launcher close when open game
This commit is contained in:
parent
da2a639c04
commit
2b62c95db4
2 changed files with 26 additions and 11 deletions
|
|
@ -2,13 +2,13 @@
|
|||
#include <raylib.h>
|
||||
#include <enginend/scenes/node2d.h>
|
||||
using namespace enginend;
|
||||
class test:public program {
|
||||
class launcher:public program {
|
||||
public:
|
||||
|
||||
bool vsync = true;
|
||||
scene s;
|
||||
const char* CONF() final{return "test.tdf";}
|
||||
test(){};
|
||||
launcher(){};
|
||||
void boot() override {
|
||||
SetConfigFlags(FLAG_VSYNC_HINT);
|
||||
InitWindow(500,500,"test");
|
||||
|
|
@ -42,7 +42,7 @@ public:
|
|||
tiny::ErrorLevel tiny::level{6};
|
||||
int main(int argc, char *argv[]) {
|
||||
tiny::startup((char*)"enginend test",(char*)"1.0");
|
||||
test e;
|
||||
launcher e;
|
||||
e.boot();
|
||||
while (!WindowShouldClose()) {
|
||||
e.tick();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue