its all coming together!
This commit is contained in:
parent
35db2250f7
commit
2b90112231
6 changed files with 65 additions and 4 deletions
21
games/platformer/platformer_channel.gd
Normal file
21
games/platformer/platformer_channel.gd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
extends Channel
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
offline_channel_cover.visible = channel_mode == Mode.Offline
|
||||
static_channel_cover.visible = channel_mode == Mode.Static
|
||||
|
||||
func start_specific_channel(scene : PackedScene):
|
||||
var new_scene = scene.instantiate()
|
||||
game_viewport.add_child(new_scene)
|
||||
channel_mode = Mode.Online
|
||||
|
||||
func start_channel():
|
||||
var new_scene = channel_scene.instantiate()
|
||||
game_viewport.add_child(new_scene)
|
||||
channel_mode = Mode.Online
|
||||
|
||||
func end_channel():
|
||||
channel_mode = Mode.Static
|
||||
modulate = Color.DIM_GRAY
|
||||
# TODO: a bunch of stuff here
|
||||
#game_viewport.get_child(0).queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue