From 88d2e734a4dd187bed0c71b0d0980187dc5ad853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E5=A4=96=E4=B9=8B=E7=A5=9E?= Date: Wed, 27 Jul 2022 09:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=A4=A7=E7=9D=A1=E8=8E=B2=E6=9D=83?= =?UTF-8?q?=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/data/map/littleGame_4.json | 2 +- source/constants.py | 8 ++++---- source/tool.py | 5 ++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/resources/data/map/littleGame_4.json b/resources/data/map/littleGame_4.json index 56b76c9..cf9ff5c 100644 --- a/resources/data/map/littleGame_4.json +++ b/resources/data/map/littleGame_4.json @@ -8,7 +8,7 @@ "BucketheadZombie", "SnorkelZombie", "Zomboni"], "inevitable_zombie_list":{"30":["BucketheadZombie"]}, - "card_pool":{ "LilyPad":200, + "card_pool":{ "LilyPad":300, "TorchWood":100, "TallNut":100, "TangleKlep":100, diff --git a/source/constants.py b/source/constants.py index 4f64aa7..06bf8d2 100755 --- a/source/constants.py +++ b/source/constants.py @@ -659,10 +659,10 @@ PLAY = 'play' # 记录本地存储文件初始值 INIT_USERDATA = { - LEVEL_NUM:1, - LITTLEGAME_NUM:1, - LEVEL_COMPLETIONS:0, - LITTLEGAME_COMPLETIONS:0, + LEVEL_NUM: 1, + LITTLEGAME_NUM: 1, + LEVEL_COMPLETIONS: 0, + LITTLEGAME_COMPLETIONS: 0, } # 无穷大常量 diff --git a/source/tool.py b/source/tool.py index af48212..3b06fc0 100755 --- a/source/tool.py +++ b/source/tool.py @@ -97,9 +97,9 @@ class Control(): elif event.type == pg.KEYDOWN: self.keys = pg.key.get_pressed() if event.key == pg.K_f: - SCREEN = pg.display.set_mode(c.SCREEN_SIZE, pg.HWSURFACE|pg.FULLSCREEN) + pg.display.set_mode(c.SCREEN_SIZE, pg.HWSURFACE|pg.FULLSCREEN) elif event.key == pg.K_u: - SCREEN = pg.display.set_mode(c.SCREEN_SIZE) + pg.display.set_mode(c.SCREEN_SIZE) elif event.type == pg.KEYUP: self.keys = pg.key.get_pressed() elif event.type == pg.MOUSEBUTTONDOWN: @@ -116,7 +116,6 @@ class Control(): self.update() pg.display.update() self.clock.tick(self.fps) - print('game over') def get_image(sheet, x, y, width, height, colorkey=c.BLACK, scale=1): image = pg.Surface([width, height])