From cda8e15a87e46342a268b5da79f53ff53ebf6cbb Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Sat, 9 May 2026 14:31:15 -0400 Subject: i don't want to write a commit message --- dc/dc.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/dc/dc.c b/dc/dc.c index 6285fd6..a3bfafe 100644 --- a/dc/dc.c +++ b/dc/dc.c @@ -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){ -- cgit v1.3-2-g0d8e