Minor improvements
This commit is contained in:
@ -1,2 +1,7 @@
|
||||
class_name Player
|
||||
extends Character
|
||||
|
||||
func _ready():
|
||||
var controller := PlayerController.new()
|
||||
controller.character = self
|
||||
add_child(controller)
|
@ -1,7 +1,9 @@
|
||||
class_name PlayerController
|
||||
extends Node
|
||||
|
||||
## The character that we're controlling.
|
||||
@export var character: Character
|
||||
|
||||
var move: Vector2
|
||||
|
||||
func _input(_event):
|
||||
|
Reference in New Issue
Block a user