feat: 1.添加统计面板, 2. 游戏暂停标志 Global.paused
This commit is contained in:
@@ -35,6 +35,9 @@ func _ready() -> void:
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
if Global.game_paused:
|
||||
return
|
||||
|
||||
move_dir = Input.get_vector("move_left", "move_right", "move_up", "move_down")
|
||||
|
||||
var current_velocity := move_dir * stats.speed
|
||||
|
||||
Reference in New Issue
Block a user