Lotos Changes

Made Disc handled By Playert

Added Throw State (handle it better soon™️)

Added basic example animation that increases in speed as you move
This commit is contained in:
2023-06-05 19:38:27 -04:00
parent 86c34c9264
commit 2f8ea70f64
7 changed files with 116 additions and 19 deletions

View File

@@ -1,17 +1,15 @@
extends Node3D
const Disc = preload("res://disc.tscn")
var DebugScene = preload("res://DebugUI.tscn").instantiate()
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
get_tree().root.add_child(DebugScene)
func _input(event):
if event.is_action_pressed("player_jump"):
var disc = Disc.instantiate()
disc.position = $Player/Torso/RightArm/Hand.global_position
add_child(disc)
disc.apply_impulse(Vector3(0,10,0))
if event.is_action_pressed("ui_menu"):
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
$CameraCenter.position = $Player.position