Initialization of the player, now reads the Levels initial gravity and direction. Also re-worked the way switches work.
parent
d4e97136b3
commit
88968b3871
@ -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
|
||||
|
||||
@ -1,11 +1,9 @@
|
||||
extends Node
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
extends Area2D
|
||||
|
||||
@export var type: int # 0, end 1 abyss, 2 gravity
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
Loading…
Reference in new issue