starting the rewrite of forespend.
This commit is contained in:
parent
2b62c95db4
commit
d36dc68f8a
19 changed files with 833 additions and 290 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue