starting the rewrite of forespend.

This commit is contained in:
kin fuyuki 2025-12-25 13:21:58 -03:00
commit d36dc68f8a
No known key found for this signature in database
GPG key ID: 0E4E8E519FB71401
19 changed files with 833 additions and 290 deletions

View file

@ -1,9 +1,35 @@
#include "client.h"
client::client(){}
void client::boot() {}
void client::draw() {}
void client::exit() {}
void client::tick() {}
#include "scenes/mainmenu.h"
client::client() {
}
void client::boot() {
this->framerate=60;
this->tickrate=20;
InitWindow(380,240,"forespend - 0.03h");
// SetConfigFlags();
this->currentscene=new mainmenu();
this->currentscene->boot();
target=LoadRenderTexture(380,240);
}
void client::draw() {
BeginTextureMode(target);
this->currentscene->draw();
EndTextureMode();
BeginDrawing();
ClearBackground(WHITE);
DrawTexturePro(target.texture, {0, 0, 380,240}, {0, 0, (float)GetScreenWidth(), (float)GetScreenHeight()}, {0, 0}, 0, WHITE);
EndDrawing();
}
void client::exit() {
this->currentscene->exit();
delete this->currentscene;
}
void client::tick() {
this->currentscene->tick();
}