Make viewport follow the player character
This commit is contained in:
parent
11e77a9d65
commit
3a32a49feb
1 changed files with 2 additions and 1 deletions
|
@ -90,7 +90,8 @@ int main(__attribute__((unused)) int argc, __attribute__((unused)) char *argv[])
|
|||
|
||||
ticks = newTicks;
|
||||
|
||||
mapView->render(8, 8);
|
||||
std::pair<float, float> pos = map->getPlayerEntity().getPosition();
|
||||
mapView->render(pos.first, pos.second);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue