Added Godot based server

This commit is contained in:
2024-01-20 22:18:58 +01:00
parent ce699ee6db
commit 1f73d22cd6
28 changed files with 338 additions and 135 deletions

View File

@ -1,18 +1,2 @@
class_name EnemyController
extends CharacterController
@export var character: Character
var move: Vector2
func _input(_event):
move = Input.get_vector("move_left", "move_right", "move_forward", "move_backward")
character.direction = (Global.camera.transform.basis * Vector3(move.x, 0, move.y)).normalized()
if Input.is_action_pressed("jump"):
character.jump()
if Input.is_action_pressed("attack"):
print("Attack")
if Input.is_action_pressed("aim"):
print("Aim")
extends Node