asteroids cooking
This commit is contained in:
parent
d5c27030c5
commit
51be54d905
8 changed files with 73 additions and 15 deletions
|
|
@ -8,9 +8,16 @@ class_name Channel
|
|||
@export var offline_channel_cover : TextureRect
|
||||
@export var game_viewport : SubViewport
|
||||
|
||||
var channel_online : bool
|
||||
|
||||
var channel_online : bool = true
|
||||
|
||||
func _ready() -> void:
|
||||
var new_scene = channel_scene.instantiate()
|
||||
game_viewport.add_child(new_scene)
|
||||
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
offline_channel_cover.visible = !channel_online
|
||||
|
||||
func start_channel():
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://63rik2noj8id"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://63rik2noj8id"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h43mmpjmmir4" path="res://base modules/channel_controller.gd" id="1_r07ln"]
|
||||
[ext_resource type="Texture2D" uid="uid://cyo0wl4dt3td1" path="res://sprites/offline_channel.png" id="2_01b3p"]
|
||||
[ext_resource type="PackedScene" uid="uid://ch1x8pfdu2b1g" path="res://test_game.tscn" id="3_27arb"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_iix04"]
|
||||
viewport_path = NodePath("GameViewport")
|
||||
|
|
@ -46,5 +45,3 @@ texture = ExtResource("2_01b3p")
|
|||
handle_input_locally = false
|
||||
size = Vector2i(640, 360)
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="Game" parent="GameViewport" instance=ExtResource("3_27arb")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue