forked from zhiyuan/Project1
场景获取事件:主循环获取事件后,事件被移除,在场景中再次获取将为空。所以在主循环获取时发送事件给场景类。
This commit is contained in:
1 parent
ca7b23fd2b
commit
15f734b1d5
3 files changed
+24
-4
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user