score board
This commit is contained in:
19
script/canvas_load.gd
Normal file
19
script/canvas_load.gd
Normal file
@@ -0,0 +1,19 @@
|
||||
extends CanvasLayer
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
if Input.is_action_just_pressed("back") and $Control/ScrollContainer.visible:
|
||||
$Control/VBoxContainer.visible = true
|
||||
$Control/ScrollContainer.visible = false
|
||||
$"Control/VBoxContainer/HBoxContainer/buttons/1".grab_focus()
|
||||
|
||||
func _on_scores_pressed() -> void:
|
||||
$Control/VBoxContainer.grab_focus()
|
||||
$Control/VBoxContainer.visible = false
|
||||
$Control/ScrollContainer.visible = true
|
||||
1
script/canvas_load.gd.uid
Normal file
1
script/canvas_load.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dkolsh66l73k0
|
||||
@@ -68,7 +68,7 @@ func spawn():
|
||||
var new_global_position = Vector2(distance,0).rotated(randf_range(0.0, 360))
|
||||
new.global_position = new_global_position
|
||||
new.direction = (player.global_position - new_global_position).normalized()
|
||||
new.SPEED = (randf() * 50 + 50) * ( 1 + (global_time / 200))
|
||||
new.SPEED = (randf() * 50 + 50) * ( 1 + (global_time / 100))
|
||||
add_child(new)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user