twn_draw.c: draw_camera_2d()!
This commit is contained in:
		| @@ -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