shard titles pop up in game
This commit is contained in:
parent
a13a9cee10
commit
afa641901c
10 changed files with 108 additions and 8 deletions
|
@ -32,6 +32,17 @@ func _ready():
|
|||
tween.tween_interval(3.0)
|
||||
tween.tween_property(music, "rect_position:x", 256.0, 1.0)
|
||||
|
||||
func shard_popup(shard_number):
|
||||
#Change text to song name
|
||||
var shard_title = $ShardTitle
|
||||
var level = LevelData.levels[Game.current_level]
|
||||
shard_title.text = "§" + str(level.shard_titles[shard_number])
|
||||
yield(get_tree(), "idle_frame")
|
||||
var tween = create_tween()
|
||||
tween.tween_property(shard_title, "rect_position:x", 254.0 - shard_title.rect_size.x, 1.0)
|
||||
tween.tween_interval(3.0)
|
||||
tween.tween_property(shard_title, "rect_position:x", 256.0, 1.0)
|
||||
|
||||
func _physics_process(delta):
|
||||
#Gold Counter
|
||||
gold_counter.text = "%02d" % Game.keys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue