twn_draw.c: draw_camera_2d()!
This commit is contained in:
1 parent
d9d7072c86
commit
d9df3f9b04
6 files changed
+63
-3
No files matched your search
@@ -18,6 +18,11 @@ static void ingame_tick(State *state) {
|
||||
input_action("player_jump", "SPACE");
|
||||
input_action("player_run", "LSHIFT");
|
||||
|
||||
draw_camera_2d((Vec2){ scn->player->rect.x + scn->player->rect.w / 2 - ctx.resolution.x / 2,
|
||||
scn->player->rect.y + scn->player->rect.h / 2 - ctx.resolution.y / 2 },
|
||||
0, 1
|
||||
);
|
||||
|
||||
world_drawdef(scn->world);
|
||||
player_calc(scn->player);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user