Skip to content

Commit

Permalink
增加动态背景符号多样性
Browse files Browse the repository at this point in the history
  • Loading branch information
cutekibry committed Jan 28, 2024
1 parent dc39198 commit b50c529
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bg/dynamic_bg/dynamic_bg_pattern/dynamic_bg_pattern.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ var velocity : Vector2


func _ready():
$Word1.set_word("=*"[randi_range(0, 1)])
$Word2.set_word("DPb"[randi_range(0, 2)])
if randi() % 2 == 1:
$Word1.set_word("=*"[randi_range(0, 1)])
$Word2.set_word("DPb>"[randi_range(0, 2)])
else:
$Word1.set_word("qd<"[randi_range(0, 2)])
$Word2.set_word("=*"[randi_range(0, 1)])

func _process(delta):
position += velocity * delta
Expand Down

0 comments on commit b50c529

Please sign in to comment.