player.tscn: scholar of the first bullet casings

This commit is contained in:
Haze Weathers 2023-05-08 01:00:38 -04:00
parent 79cbd62a69
commit bc57ba4171
45 changed files with 1429 additions and 113 deletions

View file

@ -36,7 +36,7 @@ func _physics_process(delta):
if Input.is_action_pressed("debug_move_player"):
var nodes = get_tree().get_nodes_in_group("player")
if not nodes.empty():
var player = nodes[0].get_parent()
var player = nodes[0]
var mouse_position = SceneManager.viewport.get_mouse_position() / SceneManager.viewport_container.rect_scale
mouse_position.x = clamp(mouse_position.x, 8.0, Game.resolution.x - 8.0)
mouse_position.y = clamp(mouse_position.y, 8.0, Game.resolution.y - 8.0)