From 6dc76c09acc1cc31f265eb4e17a173cf60e644d5 Mon Sep 17 00:00:00 2001 From: CharlesPikachu <1159254961@qq.com> Date: Mon, 4 Nov 2019 18:23:17 +0800 Subject: [PATCH] maybe it is ocd... --- Game3/Game3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Game3/Game3.py b/Game3/Game3.py index 8ca9dc5..ba8d193 100644 --- a/Game3/Game3.py +++ b/Game3/Game3.py @@ -229,8 +229,8 @@ def main(): x_pos = i // num_cols y_pos = i % num_cols rect = pygame.Rect(y_pos*cell_width, x_pos*cell_height, cell_width, cell_height) - ImgArea = pygame.Rect((game_board[i]%num_cols)*cell_width, (game_board[i]//num_cols)*cell_height, cell_width, cell_height) - screen.blit(game_img_used, rect, ImgArea) + img_area = pygame.Rect((game_board[i]%num_cols)*cell_width, (game_board[i]//num_cols)*cell_height, cell_width, cell_height) + screen.blit(game_img_used, rect, img_area) for i in range(num_cols+1): pygame.draw.line(screen, BLACK, (i*cell_width, 0), (i*cell_width, game_img_used_rect.height)) for i in range(num_rows+1):