场景获取事件:主循环获取事件后,事件被移除,在场景中再次获取将为空。所以在主循环获取时发送事件给场景类。

This commit is contained in:
chicrobot committed 2026-07-26 02:33:06 +08:00
1 parent ca7b23fd2b
commit 15f734b1d5
3 files changed
+24 -4

No files matched your search

+6
View File
@@ -3,3 +3,9 @@ import pygame
class BaseScene:
def __init__(self, screen: pygame.Surface):
self.screen = screen
def update(self):
pass
def handle_event(self, events):
pass