diff --git a/TODO.md b/TODO.md deleted file mode 100644 index c552897..0000000 --- a/TODO.md +++ /dev/null @@ -1,59 +0,0 @@ - - - -- Move recipes into a Yaml file that is read, and handles symetry through a Static manager class? - A `FoodItem` has an ID. - Example: - ```yaml - combining: # The combinging of two items, entries always have a list of exactly two items - cooked_burger: - - cooked_burger - - burger_buns - dough: - - flour - - water - - cooking: - cooked_burger: - ingredient: raw_burger - time: 3 - charcoal: - ingredient: cooked_burger - time: 4 - charcoal: - ingredient: toast - time: 2 - - augmenting: # Process of adding an item onto another without changing it's type, but toggling attributes. - cooked_burger: - has_tomato: sliced_tomato - has_cheese: cheese - salad: - has_tomato: sliced_tomato - has_olives: olives - - chopping: - salad: - ingredient: lettuce - work: 50 # Wave arms faster makes work go faster - - rolling: - pie_base: - ingredient: dough - work: 80 - ``` - ```py - on_area_enter(other): - var result = RecipeManager.getCombination(my_id, other_id) - if result: - convertInto(result) - ``` - -- Counters are stations like hobs that convert items by chopping, rolling ect depending on `RecipeManager`, - and only converts items after hand gestures are done enough? - -- Plates are lists of `FoodItems`? - Plate[`Hamburger`] accepts `Chips` => Plate[`Hamburger`, `Chips`] - Plate[`Hamburger`, `Chips`] accepts `Cheese` => Plate[`Hamburger(Cheese=true)`, `Chips`] - The logic for combining has to be expanded for plates. -- Plates have a property `is_dirty` they get after a customer clears the plate, and is disabled after being processed in `Sink` diff --git a/main.gd b/main.gd deleted file mode 100644 index bf81718..0000000 --- a/main.gd +++ /dev/null @@ -1,20 +0,0 @@ -extends Node3D - -const RECIPE_MANAGER = preload("res://RecipeManager.gd") -const GAME_MANAGER = preload("res://GameManager.gd") - -var xr_interface :XRInterface - -func _ready(): - RECIPE_MANAGER.print_all_recipes() - - GAME_MANAGER.meals_in_play = ["hamburger"] - GAME_MANAGER.sides_in_play = ["cube"] - - xr_interface = XRServer.find_interface("OpenXR") - if xr_interface and xr_interface.is_initialized(): - print("OpenXR started :)") - DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_DISABLED) - get_viewport().use_xr = true - else: - print("OpenXR failed to start. Check your headset...") diff --git a/main.gd.uid b/main.gd.uid deleted file mode 100644 index 3a990c4..0000000 --- a/main.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://b4ldkd3ngs0vp diff --git a/main.tscn b/main.tscn deleted file mode 100644 index 11a27ae..0000000 --- a/main.tscn +++ /dev/null @@ -1,96 +0,0 @@ -[gd_scene format=3 uid="uid://clw8ai6kngqxb"] - -[ext_resource type="Script" uid="uid://b4ldkd3ngs0vp" path="res://main.gd" id="1_0xm2m"] -[ext_resource type="PackedScene" uid="uid://j5s5wus7tuhb" path="res://XROrigin.tscn" id="2_h2yge"] -[ext_resource type="Material" uid="uid://cmia50cfqxxo4" path="res://textures/dev_material_3d.tres" id="3_272bh"] -[ext_resource type="PackedScene" uid="uid://e4i6o5oriecx" path="res://items/PickupCube.tscn" id="3_h2yge"] -[ext_resource type="PackedScene" uid="uid://j7caslh27nor" path="res://stations/Hob.tscn" id="3_lquwl"] -[ext_resource type="PackedScene" uid="uid://efaec6ymgabo" path="res://stations/Counter.tscn" id="4_7mycd"] -[ext_resource type="Sky" uid="uid://c1abtpwhdm2d5" path="res://textures/sky/NightSkyHDRI009_16K.tres" id="6_7mycd"] -[ext_resource type="PackedScene" uid="uid://dpot5qie20vf6" path="res://items/burger.tscn" id="8_5vw27"] -[ext_resource type="PackedScene" uid="uid://bp3v1jl8pctro" path="res://Containers/plate.tscn" id="9_kek77"] - -[sub_resource type="BoxShape3D" id="BoxShape3D_vlqg6"] -size = Vector3(5, 0.1, 5) - -[sub_resource type="BoxMesh" id="BoxMesh_24d3s"] -material = ExtResource("3_272bh") -size = Vector3(5, 0.1, 5) - -[sub_resource type="Environment" id="Environment_bvwq1"] -background_mode = 2 -sky = ExtResource("6_7mycd") -reflected_light_source = 2 -tonemap_mode = 3 -ssr_enabled = true -ssao_enabled = true -ssil_enabled = true -sdfgi_enabled = true - -[sub_resource type="BoxShape3D" id="BoxShape3D_kek77"] -size = Vector3(5.1, 10, 0.1) - -[node name="Main" type="Node3D" unique_id=1312265607] -script = ExtResource("1_0xm2m") - -[node name="XROrigin3D" parent="." unique_id=2055526621 instance=ExtResource("2_h2yge")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8820953, 0) - -[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." unique_id=1376644384] -transform = Transform3D(-0.8660254, -0.43301278, 0.24999999, 0.3022632, -0.05510214, 0.9516306, -0.39829266, 0.8997021, 0.17860365, 0, 0, 0) - -[node name="Floor" type="StaticBody3D" parent="." unique_id=122279514] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.05, 0) - -[node name="CollisionShape3D" type="CollisionShape3D" parent="Floor" unique_id=958841648] -shape = SubResource("BoxShape3D_vlqg6") - -[node name="MeshInstance3D" type="MeshInstance3D" parent="Floor/CollisionShape3D" unique_id=1939997056] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00018164515, 0.0006352663, -0.002532661) -mesh = SubResource("BoxMesh_24d3s") - -[node name="Hob" parent="." unique_id=1687971542 instance=ExtResource("3_lquwl")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.29336345, 0.8981018, -1.484) - -[node name="Counter" parent="." unique_id=1487893288 instance=ExtResource("4_7mycd")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.73186195, 0.8981018, -1.484) - -[node name="PickableObject" parent="." unique_id=1675596942 instance=ExtResource("3_h2yge")] -transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, -0.70505303, 1.5761534, -1.0317149) - -[node name="PickableObject2" parent="." unique_id=713087634 instance=ExtResource("3_h2yge")] -transform = Transform3D(1, 0, -2.2351742e-08, -2.9802322e-08, 1.0000001, 0, -2.6077032e-08, 1.4901161e-08, 1, 0.28315204, 1.5607953, -1.0657519) - -[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1177077250] -environment = SubResource("Environment_bvwq1") - -[node name="OmniLight3D" type="OmniLight3D" parent="." unique_id=812168256] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.2856425, 1.4939771, -1.4959787) -visible = false -light_color = Color(1, 0.38431373, 0, 1) -light_energy = 1.784 -shadow_enabled = true - -[node name="burger" parent="." unique_id=1554047278 instance=ExtResource("8_5vw27")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.482068, -1.2252241) - -[node name="Plate" parent="." unique_id=190487773 instance=ExtResource("9_kek77")] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.22971058, 1.699144, -1.8499806) - -[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=82945083] - -[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=1909896160] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, 2.5070028) -shape = SubResource("BoxShape3D_kek77") - -[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D" unique_id=39538720] -transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.688614, -2.5446289) -shape = SubResource("BoxShape3D_kek77") - -[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D" unique_id=1984048740] -transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, -2.525816, 4.688614, -0.018813243) -shape = SubResource("BoxShape3D_kek77") - -[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D" unique_id=1484088721] -transform = Transform3D(-4.371139e-08, 0, -1, 0, 1, 0, 1, 0, -4.371139e-08, 2.525816, 4.688614, -0.018813023) -shape = SubResource("BoxShape3D_kek77")