Skip to content

Commit

Permalink
fix(base_level.gd): 适配 block.gd 新接口
Browse files Browse the repository at this point in the history
  • Loading branch information
cutekibry committed Feb 14, 2024
1 parent 0036966 commit 2a08458
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions levels/base_level/base_level.gd
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,15 @@ func init(_chap_id: int, _lvl_id: int) -> void:

new_block.quest_pos = i
if ch != "." and ch != "_":
new_block.is_fixed = true
new_block.set_is_fixed(true)
new_block.set_word(ch)
new_block.set_block_type("CONST")
else:
new_block.is_fixed = false
new_block.set_is_fixed(false)
if ch == "_":
req_pos.append(i)
new_block.set_block_type("GOLDEN")
new_block.set_is_golden_frame(true)
else:
new_block.set_block_type("PIT")
new_block.set_is_golden_frame(false)
new_block.set_position(Vector2(pos, HEIGHT / 2))
pos += sep

Expand Down

0 comments on commit 2a08458

Please sign in to comment.