Skip to content

Commit 42b0790

Browse files
更新 script_mn0g9yri.py
1 parent a127d9b commit 42b0790

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

script_library/scripts/games/script_mn0g9yri.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
class StickBridgeCN(Scene):
77
def setup(self):
8-
self._init_game()
9-
self._start_new_run()
10-
11-
def _init_game(self):
8+
# 调用父类初始化
9+
super().setup()
10+
11+
# 初始化所有游戏变量
1212
self.sky_color = (0.55, 0.82, 0.98)
1313
self.ocean_color_top = (0.20, 0.62, 0.86)
1414
self.ocean_color_mid = (0.12, 0.45, 0.74)
@@ -45,8 +45,9 @@ def _init_game(self):
4545
self.success = False
4646
self.perfect = False
4747

48-
self.grow_speed = self.size.h * 0.95
49-
self.rotate_speed = math.pi * 1.8
48+
# 降低速度参数:桥的生长和旋转速度
49+
self.grow_speed = self.size.h * 0.3 # 从 0.95 降低到 0.3,更慢的生长速度
50+
self.rotate_speed = math.pi * 0.8 # 从 1.8 降低到 0.8,更慢的旋转速度
5051
self.walk_speed = self.size.w * 0.52
5152
self.fall_g = self.size.h * 2.4
5253

@@ -72,6 +73,13 @@ def _init_game(self):
7273
self.hint_text = '按住蓄力,松手放桥'
7374

7475
self.ui_top_inset = max(26, self.size.h * 0.035)
76+
77+
# 开始游戏
78+
self._start_new_run()
79+
80+
def _init_game(self):
81+
"""已弃用 - 所有初始化已移到 setup() 方法中"""
82+
pass
7583

7684
def _generate_right_pillar(self):
7785
min_gap = self.size.w * 0.18

0 commit comments

Comments
 (0)