window scaling
This commit is contained in:
parent
73eedda429
commit
ad944ba385
4 changed files with 51 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue