Updating character location based on occupied tile
This commit is contained in:
@@ -14,3 +14,9 @@ func get_coord() -> Vector2:
|
||||
float(coord.get("x", 0)),
|
||||
float(coord.get("y", 0))
|
||||
)
|
||||
|
||||
func set_coord(coord: Vector2i) -> void:
|
||||
character["coord"] = {
|
||||
"x": coord.x,
|
||||
"y": coord.y
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user