From f0405180f6f0091d0f26cccf9adfb0d2d0ac2fb4 Mon Sep 17 00:00:00 2001 From: p57492168 <2577192526@qq.com> Date: Wed, 22 Jun 2022 23:01:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Palette/env/engine.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Palette/env/engine.py b/Palette/env/engine.py index 5904b47..8eedb22 100644 --- a/Palette/env/engine.py +++ b/Palette/env/engine.py @@ -57,7 +57,7 @@ class SeaEnvEngine(object): self.max_angle, self.min_angle = None, None - + self.crashed = False self.finished = False self.terminate = False @@ -100,7 +100,6 @@ class SeaEnvEngine(object): self.ship_img = pygame.transform.scale( self.ship_img, (self.ship_radius * 4, self.ship_radius * 4)) """ 2. init gymunk """ - # physics stuff self.space = pymunk.Space() self.space.gravity = pymunk.Vec2d(0., 0.) # create bounds