Initialization of the player, now reads the Levels initial gravity and direction. Also re-worked the way switches work.
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
extends Node2D
|
||||
|
||||
@export var dir: int
|
||||
@export var ini_dir: int
|
||||
@export var ini_grav_vec: Vector2
|
||||
#var asp : AudioStreamPlayer
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
#asp = $AudioStreamPlayer
|
||||
pass
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user