diff options
| author | iamcheeseman <[email protected]> | 2026-05-09 14:31:15 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-05-09 14:31:15 -0400 |
| commit | cda8e15a87e46342a268b5da79f53ff53ebf6cbb (patch) | |
| tree | 576717b531ea82b1925864730e199a45866e41a4 /dc/dc.c | |
| parent | 9c7ef3d7001d68816c50d514790a78965d65c5aa (diff) | |
i don't want to write a commit message
Diffstat (limited to 'dc/dc.c')
| -rw-r--r-- | dc/dc.c | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -28,21 +28,15 @@ int main(void) ty_log_fatal(TY_ERR_IO, "Failed to read image"); struct ty_image img = ty_create_image(desc.width, desc.height, data); free(data); - + while (ty_is_game_running()) { ty_draw_clear(TY_COLOR_BLACK); - ty_draw_image_ex( - img, - (struct ty_recti){ - 0, 0, - img.width, img.height, - }, - (struct ty_recti){ - 0, 0, - SCREEN_WIDTH, SCREEN_HEIGHT, + for (int y = 0; y < SCREEN_HEIGHT; y += 16) { + for (int x = 0; x < SCREEN_WIDTH; x += 16) { + ty_draw_image(img, ty_vec2i(x, y)); } - ); + } ty_draw_rect( (struct ty_recti){ |
