Proof of concept data disks, pharaoh character

This commit is contained in:
yagigreg committed 2026-10-17 17:02:39 -05:00
1 parent f6d6e287f1
commit 5dd4c27430
14 files changed
+188 -6

No files matched your search

+12 -1
View File
@@ -18,6 +18,8 @@ var dashing = false
var death_threshold = 1000
var coins = 0
var data_disks = []
func _ready() -> void:
DisplayServer.window_set_title("JUMPS EQUALS JUMPS")
@@ -32,7 +34,16 @@ func refresh_jump(new_jumps):
jumps = new_jumps
else:
jumps = 1
func give_disk(disk_num: int) -> void:
data_disks.push_back(disk_num)
func take_disk() -> int:
var disk_num = data_disks.pop_back()
if disk_num:
return disk_num
return 0
func on_teleport():
refresh_jump(1)
teleport_cooldown = 1