Merge branch 'main' of http://git.nanoyagi.com/NanoYagi/JumpRopeOldTech
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
commit
b416cd6d4f
1 file changed
+16
@@ -22,14 +22,27 @@ func load_disk(disk_num: int) -> bool:
|
||||
[disk_num, len(disks_wanted) + len(disks_loaded), get_memory_integrity()]
|
||||
)
|
||||
|
||||
if has_finished_initialization():
|
||||
printline(
|
||||
">> System initialization complete. Beginning reactivation sequence."
|
||||
)
|
||||
printline(
|
||||
">> Player: Press [E] or [Space] to return to the outside world."
|
||||
)
|
||||
|
||||
return true
|
||||
|
||||
func get_next_disk_num() -> int:
|
||||
if disks_wanted.is_empty():
|
||||
return 0
|
||||
return disks_wanted.front()
|
||||
|
||||
func get_memory_integrity():
|
||||
return 100.0 / total_integrity * (starting_integrity + len(disks_loaded))
|
||||
|
||||
func has_finished_initialization() -> bool:
|
||||
return disks_wanted.is_empty()
|
||||
|
||||
func open() -> void:
|
||||
visible = true
|
||||
|
||||
@@ -38,4 +51,7 @@ func printline(line: String) -> void:
|
||||
$ConsoleText.text += "\n" + line
|
||||
|
||||
func close() -> void:
|
||||
if has_finished_initialization():
|
||||
get_tree().quit()
|
||||
|
||||
visible = false
|
||||
Reference in new issue
Block a user