Initial
This commit is contained in:
34
scripts/TestNPCController.gd
Normal file
34
scripts/TestNPCController.gd
Normal file
@@ -0,0 +1,34 @@
|
||||
extends "res://scripts/OverworldEntity.gd"
|
||||
|
||||
func interact(interactor) -> void:
|
||||
print("Hello, I am an NPC!")
|
||||
pass
|
||||
|
||||
func updateMovement(delta) -> void:
|
||||
pass
|
||||
# User movement
|
||||
#var dir:Vector2 = Input.get_vector("left", "right", "up", "down");
|
||||
#if(dir.x != 0 or dir.y != 0):
|
||||
#velocity.x = dir.x * speed * delta;
|
||||
#velocity.z = dir.y * speed * delta;
|
||||
#
|
||||
## Update direction
|
||||
#if(dir.x > 0):
|
||||
#if(
|
||||
#dir.y == 0 or
|
||||
#(dir.y < 0 and direction == Direction.SOUTH) or
|
||||
#(dir.y > 0 and direction == Direction.NORTH)
|
||||
#):
|
||||
#direction = Direction.EAST;
|
||||
#elif (dir.x < 0):
|
||||
#if(
|
||||
#dir.y == 0 or
|
||||
#(dir.y < 0 and direction == Direction.SOUTH) or
|
||||
#(dir.y > 0 and direction == Direction.NORTH)
|
||||
#):
|
||||
#direction = Direction.WEST;
|
||||
#elif (dir.y > 0):
|
||||
#direction = Direction.SOUTH;
|
||||
#elif (dir.y < 0):
|
||||
#direction = Direction.NORTH;
|
||||
#pass
|
Reference in New Issue
Block a user