gd: added input addon

This commit is contained in:
2025-05-27 19:20:46 +02:00
parent d8a1604af9
commit c8d8c7ec25
683 changed files with 21608 additions and 2 deletions

View File

@ -0,0 +1,10 @@
## A very simple player script for a player who can only move.
extends Node2D
@export var speed:float = 300
@export var move_action:GUIDEAction
func _process(delta:float) -> void:
# GUIDE already gives us a full 2D axis. We don't need to build it
# ourselves using Input.get_vector.
position += move_action.value_axis_2d.normalized() * speed * delta