very good progress, next up: tripping and starting the game
This commit is contained in:
parent
8be34b6c12
commit
f16d046a6c
14 changed files with 206 additions and 19 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=12 format=3 uid="uid://ct8axfbvd2wn4"]
|
||||
[gd_scene load_steps=15 format=3 uid="uid://ct8axfbvd2wn4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d2q6xfk8htbyy" path="res://game_logic.gd" id="1_j5hk1"]
|
||||
[ext_resource type="PackedScene" uid="uid://63rik2noj8id" path="res://base modules/test_channel.tscn" id="1_mlf6e"]
|
||||
|
|
@ -11,6 +11,12 @@
|
|||
[ext_resource type="PackedScene" uid="uid://bkabgl6p44c5b" path="res://games/space invaders/space_invaders.tscn" id="9_miq82"]
|
||||
[ext_resource type="PackedScene" uid="uid://drk2fwkv816qv" path="res://games/crafting/crafting.tscn" id="9_udeyl"]
|
||||
[ext_resource type="Texture2D" uid="uid://baf30tscdkl0i" path="res://sprites/tv_remote.png" id="11_j5hk1"]
|
||||
[ext_resource type="Script" uid="uid://dgq2y6wjlye6" path="res://chatboxController.gd" id="11_ueiaa"]
|
||||
[ext_resource type="Script" uid="uid://dnptjh111yd8i" path="res://itemPopup.gd" id="12_daj04"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_daj04"]
|
||||
font_size = 11
|
||||
font_color = Color(1, 1, 1, 0.533333)
|
||||
|
||||
[node name="GameScene" type="Control" node_paths=PackedStringArray("main_camera", "outer_channels", "main_channel")]
|
||||
layout_mode = 3
|
||||
|
|
@ -91,9 +97,10 @@ channel_scene = ExtResource("9_udeyl")
|
|||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
offset = Vector2(320, 180)
|
||||
|
||||
[node name="Chat" type="PanelContainer" parent="."]
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Chat" type="PanelContainer" parent="CanvasLayer" node_paths=PackedStringArray("rich_label")]
|
||||
custom_minimum_size = Vector2(500, 0)
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
|
|
@ -105,59 +112,78 @@ offset_right = 250.0
|
|||
offset_bottom = -11.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
script = ExtResource("11_ueiaa")
|
||||
rich_label = NodePath("MarginContainer/RichTextLabel")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="Chat"]
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/Chat"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 5
|
||||
theme_override_constants/margin_top = 5
|
||||
theme_override_constants/margin_right = 5
|
||||
theme_override_constants/margin_bottom = 5
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="Chat/MarginContainer"]
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="CanvasLayer/Chat/MarginContainer"]
|
||||
layout_mode = 2
|
||||
bbcode_enabled = true
|
||||
text = "Uh oh...."
|
||||
|
||||
[node name="Item Get Popup" type="PanelContainer" parent="."]
|
||||
[node name="Label" type="Label" parent="CanvasLayer/Chat"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 8
|
||||
text = "Press Enter..."
|
||||
label_settings = SubResource("LabelSettings_daj04")
|
||||
|
||||
[node name="Item Get Popup" type="PanelContainer" parent="CanvasLayer" node_paths=PackedStringArray("texture_rect", "label")]
|
||||
custom_minimum_size = Vector2(200, 200)
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -5.0
|
||||
offset_top = -5.0
|
||||
offset_right = 5.0
|
||||
offset_bottom = 5.0
|
||||
offset_left = -100.0
|
||||
offset_top = -100.0
|
||||
offset_right = 100.0
|
||||
offset_bottom = 100.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("12_daj04")
|
||||
texture_rect = NodePath("MarginContainer/VBoxContainer/TextureRect")
|
||||
label = NodePath("MarginContainer/VBoxContainer/Label2")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="Item Get Popup"]
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/Item Get Popup"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 5
|
||||
theme_override_constants/margin_top = 5
|
||||
theme_override_constants/margin_right = 5
|
||||
theme_override_constants/margin_bottom = 5
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Item Get Popup/MarginContainer"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Item Get Popup/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="RichTextLabel" parent="Item Get Popup/MarginContainer/VBoxContainer"]
|
||||
[node name="Label" type="RichTextLabel" parent="CanvasLayer/Item Get Popup/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
bbcode_enabled = true
|
||||
text = "[wave]You got an Item!"
|
||||
fit_content = true
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Item Get Popup/MarginContainer/VBoxContainer"]
|
||||
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Item Get Popup/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("11_j5hk1")
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="Label2" type="RichTextLabel" parent="Item Get Popup/MarginContainer/VBoxContainer"]
|
||||
[node name="Label2" type="RichTextLabel" parent="CanvasLayer/Item Get Popup/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
bbcode_enabled = true
|
||||
text = "[b]TV Remote"
|
||||
fit_content = true
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Label3" type="Label" parent="CanvasLayer/Item Get Popup/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
size_flags_vertical = 8
|
||||
text = "Press Enter..."
|
||||
label_settings = SubResource("LabelSettings_daj04")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue