lets-godot-roguelike
lets-godot-roguelike copied to clipboard
2.4:Re-factor Player
Re-save Player.tscn as res://game/things/Player.tscn
. Clear its script and add a new one (auto-bitch!). Delete the old Player.tscn/.gd...re-save and delete is easier than move and rename in Godot.
Replace script in the new player script with:
extends "res://game/things/thing.gd"
Put in the code here to catch arrow key input and call step( direction )