working on platfoermer, rather confused

This commit is contained in:
Tabby 2025-05-16 22:57:02 +10:00
parent 34eb42616d
commit 88cb8f5899
11 changed files with 244 additions and 7 deletions

View file

@ -1,8 +1,18 @@
extends Channel
var platformer_online : bool = true
func _ready() -> void:
#GameManager.end_platformer.connect(end_channel) #maybe?
pass
func _process(delta: float) -> void:
offline_channel_cover.visible = channel_mode == Mode.Offline
static_channel_cover.visible = channel_mode == Mode.Static
if platformer_online :
modulate = Color.WHITE
else:
modulate = Color.DIM_GRAY
func start_specific_channel(scene : PackedScene):
var new_scene = scene.instantiate()
@ -12,11 +22,16 @@ func start_specific_channel(scene : PackedScene):
channel_mode = Mode.Online
func start_channel():
start_specific_channel(channel_scene)
#start_specific_channel(channel_scene)
print("we do a bit of ovveridng")
platformer_online = true
GameManager.start_platformer.emit()
func end_channel():
channel_mode = Mode.Static
modulate = Color.DIM_GRAY
#channel_mode = Mode.Static
#modulate = Color.DIM_GRAY
platformer_online = false
# TODO: a bunch of stuff here
## bro what did you mean when you meant this T_T
#game_viewport.get_child(0).queue_free()