Partial rendering of maps through viewports works now (this allows us to scroll the map under a camera)

This commit is contained in:
2024-12-08 17:46:51 -05:00
parent b92cd636e2
commit 7ae5096d1a
2 changed files with 17 additions and 10 deletions

View File

@@ -128,7 +128,7 @@ SDL_AppResult SDL_AppEvent(void *appstate, SDL_Event *event)
SDL_AppResult SDL_AppIterate(void *appstate)
{
SDL_FRect dest;
SDL_FRect viewport = {.x = 0, .y = 0, .w = 640, .h = 480};
SDL_FRect viewport = {.x = 50, .y = 50, .w = 640, .h = 480};
b2Vec2 position;
actor_update(&player);