significant work on game logic

This commit is contained in:
2025-03-21 17:24:21 -04:00
parent d080ac5c3b
commit 0f4083a263
19 changed files with 360 additions and 9 deletions

View File

@@ -1,16 +1,26 @@
[gd_scene load_steps=8 format=3 uid="uid://bqokbcqplgrgp"]
[gd_scene load_steps=12 format=3 uid="uid://bqokbcqplgrgp"]
[ext_resource type="Script" uid="uid://clwubcfa7jndm" path="res://scripts/gamemaster.gd" id="1_sp4xh"]
[ext_resource type="PackedScene" uid="uid://bovc5oog85hic" path="res://assets/models/room/room.glb" id="1_wwb56"]
[ext_resource type="Script" uid="uid://doxajvf15fv27" path="res://scripts/camera.gd" id="2_joe7c"]
[ext_resource type="PackedScene" uid="uid://bw8hdj4fbkpbs" path="res://assets/models/players/player_0.glb" id="3_ofkbr"]
[ext_resource type="PackedScene" uid="uid://b4gm46vd64nt2" path="res://assets/models/players/player_1.glb" id="4_is35i"]
[ext_resource type="PackedScene" uid="uid://cvvi0laaw1yf" path="res://assets/models/players/player_2.glb" id="5_8vhnl"]
[ext_resource type="PackedScene" uid="uid://giuhccerhqit" path="res://assets/models/players/player_3.glb" id="6_8vhnl"]
[ext_resource type="PackedScene" uid="uid://bqo5ur0ipndvs" path="res://sub_scenes/rule_enforcement.tscn" id="7_0rqic"]
[ext_resource type="FontFile" uid="uid://byv0ntqpvosrc" path="res://assets/fonts/18938.ttf" id="9_im5ls"]
[sub_resource type="Environment" id="Environment_wwb56"]
background_mode = 1
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_sp4xh"]
content_margin_left = 30.0
content_margin_top = 30.0
content_margin_right = 30.0
content_margin_bottom = 30.0
[node name="Game" type="Node3D"]
script = ExtResource("1_sp4xh")
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_wwb56")
@@ -53,3 +63,37 @@ transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 4, 0,
transform = Transform3D(1, 0, 0, 0, 0.910084, 0.414423, 0, -0.414423, 0.910084, 0, 3.4199, 0)
fov = 60.0
script = ExtResource("2_joe7c")
[node name="RULE_ENFORCEMENT" parent="Camera3D" instance=ExtResource("7_0rqic")]
unique_name_in_owner = true
transform = Transform3D(-0.0475354, -0.0535728, 0.270738, 0.266451, 0.0626881, 0.0591871, -0.0719257, 0.267636, 0.0403304, 0.0257539, -0.692888, -4.06508)
[node name="UI" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
[node name="PanelContainer" type="PanelContainer" parent="UI"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
theme_override_styles/panel = SubResource("StyleBoxEmpty_sp4xh")
[node name="VBoxContainer" type="VBoxContainer" parent="UI/PanelContainer"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="UI/PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="question" type="Label" parent="UI/PanelContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("9_im5ls")
theme_override_font_sizes/font_size = 100
text = "x * y = "
[node name="answer" type="LineEdit" parent="UI/PanelContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("9_im5ls")
theme_override_font_sizes/font_size = 100
max_length = 5

View File

@@ -1,3 +1,62 @@
[gd_scene format=3 uid="uid://v7vh1typhj0k"]
[gd_scene load_steps=6 format=3 uid="uid://v7vh1typhj0k"]
[node name="Menu" type="Node3D"]
[ext_resource type="FontFile" uid="uid://crvjehkpjh5r4" path="res://assets/fonts/autobahn.ttf" id="1_38vls"]
[ext_resource type="Script" uid="uid://xilsm8v1rt1t" path="res://scripts/menu.gd" id="1_f5540"]
[ext_resource type="FontFile" uid="uid://byv0ntqpvosrc" path="res://assets/fonts/18938.ttf" id="2_1xsbm"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1xsbm"]
content_margin_left = 40.0
content_margin_top = 40.0
content_margin_right = 40.0
content_margin_bottom = 40.0
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_38vls"]
[node name="Menu" 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_f5540")
[node name="PanelContainer" type="PanelContainer" parent="."]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
theme_override_styles/panel = SubResource("StyleBoxEmpty_1xsbm")
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer"]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer/HBoxContainer"]
layout_mode = 2
[node name="title" type="Label" parent="PanelContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("1_38vls")
theme_override_font_sizes/font_size = 120
text = "Extreme Mathematics"
[node name="author" type="Label" parent="PanelContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_1xsbm")
theme_override_font_sizes/font_size = 50
text = "Made by Lexzach (Zach Bowden)"
[node name="HSeparator" type="HSeparator" parent="PanelContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/separation = 180
theme_override_styles/separator = SubResource("StyleBoxEmpty_38vls")
[node name="start_button" type="Button" parent="PanelContainer/HBoxContainer/VBoxContainer"]
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
size_flags_horizontal = 4
mouse_default_cursor_shape = 2
theme_override_fonts/font = ExtResource("1_38vls")
theme_override_font_sizes/font_size = 96
text = "Play"
[connection signal="pressed" from="PanelContainer/HBoxContainer/VBoxContainer/start_button" to="." method="_on_start_button_pressed"]