Diffstat (limited to 'dots/plain_dot.gd')
| -rw-r--r-- | dots/plain_dot.gd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dots/plain_dot.gd b/dots/plain_dot.gd index 56f7f77..5a02586 100644 --- a/dots/plain_dot.gd +++ b/dots/plain_dot.gd @@ -1,6 +1,10 @@ extends dot +var color : Color + func _ready(): randomize() var i = randi() % Leveldata.dot_colors.size() - $dotsprite.set_self_modulate(Leveldata.dot_colors[i]) + var n_color = Leveldata.dot_colors[i] + $dotsprite.set_self_modulate(n_color) + color = n_color |