forked from team-sg/hero-mark-2
player.tscn: scholar of the first bullet casings
This commit is contained in:
parent
79cbd62a69
commit
bc57ba4171
45 changed files with 1429 additions and 113 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue