Make viewport follow the player character

This commit is contained in:
Matthias Schiffer 2014-09-23 00:15:36 +02:00
parent 11e77a9d65
commit 3a32a49feb

View file

@ -90,7 +90,8 @@ int main(__attribute__((unused)) int argc, __attribute__((unused)) char *argv[])
ticks = newTicks; ticks = newTicks;
mapView->render(8, 8); std::pair<float, float> pos = map->getPlayerEntity().getPosition();
mapView->render(pos.first, pos.second);
} }
} }