window scaling

This commit is contained in:
Rendo 2026-03-12 22:02:20 +05:00
commit ad944ba385
4 changed files with 51 additions and 22 deletions

View file

@ -91,7 +91,10 @@ void World::update_grid() {
}
}
void World::set_size(Vector2i size){
this->width = size.x;
this->height = size.y;
}
void create_world_with(float seconds_per_tick){
get_world().seconds_per_tick = seconds_per_tick;