wild jam prototype
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dcpeowc6xcfcv"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dcpeowc6xcfcv"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d32ory5gus4lm" path="res://assets/dot.png" id="1_tsiui"]
|
||||
[ext_resource type="Script" path="res://scripts/hud.gd" id="1_yk6cu"]
|
||||
@@ -7,6 +7,13 @@
|
||||
[ext_resource type="Theme" uid="uid://ewgo3qi2xs54" path="res://data/themes/green_progress_bar_theme.tres" id="3_wvu2t"]
|
||||
[ext_resource type="Theme" uid="uid://dm1sx57hw07cn" path="res://data/themes/blue_progress_bar_theme.tres" id="4_n8d17"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_qj638"]
|
||||
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_w5aj4"]
|
||||
gradient = SubResource("Gradient_qj638")
|
||||
width = 64
|
||||
|
||||
[node name="HUD" type="CanvasLayer"]
|
||||
script = ExtResource("1_yk6cu")
|
||||
|
||||
@@ -14,10 +21,10 @@ script = ExtResource("1_yk6cu")
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 16.0
|
||||
offset_top = -184.0
|
||||
offset_right = 64.0
|
||||
offset_bottom = -24.0
|
||||
offset_left = 8.0
|
||||
offset_top = -258.0
|
||||
offset_right = 80.0
|
||||
offset_bottom = -8.0
|
||||
grow_vertical = 0
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
|
||||
@@ -30,6 +37,26 @@ theme_override_constants/margin_bottom = 2
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="AllianceContainer" type="VBoxContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="AllianceText" type="Label" parent="PanelContainer/MarginContainer/VBoxContainer/AllianceContainer"]
|
||||
layout_mode = 2
|
||||
text = "Alliance"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="PanelContainer/MarginContainer/VBoxContainer/AllianceContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 2
|
||||
theme_override_constants/margin_top = 2
|
||||
theme_override_constants/margin_right = 2
|
||||
theme_override_constants/margin_bottom = 2
|
||||
|
||||
[node name="AllianceTexture" type="TextureRect" parent="PanelContainer/MarginContainer/VBoxContainer/AllianceContainer/MarginContainer"]
|
||||
custom_minimum_size = Vector2(0, 8)
|
||||
layout_mode = 2
|
||||
texture = SubResource("GradientTexture1D_w5aj4")
|
||||
|
||||
[node name="LivesContainer" type="GridContainer" parent="PanelContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
columns = 3
|
||||
@@ -106,3 +133,28 @@ theme_override_constants/margin_right = 8
|
||||
[node name="EntityCountLabel" type="Label" parent="EntityCountContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
text = "Entity Count: 0"
|
||||
|
||||
[node name="RocketSpawnedToast" type="PanelContainer" parent="."]
|
||||
visible = false
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -20.0
|
||||
offset_top = -20.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = 20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Label" type="Label" parent="RocketSpawnedToast"]
|
||||
layout_mode = 2
|
||||
text = "Rocket has been placed!
|
||||
Find it to escape!"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Timer" type="Timer" parent="RocketSpawnedToast"]
|
||||
wait_time = 2.0
|
||||
|
||||
[connection signal="timeout" from="RocketSpawnedToast/Timer" to="." method="_on_timer_timeout"]
|
||||
|
||||
106
scene/main_menu.tscn
Normal file
106
scene/main_menu.tscn
Normal file
@@ -0,0 +1,106 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bx16w4v1gvjjm"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/main_menu.gd" id="1_wb16r"]
|
||||
[ext_resource type="Texture2D" uid="uid://c2mrfb6olx5xg" path="res://assets/wild_jam/Et-tu-Brute.png" id="2_i550s"]
|
||||
[ext_resource type="Texture2D" uid="uid://bkugnjwg6m3ef" path="res://assets/wild_jam/inside-box.png" id="3_jsic8"]
|
||||
|
||||
[node name="MainMenu" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_wb16r")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="MarginContainer2" type="MarginContainer" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/margin_top = 150
|
||||
theme_override_constants/margin_bottom = 150
|
||||
|
||||
[node name="Betrayal" type="TextureRect" parent="HBoxContainer/MarginContainer2"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_i550s")
|
||||
expand_mode = 3
|
||||
stretch_mode = 5
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/margin_left = 64
|
||||
theme_override_constants/margin_right = 64
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Spacer" type="Control" parent="HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.5
|
||||
|
||||
[node name="Label" type="Label" parent="HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(250, 0)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 6
|
||||
theme_override_font_sizes/font_size = 64
|
||||
text = "RGBetrayal"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Spacer2" type="Control" parent="HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.5
|
||||
|
||||
[node name="WinLossLabel" type="Label" parent="HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Spacer5" type="Control" parent="HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.5
|
||||
|
||||
[node name="PlayButton" type="Button" parent="HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
text = "Play"
|
||||
|
||||
[node name="Spacer3" type="Control" parent="HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.5
|
||||
|
||||
[node name="QuitButton" type="Button" parent="HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
text = "Quit"
|
||||
|
||||
[node name="Spacer4" type="Control" parent="HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.5
|
||||
|
||||
[node name="MarginContainer3" type="MarginContainer" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/margin_top = 150
|
||||
theme_override_constants/margin_bottom = 150
|
||||
|
||||
[node name="ThinkInsideTheBox" type="TextureRect" parent="HBoxContainer/MarginContainer3"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
texture = ExtResource("3_jsic8")
|
||||
expand_mode = 3
|
||||
stretch_mode = 5
|
||||
|
||||
[connection signal="pressed" from="HBoxContainer/MarginContainer/VBoxContainer/PlayButton" to="." method="_on_play_button_pressed"]
|
||||
[connection signal="pressed" from="HBoxContainer/MarginContainer/VBoxContainer/QuitButton" to="." method="_on_quit_button_pressed"]
|
||||
@@ -262,3 +262,10 @@ buff = ExtResource("6_ll7oj")
|
||||
[node name="HUD" parent="." instance=ExtResource("4_7uel4")]
|
||||
|
||||
[node name="EntityContainer" type="Node" parent="."]
|
||||
|
||||
[node name="RocketTimer" type="Timer" parent="."]
|
||||
wait_time = 45.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="RocketTimer" to="." method="_on_rocket_timer_timeout"]
|
||||
|
||||
42
scene/rocket.tscn
Normal file
42
scene/rocket.tscn
Normal file
@@ -0,0 +1,42 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dktsl7nrpdhkd"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d0hl8bxqr6pit" path="res://assets/rocket.png" id="1_rmsjo"]
|
||||
[ext_resource type="Script" path="res://scripts/rocket.gd" id="1_y7fw2"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_l5sta"]
|
||||
radius = 32.0
|
||||
|
||||
[node name="Rocket" type="Node2D"]
|
||||
script = ExtResource("1_y7fw2")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("1_rmsjo")
|
||||
|
||||
[node name="CollectionZone" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CollectionZone"]
|
||||
shape = SubResource("CircleShape2D_l5sta")
|
||||
|
||||
[node name="LeaveTimer" type="Timer" parent="."]
|
||||
|
||||
[node name="CountdownLabel" type="Label" parent="."]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -20.0
|
||||
offset_top = -11.5
|
||||
offset_right = 20.0
|
||||
offset_bottom = 11.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "5"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="body_entered" from="CollectionZone" to="." method="_on_collection_zone_body_entered"]
|
||||
[connection signal="body_exited" from="CollectionZone" to="." method="_on_collection_zone_body_exited"]
|
||||
[connection signal="timeout" from="LeaveTimer" to="." method="_on_leave_timer_timeout"]
|
||||
Reference in New Issue
Block a user