Adding death zone to pesticide

This commit is contained in:
Dan Baker 2024-05-05 16:04:07 +01:00
parent 0127257d05
commit e88b2248b3
13 changed files with 177 additions and 8 deletions

View file

@ -0,0 +1,40 @@
[gd_scene load_steps=2 format=3 uid="uid://cwutwy11pityw"]
[sub_resource type="LabelSettings" id="LabelSettings_phhcy"]
font_size = 32
[node name="LevelCompleteComponent" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="BackgroundOverlay" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="MarginContainer/CenterContainer"]
layout_mode = 2
text = "The Bees Are Happy!"
label_settings = SubResource("LabelSettings_phhcy")

View file

@ -0,0 +1,11 @@
extends Control
# Called when the node enters the scene tree for the first time.
func _ready():
visible = false
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
if GameState.level_complete == true:
visible = true