Make broken state for oven

This commit is contained in:
snider committed 2022-08-16 00:30:37 -07:00
1 parent df641d6c3d
commit 921ebc01f2
6 files changed
+109 -5

No files matched your search

+25 -3
View File
@@ -1,8 +1,11 @@
[gd_scene load_steps=7 format=2]
[gd_scene load_steps=11 format=2]
[ext_resource path="res://scenes/item_holder.tscn" type="PackedScene" id=1]
[ext_resource path="res://scripts/oven/oven.gd" type="Script" id=2]
[ext_resource path="res://scenes/coin_machine.tscn" type="PackedScene" id=3]
[ext_resource path="res://scenes/item_dump.tscn" type="PackedScene" id=4]
[ext_resource path="res://scenes/status_light.tscn" type="PackedScene" id=5]
[ext_resource path="res://item_types/repair_kit.tres" type="Resource" id=6]
[sub_resource type="SpatialMaterial" id=1]
albedo_color = Color( 0, 0, 0, 1 )
@@ -14,14 +17,18 @@ bottom_radius = 0.5
height = 0.1
radial_segments = 9
[sub_resource type="BoxShape" id=4]
extents = Vector3( 0.648623, 1, 0.516904 )
[sub_resource type="CubeMesh" id=3]
size = Vector3( 1.362, 0.49, 0.081 )
[node name="oven" type="Spatial"]
[node name="oven" type="Spatial" groups=["damageable"]]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0063355, 0.00319374, -0.00456095 )
script = ExtResource( 2 )
[node name="CSGBox" type="CSGBox" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.497031, 0 )
use_collision = true
width = 1.36825
height = 1.04121
@@ -42,7 +49,10 @@ skeleton = NodePath("../..")
[node name="item_holder" parent="CSGBox/coil" instance=ExtResource( 1 )]
unique_name_in_owner = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00424552, 0.29638, 0.00761187 )
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00424552, 0.0865635, 0.00761187 )
[node name="CollisionShape" type="CollisionShape" parent="CSGBox/coil/item_holder"]
shape = SubResource( 4 )
[node name="backsplash" type="MeshInstance" parent="CSGBox"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00424552, 0.556925, -0.575066 )
@@ -50,10 +60,22 @@ mesh = SubResource( 3 )
skeleton = NodePath("../..")
[node name="coin_machine" parent="." instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.621351, 0 )
[node name="item_dump" parent="." instance=ExtResource( 4 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.733121, 0 )
collision_layer = 8
collision_mask = 0
item_type_0 = ExtResource( 6 )
item_count_0 = 1
[node name="status_light" parent="." instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.232042, 0.967385 )
[node name="cook_timer" type="Timer" parent="."]
one_shot = true
[connection signal="item_changed" from="CSGBox/coil/item_holder" to="." method="_on_item_holder_item_changed"]
[connection signal="coin_requirement_met" from="coin_machine" to="." method="_on_coin_machine_coin_requirement_met"]
[connection signal="item_dump_completed" from="item_dump" to="." method="_on_item_dump_completed"]
[connection signal="timeout" from="cook_timer" to="." method="_on_cook_timer_timeout"]