PUT_CAMERA command
It instantly places the camera centered at the given point.
This commit is contained in:
parent
41b9c38411
commit
2fd8e669c5
@ -171,6 +171,11 @@ static void _app_LevelCommand(App *app, char *cmd) {
|
||||
entity_Commit(app->entity, e);
|
||||
}
|
||||
|
||||
CMD("PUT_CAMERA") {
|
||||
Vec2 center = readvec2();
|
||||
app->camera->cam = box2_FromCenter(center, app->camera->screen.size);
|
||||
}
|
||||
|
||||
CMD("CUTOFF") {
|
||||
app->player->cutoff = TOKEN_DOUBLE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user