From ac7ba6dc94f6eb2d8cf9092391714247bb947148 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Tue, 17 Dec 2024 11:11:59 +0300 Subject: Fix embarrassing bug - The position and size of the source rectangle for animations was dependent on the display scale, this is incredibly stupid and shouldn't have happened. --- Week1-Pacman/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Week1-Pacman/src/main.c') diff --git a/Week1-Pacman/src/main.c b/Week1-Pacman/src/main.c index 895c359..e4113be 100644 --- a/Week1-Pacman/src/main.c +++ b/Week1-Pacman/src/main.c @@ -32,7 +32,7 @@ int main() { .initial_angle = 90.0 * i, .initial_frame_count = 3, - .initial_frame_times = (float[]){0.10, 0.10, 0.10}, + .initial_frame_times = (float[]){0.05, 0.05, 0.05}, .initial_frames = (SDL_Rect[]) { { .x = 0, -- cgit v1.2.3