Add food and yam interaction

This commit is contained in:
snider committed 2022-08-14 05:40:14 -07:00
1 parent 2874c11658
commit d20642e267
41 files changed
+2747 -42

No files matched your search

+8 -3
View File
@@ -1,9 +1,11 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=7 format=2]
[ext_resource path="res://scenes/player.tscn" type="PackedScene" id=1]
[ext_resource path="res://scenes/moon.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/power_station.tscn" type="PackedScene" id=3]
[ext_resource path="res://item_types/raw_yam.tres" type="Resource" id=4]
[ext_resource path="res://scenes/item_holder.tscn" type="PackedScene" id=5]
[ext_resource path="res://item_types/ore.tres" type="Resource" id=6]
[node name="dev_akshay" type="Spatial"]
@@ -17,8 +19,11 @@ time_to_generate = 5.0
[node name="item_holder" parent="." instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -4.04269, 0, -4.32055 )
start_with_item = "Ore"
start_with_item = ExtResource( 4 )
[node name="item_holder2" parent="." instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.179, 0, -4.17727 )
start_with_item = "Roe"
start_with_item = ExtResource( 6 )
[node name="item_holder3" parent="." instance=ExtResource( 5 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0480788, 0, -7.2244 )
+47
View File
@@ -0,0 +1,47 @@
[gd_scene load_steps=5 format=2]
[ext_resource path="res://scenes/item_holder.tscn" type="PackedScene" id=1]
[sub_resource type="CylinderMesh" id=1]
height = 0.1
radial_segments = 8
[sub_resource type="CylinderMesh" id=2]
top_radius = 0.1
bottom_radius = 0.1
height = 0.738
radial_segments = 16
[sub_resource type="CylinderShape" id=3]
height = 0.87498
[node name="dinner_table" type="Spatial"]
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.648164, 0 )
mesh = SubResource( 1 )
[node name="MeshInstance2" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.274821, 0.806474 )
mesh = SubResource( 2 )
[node name="MeshInstance3" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.831715, 0.274821, 0.00579381 )
mesh = SubResource( 2 )
[node name="MeshInstance4" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.012414, 0.274821, -0.832128 )
mesh = SubResource( 2 )
[node name="MeshInstance5" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.809991, 0.274821, 0.00269032 )
mesh = SubResource( 2 )
[node name="StaticBody" type="StaticBody" parent="."]
[node name="CollisionShape" type="CollisionShape" parent="StaticBody"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.439889, 0 )
shape = SubResource( 3 )
[node name="item_holder" parent="." instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.776869, 0 )
+7 -11
View File
@@ -1,15 +1,13 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://scripts/hydroponics_station.gd" type="Script" id=2]
[ext_resource path="res://scenes/item_holder.tscn" type="PackedScene" id=1]
[ext_resource path="res://scripts/hydroponics_station/hydroponics_station.gd" type="Script" id=2]
[ext_resource path="res://scenes/coin_machine.tscn" type="PackedScene" id=3]
[sub_resource type="CylinderMesh" id=1]
height = 0.936
radial_segments = 8
[sub_resource type="CubeMesh" id=3]
size = Vector3( 0.4, 1, 0.4 )
[sub_resource type="ConvexPolygonShape" id=2]
points = PoolVector3Array( -0.0608763, 0.449247, 0.974783, -0.0608763, -0.464612, -0.974783, -0.0608763, 0.449247, -0.974783, 0.974783, -0.464612, -0.0608763, -0.974783, -0.464612, 0.0608763, 0.974783, 0.449247, 0.0608763, 0.0606902, -0.464648, 0.97486, -0.974783, 0.449247, -0.0608763, 0.7071, 0.453517, -0.7071, -0.705748, -0.468, -0.705748, -0.7071, 0.453517, 0.7071, 0.7071, 0.453517, 0.7071, 0.705748, -0.468, 0.705748, -0.705748, -0.468, 0.705748, 0.705748, -0.468, -0.705748, -0.7071, 0.453517, -0.7071, 0.0606902, -0.464648, -0.97486, -0.974783, -0.464612, -0.0608763, 0.974783, -0.464612, 0.0608763, -0.0608763, -0.464612, 0.974783, 0.0606902, 0.449283, 0.97486, 0.0606902, 0.449283, -0.97486, 0.974783, 0.449247, -0.0608763, -0.974783, 0.449247, 0.0608763, -0.642208, -0.46642, 0.73398, -0.642208, -0.46642, -0.73398, 0.578116, -0.464071, -0.760529, 0.578116, -0.464071, 0.760529, 0.760589, -0.464107, 0.577971, -0.760589, -0.464107, 0.577971, -0.760589, -0.464107, -0.577971, 0.760589, -0.464107, -0.577971 )
@@ -20,12 +18,6 @@ script = ExtResource( 2 )
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.372095, 0 )
mesh = SubResource( 1 )
[node name="Yam" type="MeshInstance" parent="MeshInstance"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.886431, 0 )
visible = false
mesh = SubResource( 3 )
skeleton = NodePath("../../..")
[node name="status_label" type="Label3D" parent="MeshInstance"]
unique_name_in_owner = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.737837, 0 )
@@ -40,8 +32,12 @@ shape = SubResource( 2 )
[node name="coin_machine" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.540026, 0, 0, 0, 0.571038, 0, 0, 0, 0.497953, 0, 0.418593, 0 )
[node name="item_holder" parent="." instance=ExtResource( 1 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.991012, 0 )
[node name="grow_timer" type="Timer" parent="."]
one_shot = true
[connection signal="coin_requirement_met" from="coin_machine" to="." method="_on_coin_machine_coin_requirement_met"]
[connection signal="timeout" from="grow_timer" to="." method="_on_Timer_timeout"]
[connection signal="item_changed" from="item_holder" to="." method="_on_item_holder_item_changed"]
[connection signal="timeout" from="grow_timer" to="." method="_on_grow_timer_timeout"]
+2 -6
View File
@@ -1,15 +1,11 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=2 format=2]
[ext_resource path="res://scripts/item.gd" type="Script" id=1]
[sub_resource type="CylinderMesh" id=1]
height = 1.0
[node name="item" type="Spatial"]
script = ExtResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="."]
mesh = SubResource( 1 )
[node name="visual" type="Spatial" parent="."]
[node name="ItemLabel" type="Label3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0275149, 0.721019, 1.58046 )
+59
View File
@@ -0,0 +1,59 @@
[gd_scene load_steps=7 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]
[sub_resource type="SpatialMaterial" id=1]
albedo_color = Color( 0, 0, 0, 1 )
[sub_resource type="CylinderMesh" id=2]
material = SubResource( 1 )
top_radius = 0.5
bottom_radius = 0.5
height = 0.1
radial_segments = 9
[sub_resource type="CubeMesh" id=3]
size = Vector3( 1.362, 0.49, 0.081 )
[node name="oven" type="Spatial"]
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="."]
use_collision = true
width = 1.36825
height = 1.04121
depth = 1.24388
[node name="CSGBox2" type="CSGBox" parent="CSGBox"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.000755012, -0.038668, 0.154754 )
operation = 2
width = 1.20449
height = 0.784214
depth = 1.29741
[node name="coil" type="MeshInstance" parent="CSGBox"]
unique_name_in_owner = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00424552, 0.556925, -0.00761187 )
mesh = SubResource( 2 )
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 )
[node name="backsplash" type="MeshInstance" parent="CSGBox"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00424552, 0.556925, -0.575066 )
mesh = SubResource( 3 )
skeleton = NodePath("../..")
[node name="coin_machine" parent="." instance=ExtResource( 3 )]
[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="timeout" from="cook_timer" to="." method="_on_cook_timer_timeout"]
+19 -5
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=8 format=2]
[ext_resource path="res://scripts/Player.gd" type="Script" id=1]
[ext_resource path="res://assets/protodungman/DungMan.glb" type="PackedScene" id=2]
@@ -11,11 +11,23 @@ extents = Vector3( 0.25, 0.25, 1 )
radius = 0.210213
height = 0.85525
[sub_resource type="Gradient" id=4]
offsets = PoolRealArray( 0, 0.776119, 1 )
colors = PoolColorArray( 0, 0, 0, 1, 0, 0, 0, 0.429105, 0, 0, 0, 0 )
[sub_resource type="GradientTexture2D" id=5]
gradient = SubResource( 4 )
fill_to = Vector2( 0, 1 )
[node name="Player" type="KinematicBody"]
script = ExtResource( 1 )
[node name="DungMan" parent="." instance=ExtResource( 2 )]
[node name="ItemSpawn" type="Spatial" parent="DungMan"]
unique_name_in_owner = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.6244, 0 )
[node name="TriggerVolume" type="Area" parent="DungMan"]
unique_name_in_owner = true
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.630386 )
@@ -32,17 +44,19 @@ shape = SubResource( 2 )
transform = Transform( 1, 0, 0, 0, 0.5, 0.866025, 0, -0.866025, 0.5, 0, 5.44166, 3.39746 )
fov = 50.0
[node name="ItemSpawn" type="Spatial" parent="."]
[node name="UI" type="CanvasLayer" parent="."]
[node name="Control" type="Control" parent="UI"]
margin_right = 40.0
margin_bottom = 40.0
[node name="TextureRect" type="TextureRect" parent="UI/Control"]
margin_right = 565.0
margin_bottom = 164.0
texture = SubResource( 5 )
expand = true
[node name="MarginContainer" type="MarginContainer" parent="UI/Control"]
margin_right = 128.0
margin_bottom = 128.0
custom_constants/margin_right = 16
custom_constants/margin_top = 16
custom_constants/margin_left = 16