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:
14
3d_test.gd
14
3d_test.gd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user