Skip to content

Commit

Permalink
fix(dynamic_bg.gd): 修复初始配色不为 blue 的问题
Browse files Browse the repository at this point in the history
当 ImageLib.theme 初始不为 "blue" 时,dynamic_bg 会由于背景色不为 blue
下的配色,而无法被 main_shader 替换。
  • Loading branch information
cutekibry committed Feb 28, 2024
1 parent e4cdf63 commit ce83c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bg/dynamic_bg/dynamic_bg.gd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func set_victory(v: bool):
func _ready():
var x_offset = 0
var y_offset = 0
self.color = ImageLib.get_palette_color_by_name("darkest")
self.color = ImageLib.get_palette_color_by_info("blue", "darkest")

while HEIGHT + y_offset + (WIDTH / W_STEP) * H_STEP > -50:
spawn(x_offset, y_offset)
Expand Down

0 comments on commit ce83c1e

Please sign in to comment.