aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-09 14:31:15 -0400
committeriamcheeseman <[email protected]>2026-05-09 14:31:15 -0400
commitcda8e15a87e46342a268b5da79f53ff53ebf6cbb (patch)
tree576717b531ea82b1925864730e199a45866e41a4
parent9c7ef3d7001d68816c50d514790a78965d65c5aa (diff)
i don't want to write a commit message
-rw-r--r--dc/dc.c16
1 files 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){