Skip to content

Commit 9edb9fb

Browse files
committed
Logikfehler in der farb message gefixt und in eine Konstante verlegt
1 parent caf6193 commit 9edb9fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

game/games/testgame/balloonPop.gd

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
extends MarginContainer
33

44
const END_MESSAGE := "You got %s points!"
5+
const COLOR_MESSAGE := "Pop a %s balloon"
56
const STATUS_MESSAGE := "You'r in stage %s/10 and have %s points!"
67

78
var balloon_scene := preload("res://games/testgame/balloon.tscn")
@@ -35,7 +36,7 @@ func _ready():
3536

3637
func start():
3738
var i = _rng.randi_range(0, colors.size() - 1)
38-
_color_label.text = "Pop the %s balloon" % colors.keys()[i]
39+
_color_label.text = COLOR_MESSAGE % colors.keys()[i]
3940
search_color = colors.values()[i]
4041
call_deferred("_spawn")
4142

0 commit comments

Comments
 (0)