добавил игру аркадия, но не полностью

добавил лягушек в книгу
This commit is contained in:
2023-01-28 11:06:37 +07:00
parent 2950823179
commit c7a8cb521f
7 changed files with 177 additions and 129 deletions
+5
View File
@@ -37,6 +37,8 @@ class Swamp:
scaled_image = pg.transform.smoothscale(myimage, (x, y))
screen.blit(scaled_image, (0, 0))
pg.draw.rect(screen, (255, 255, 255), (0, 0, 40, 40))
pg.draw.rect(screen, (255, 255, 255), (630, 400, 50, 60)) # книга
pg.draw.rect(screen, (132, 7, 8), (630, 400, 50, 55))
pg.draw.rect(screen, (98, 0, 15), (630, 400, 5, 60))
@@ -98,6 +100,9 @@ class Swamp:
self.cell_info = self.board[-1][cell_coords[0]]
self.time_to_close = 10
return cell_coords
if 0 <= mouse_pos[0] <= 40 and 0 <= mouse_pos[1] <= 40:
from modules.minigames.arkady import start
start()
elif self.left_book < mouse_pos[0] < self.right_book:
if self.top_book < mouse_pos[1] < self.down_book and self.book_use is False:
self.book_use = True