diff options
Diffstat (limited to 'Main.tscn')
-rw-r--r-- | Main.tscn | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/Main.tscn b/Main.tscn new file mode 100644 index 0000000..b57a581 --- /dev/null +++ b/Main.tscn @@ -0,0 +1,133 @@ +[gd_scene load_steps=12 format=2] + +[ext_resource path="res://Main.gd" type="Script" id=1] +[ext_resource path="res://Ground.png" type="Texture" id=2] +[ext_resource path="res://Player.tscn" type="PackedScene" id=3] +[ext_resource path="res://Chicken.tscn" type="PackedScene" id=4] +[ext_resource path="res://fence.tres" type="Material" id=5] + +[sub_resource type="BoxShape" id=1] +extents = Vector3( 25, 1, 25 ) + +[sub_resource type="CubeMesh" id=3] +size = Vector3( 50, 2, 50 ) + +[sub_resource type="SpatialMaterial" id=4] +albedo_color = Color( 0.0352941, 0.301961, 0.00392157, 1 ) +albedo_texture = ExtResource( 2 ) +uv1_triplanar = true + +[sub_resource type="CubeMesh" id=5] + +[sub_resource type="BoxShape" id=7] +extents = Vector3( 5, 1, 0.05 ) + +[sub_resource type="BoxShape" id=6] +extents = Vector3( 0.05, 1, 5 ) + +[node name="Main" type="Node"] +script = ExtResource( 1 ) + +[node name="DirectionalLight" type="DirectionalLight" parent="."] +transform = Transform( -0.586145, -0.773475, 0.241185, -0.715288, 0.633826, 0.294324, -0.380522, 0, -0.924772, 6.17321, 8.45611, -11.9247 ) + +[node name="Ground" type="StaticBody" parent="."] +collision_mask = 0 + +[node name="CollisionShape" type="CollisionShape" parent="Ground"] +shape = SubResource( 1 ) + +[node name="MeshInstance" type="MeshInstance" parent="Ground"] +mesh = SubResource( 3 ) +material/0 = SubResource( 4 ) + +[node name="Fence" type="StaticBody" parent="."] +collision_mask = 0 + +[node name="MeshInstance" type="MeshInstance" parent="Fence"] +transform = Transform( 5, 0, 0, 0, 1, 0, 0, 0, 0.1, 0, 2, -5 ) +mesh = SubResource( 5 ) +material/0 = ExtResource( 5 ) + +[node name="MeshInstance2" type="MeshInstance" parent="Fence"] +transform = Transform( 5, 0, 0, 0, 1, 0, 0, 0, 0.1, 0, 2, 5 ) +mesh = SubResource( 5 ) +material/0 = ExtResource( 5 ) + +[node name="MeshInstance3" type="MeshInstance" parent="Fence"] +transform = Transform( 0.1, 0, 0, 0, 1, 0, 0, 0, 5, -5, 2, 0 ) +mesh = SubResource( 5 ) +material/0 = ExtResource( 5 ) + +[node name="MeshInstance4" type="MeshInstance" parent="Fence"] +transform = Transform( 0.1, 0, 0, 0, 1, 0, 0, 0, 5, 5, 2, 0 ) +mesh = SubResource( 5 ) +material/0 = ExtResource( 5 ) + +[node name="CollisionShape" type="CollisionShape" parent="Fence"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, -5 ) +shape = SubResource( 7 ) + +[node name="CollisionShape2" type="CollisionShape" parent="Fence"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 5 ) +shape = SubResource( 7 ) + +[node name="CollisionShape3" type="CollisionShape" parent="Fence"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 2, 0 ) +shape = SubResource( 6 ) + +[node name="CollisionShape4" type="CollisionShape" parent="Fence"] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 2, 0 ) +shape = SubResource( 6 ) + +[node name="Player" parent="." instance=ExtResource( 3 )] +transform = Transform( 1, 0, 0, 0, 0.968718, 0.248166, 0, -0.248166, 0.968718, 0, 5.05733, 7 ) + +[node name="Chicken" parent="." instance=ExtResource( 4 )] +transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 1.25, 0 ) +rot_chance = 10.0 +flap_chance = 2.0 +squak_chance = 2.0 +peck_chance = 3.0 + +[node name="Chicken2" parent="." instance=ExtResource( 4 )] +transform = Transform( -0.157042, 0, 0.19452, 0, 0.25, 0, -0.19452, 0, -0.157042, 2.50059, 1.25, -2.25906 ) +rot_chance = 10.0 +flap_chance = 2.0 +squak_chance = 2.0 +peck_chance = 3.0 + +[node name="Chicken3" parent="." instance=ExtResource( 4 )] +transform = Transform( 0.181922, 0, -0.171477, 0, 0.25, 0, 0.171477, 0, 0.181922, 0, 1.25, -2.79105 ) +rot_chance = 10.0 +flap_chance = 2.0 +squak_chance = 2.0 +peck_chance = 3.0 + +[node name="Chicken4" parent="." instance=ExtResource( 4 )] +transform = Transform( 0.177798, 0, 0.175749, 0, 0.25, 0, -0.175749, 0, 0.177798, -3.31942, 1.25, 0 ) +rot_chance = 10.0 +flap_chance = 2.0 +squak_chance = 2.0 +peck_chance = 3.0 + +[node name="Chicken5" parent="." instance=ExtResource( 4 )] +transform = Transform( -0.24986, 0, 0.00835422, 0, 0.25, 0, -0.00835422, 0, -0.24986, -1.33975, 1.25, -1.28165 ) +rot_chance = 10.0 +flap_chance = 2.0 +squak_chance = 2.0 +peck_chance = 3.0 + +[node name="UI" type="Control" parent="."] +anchor_right = 1.0 +anchor_bottom = 1.0 + +[node name="Controls" type="Label" parent="UI"] +margin_right = 166.0 +margin_bottom = 82.0 +custom_colors/font_color = Color( 0.00784314, 0.0392157, 0.811765, 1 ) +text = "move: WASD or Left Stick +look: Arrows or Right Stick +up: Space or Right Trigger +down: Ctrl or Left Trigger +Release Cursor: Esc" |