fix some small bugs
This commit is contained in:
parent
8037f4f066
commit
b0733bd367
4 changed files with 27 additions and 16 deletions
|
|
@ -2,6 +2,7 @@ extends Control
|
|||
|
||||
var currentStage: String
|
||||
var playing = false
|
||||
var initted = false
|
||||
var index = 0
|
||||
var cam_index = 1
|
||||
var loaded_frames = []
|
||||
|
|
@ -26,12 +27,14 @@ var rotationStages = [
|
|||
]
|
||||
|
||||
func _ready() -> void:
|
||||
if (GlobalVariables.title_dynamic == 1):
|
||||
currentStage = rotationStages[randi() % rotationStages.size()]
|
||||
$SubViewport.add_child(load(Stages.stages_info[currentStage]["scene"]).instantiate())
|
||||
for curtain in Stages.stages_info[currentStage]["curtains"]:
|
||||
for curtain_movement in Stages.stages_info[currentStage]["curtains"][curtain]:
|
||||
get_node(Stages.stages_info[currentStage]["scene_ref_base"] + curtain)._movement_in(curtain_movement + " Up", 100000)
|
||||
if (GlobalVariables.title_dynamic == 1): init()
|
||||
|
||||
func init():
|
||||
currentStage = rotationStages[randi() % rotationStages.size()]
|
||||
$SubViewport.add_child(load(Stages.stages_info[currentStage]["scene"]).instantiate())
|
||||
for curtain in Stages.stages_info[currentStage]["curtains"]:
|
||||
for curtain_movement in Stages.stages_info[currentStage]["curtains"][curtain]:
|
||||
get_node(Stages.stages_info[currentStage]["scene_ref_base"] + curtain)._movement_in(curtain_movement + " Up", 100000)
|
||||
|
||||
var cosmetics_count = 0
|
||||
for cosmetic_subtable in Stages.stages_info[currentStage]["cosmetics"]:
|
||||
|
|
@ -65,6 +68,7 @@ func _ready() -> void:
|
|||
else: unpacked_frame.push_back(false)
|
||||
loaded_frames.push_back(unpacked_frame)
|
||||
playing = true
|
||||
initted = true
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
if (playing):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue