making launcher close when open game

This commit is contained in:
kin fuyuki 2025-12-24 15:01:59 -03:00
commit 2b62c95db4
No known key found for this signature in database
GPG key ID: 0E4E8E519FB71401
2 changed files with 26 additions and 11 deletions

View file

@ -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();