1
Fork 0
mirror of https://github.com/Steffo99/cinnos.git synced 2024-11-25 09:34:21 +00:00
cinnos/Root.tscn

275 lines
12 KiB
Text
Raw Normal View History

2023-11-25 17:49:45 +00:00
[gd_scene load_steps=31 format=3 uid="uid://4whij2hmts0t"]
2023-11-25 12:14:15 +00:00
[ext_resource type="Script" path="res://Player.gd" id="1_wt4gx"]
2023-11-25 12:24:15 +00:00
[ext_resource type="Material" uid="uid://dondfiavgo2ws" path="res://Unshaded.material" id="2_upp15"]
2023-11-25 15:28:03 +00:00
[ext_resource type="Texture2D" uid="uid://uogmi4pvp64t" path="res://addons/bisio.png" id="3_27tel"]
2023-11-25 14:09:54 +00:00
[ext_resource type="FontFile" uid="uid://cseshyj4yw2f5" path="res://fonts/FiraSans-Medium.ttf" id="3_p3wyc"]
2023-11-25 13:00:43 +00:00
[ext_resource type="Script" path="res://GameTimer.gd" id="3_y362g"]
2023-11-25 14:15:25 +00:00
[ext_resource type="Script" path="res://TextBox.gd" id="4_gpkq6"]
[ext_resource type="FontFile" uid="uid://qf3uxmta6lpw" path="res://fonts/FiraCode-Medium.ttf" id="5_yvnu2"]
2023-11-25 15:54:52 +00:00
[ext_resource type="PackedScene" uid="uid://4i2c481rpxe3" path="res://models/cinno.glb" id="8_32hx2"]
2023-11-25 14:48:08 +00:00
[ext_resource type="Script" path="res://Camera3D.gd" id="8_auifr"]
2023-11-25 17:01:15 +00:00
[ext_resource type="Texture2D" uid="uid://ct6sngef76p35" path="res://addons/grass.png" id="9_i8cb1"]
2023-11-25 17:08:00 +00:00
[ext_resource type="PackedScene" uid="uid://bxj354o6rycsf" path="res://obstacles/house_c.tscn" id="9_xyam4"]
2023-11-25 15:28:03 +00:00
[ext_resource type="PackedScene" uid="uid://ccs202pcy4pce" path="res://obstacles/dialog.tscn" id="10_6ihn6"]
2023-11-25 17:49:45 +00:00
[ext_resource type="PlaneMesh" uid="uid://jy4q18wf2j41" path="res://road_mesh_something.tres" id="10_7jwjs"]
2023-11-25 17:36:17 +00:00
[ext_resource type="Texture2D" uid="uid://bx05lcriqc602" path="res://addons/asphalt_blank.png" id="11_kxmgb"]
2023-11-25 17:08:00 +00:00
[ext_resource type="PackedScene" uid="uid://d3ikq1a6muafo" path="res://obstacles/goal_billboard.tscn" id="14_0ikhl"]
2023-11-25 17:31:47 +00:00
[ext_resource type="Script" path="res://Torretta.gd" id="15_058li"]
2023-11-25 17:36:17 +00:00
[ext_resource type="PackedScene" uid="uid://crbal5m8uhcd5" path="res://obstacles/vent.tscn" id="15_hwvsi"]
2023-11-25 17:31:47 +00:00
[ext_resource type="PackedScene" uid="uid://t0gblqb4yr8m" path="res://models/turret.glb" id="16_upw73"]
2023-11-25 14:39:37 +00:00
[sub_resource type="Theme" id="Theme_hkcet"]
Label/fonts/font = ExtResource("3_p3wyc")
2023-11-25 12:14:15 +00:00
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_castg"]
2023-11-25 15:00:26 +00:00
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lw6u7"]
shading_mode = 0
albedo_color = Color(0.435294, 0.615686, 1, 1)
[sub_resource type="BoxMesh" id="BoxMesh_ry4bk"]
material = SubResource("StandardMaterial3D_lw6u7")
size = Vector3(0.3, 0.3, 0.3)
2023-11-25 15:54:52 +00:00
[sub_resource type="BoxMesh" id="BoxMesh_4tnse"]
material = ExtResource("2_upp15")
size = Vector3(1, 0.1, 3)
2023-11-25 12:49:33 +00:00
[sub_resource type="BoxShape3D" id="BoxShape3D_2bm1d"]
2023-11-25 17:01:15 +00:00
size = Vector3(100000, 4, 100000)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ox173"]
albedo_texture = ExtResource("9_i8cb1")
[sub_resource type="PlaneMesh" id="PlaneMesh_jacs4"]
material = SubResource("StandardMaterial3D_ox173")
2023-11-25 17:36:17 +00:00
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gjt1j"]
albedo_texture = ExtResource("11_kxmgb")
[sub_resource type="PlaneMesh" id="PlaneMesh_at5n0"]
material = SubResource("StandardMaterial3D_gjt1j")
2023-11-25 17:01:15 +00:00
[sub_resource type="MeshLibrary" id="MeshLibrary_hklma"]
item/0/name = "Grass"
item/0/mesh = SubResource("PlaneMesh_jacs4")
item/0/mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
item/0/shapes = []
item/0/navigation_mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
item/0/navigation_layers = 1
item/1/name = "AsphaltV"
item/1/mesh = ExtResource("10_7jwjs")
item/1/mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
item/1/shapes = []
item/1/navigation_mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
item/1/navigation_layers = 1
2023-11-25 17:36:17 +00:00
item/3/name = "AsphaltB"
item/3/mesh = SubResource("PlaneMesh_at5n0")
item/3/mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
item/3/shapes = []
item/3/navigation_mesh_transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
item/3/navigation_layers = 1
2023-11-25 17:01:15 +00:00
2023-11-25 17:31:47 +00:00
[sub_resource type="BoxShape3D" id="BoxShape3D_hwxik"]
size = Vector3(1.9188, 3.57475, 2.31203)
2023-11-25 12:14:15 +00:00
[node name="Root" type="Node3D"]
2023-11-25 14:09:54 +00:00
[node name="UI" type="Control" parent="."]
2023-11-25 13:00:43 +00:00
layout_mode = 3
2023-11-25 14:09:54 +00:00
anchors_preset = 15
2023-11-25 13:00:43 +00:00
anchor_right = 1.0
2023-11-25 14:09:54 +00:00
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = SubResource("Theme_hkcet")
2023-11-25 13:00:43 +00:00
2023-11-25 14:09:54 +00:00
[node name="TextBox" type="MarginContainer" parent="UI"]
2023-11-25 14:27:03 +00:00
visible = false
2023-11-25 14:09:54 +00:00
custom_minimum_size = Vector2(0, 192)
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -96.0
grow_horizontal = 2
grow_vertical = 0
theme_override_constants/margin_left = 128
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 128
theme_override_constants/margin_bottom = 16
2023-11-25 14:15:25 +00:00
script = ExtResource("4_gpkq6")
2023-11-25 14:09:54 +00:00
[node name="Panel" type="Panel" parent="UI/TextBox"]
layout_mode = 2
[node name="HBoxContainer" type="HBoxContainer" parent="UI/TextBox/Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Character" type="TextureRect" parent="UI/TextBox/Panel/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 0
2023-11-25 15:28:03 +00:00
texture = ExtResource("3_27tel")
2023-11-25 14:09:54 +00:00
expand_mode = 2
2023-11-25 15:28:03 +00:00
[node name="MarginContainer" type="MarginContainer" parent="UI/TextBox/Panel/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16
[node name="RichTextLabel" type="RichTextLabel" parent="UI/TextBox/Panel/HBoxContainer/MarginContainer"]
2023-11-25 14:09:54 +00:00
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/normal_font_size = 32
bbcode_enabled = true
text = "[center]garasauto[/center]"
2023-11-25 14:15:25 +00:00
[node name="Timer" type="Timer" parent="UI/TextBox"]
wait_time = 5.0
one_shot = true
2023-11-25 14:09:54 +00:00
[node name="TimerBox" type="MarginContainer" parent="UI"]
2023-11-25 13:00:43 +00:00
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -81.0
2023-11-25 14:09:54 +00:00
offset_bottom = 40.0
2023-11-25 13:00:43 +00:00
grow_horizontal = 0
2023-11-25 14:09:54 +00:00
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16
[node name="Label" type="Label" parent="UI/TimerBox"]
layout_mode = 2
2023-11-25 14:15:25 +00:00
theme_override_fonts/font = ExtResource("5_yvnu2")
theme_override_font_sizes/font_size = 32
2023-11-25 13:00:43 +00:00
text = "Garasauto"
horizontal_alignment = 2
2023-11-25 14:09:54 +00:00
[node name="GameTimer" type="Node" parent="UI/TimerBox/Label"]
2023-11-25 13:00:43 +00:00
script = ExtResource("3_y362g")
2023-11-25 14:15:25 +00:00
2023-11-25 14:39:37 +00:00
[node name="Player" type="CharacterBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.927202, 0)
2023-11-25 17:31:47 +00:00
collision_layer = 5
2023-11-25 14:39:37 +00:00
script = ExtResource("1_wt4gx")
input_accel = 8.0
2023-11-25 15:15:42 +00:00
jump_impulse = Vector3(0, 10, 0)
2023-11-25 15:50:06 +00:00
friction = 0.98
2023-11-25 14:39:37 +00:00
[node name="Man" type="CollisionShape3D" parent="Player"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.05, 0)
shape = SubResource("CapsuleShape3D_castg")
2023-11-25 15:54:52 +00:00
[node name="cinno" parent="Player/Man" instance=ExtResource("8_32hx2")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0.253272, 0)
2023-11-25 14:39:37 +00:00
2023-11-25 15:00:26 +00:00
[node name="Board" type="Node3D" parent="Player"]
2023-11-25 14:39:37 +00:00
2023-11-25 15:00:26 +00:00
[node name="PlayerPart" type="CPUParticles3D" parent="Player/Board"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.5)
emitting = false
amount = 30
mesh = SubResource("BoxMesh_ry4bk")
direction = Vector3(0, 0, 1)
spread = 35.0
flatness = 1.0
gravity = Vector3(0, 0, 0)
initial_velocity_min = 8.0
initial_velocity_max = 8.0
2023-11-25 15:54:52 +00:00
[node name="Mesh" type="MeshInstance3D" parent="Player/Board"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.05, 0)
mesh = SubResource("BoxMesh_4tnse")
skeleton = NodePath("../..")
2023-11-25 14:39:37 +00:00
[node name="Plane" type="StaticBody3D" parent="."]
2023-11-25 17:31:47 +00:00
collision_layer = 5
collision_mask = 5
2023-11-25 14:39:37 +00:00
[node name="CollisionShape3D" type="CollisionShape3D" parent="Plane"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0)
shape = SubResource("BoxShape3D_2bm1d")
2023-11-25 17:01:15 +00:00
[node name="GridMap" type="GridMap" parent="Plane"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0)
mesh_library = SubResource("MeshLibrary_hklma")
cell_size = Vector3(16, 2, 16)
cell_scale = 8.0
data = {
2023-11-25 17:36:17 +00:00
"cells": PackedInt32Array(65535, 65533, 1048576, 0, 65533, 1048576, 1, 65533, 1048576, 2, 65533, 1048576, 65534, 65533, 1048576, 65533, 65533, 1048576, 65532, 65534, 1048576, 65533, 65534, 1048576, 65533, 65535, 1048577, 65534, 0, 1048576, 65535, 0, 1048576, 0, 0, 1048576, 1, 0, 1048576, 2, 65535, 1048576, 2, 65534, 1048576, 1, 65532, 1048576, 0, 65532, 1048576, 65535, 65532, 1048576, 65532, 0, 1048576, 65532, 2, 1048576, 65533, 3, 1048576, 65534, 4, 1048576, 65535, 4, 1048576, 0, 3, 1048576, 2, 2, 1048576, 2, 0, 1048576, 65535, 65534, 1048576, 65533, 2, 1048576, 65534, 3, 1048576, 65534, 2, 1048576, 65535, 2, 1048576, 0, 65535, 1048576, 65534, 65534, 1048576, 65533, 0, 1048576, 65534, 1, 1048576, 0, 1, 1048576, 0, 65534, 1048576, 0, 2, 1048576, 1, 2, 1048576, 1, 1, 1048576, 1, 65535, 1048576, 1, 65534, 1048576, 65535, 3, 1048576, 65535, 65535, 1048576, 65535, 1, 1048576, 65534, 65535, 1048576, 65532, 65535, 1048577, 65532, 1, 1048577, 0, 4, 1048576, 1, 4, 1048576, 2, 3, 1048576, 3, 2, 1048576, 3, 1, 1048576, 3, 0, 1048576, 3, 65535, 1048576, 65531, 65535, 1048577, 65531, 0, 1048576, 65531, 1, 1048577, 65531, 2, 1048576, 1, 3, 1048576, 65532, 65533, 1048576, 2, 1, 1048576, 65533, 1, 1048577, 65531, 65533, 1048576, 65530, 65534, 1048576, 65529, 65535, 1048577, 65529, 0, 1048576, 65529, 1, 1048577, 65530, 2, 1048576, 65534, 65532, 1048576, 65533, 65532, 1048576, 65528, 0, 1048576, 65528, 1, 1048577, 65529, 2, 1048576, 65531, 65534, 1048576, 65530, 65535, 1048577, 65530, 0, 1048576, 65530, 1, 1048577, 65530, 65533, 1048576, 65529, 65534, 1048576, 65528, 2, 1048576, 65528, 3, 1048576, 65532, 65532, 1048576, 65531, 65532, 1048576, 65529, 65533, 1048576, 65528, 65534, 1048576, 65528, 65535, 1048577)
2023-11-25 17:01:15 +00:00
}
2023-11-25 14:48:08 +00:00
[node name="Camera3D" type="Camera3D" parent="." node_paths=PackedStringArray("target")]
2023-11-25 15:15:42 +00:00
transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 21.3066, 18.1673)
2023-11-25 14:48:08 +00:00
script = ExtResource("8_auifr")
target = NodePath("../Player")
2023-11-25 14:39:37 +00:00
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
2023-11-25 15:59:38 +00:00
transform = Transform3D(0.886591, 0.349146, -0.303401, 0.462553, -0.669221, 0.581539, 0, -0.655927, -0.754824, 4.33804, 4.6698, -3.35676)
light_color = Color(1, 1, 0.678431, 1)
light_energy = 2.026
shadow_enabled = true
2023-11-25 15:15:42 +00:00
[node name="HouseC" parent="." instance=ExtResource("9_xyam4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 14.9482, 0, -6.46428)
2023-11-25 17:31:47 +00:00
collision_layer = 5
2023-11-25 14:39:37 +00:00
2023-11-25 15:15:42 +00:00
[node name="HouseC2" parent="." instance=ExtResource("9_xyam4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.94815, 0, 15.5357)
2023-11-25 17:31:47 +00:00
collision_layer = 5
2023-11-25 14:39:37 +00:00
2023-11-25 15:15:42 +00:00
[node name="HouseC3" parent="." instance=ExtResource("9_xyam4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -21.0518, 0, -18.4643)
2023-11-25 17:31:47 +00:00
collision_layer = 5
2023-11-25 15:15:42 +00:00
[node name="HouseC4" parent="." instance=ExtResource("9_xyam4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -18.0518, 0, 8.53572)
2023-11-25 17:31:47 +00:00
collision_layer = 5
2023-11-25 15:28:03 +00:00
[node name="Dialog" parent="." instance=ExtResource("10_6ihn6")]
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 1, -7)
text = "uno"
duration = 1.0
2023-11-25 17:08:00 +00:00
[node name="GoalBillboard" parent="Dialog" instance=ExtResource("14_0ikhl")]
2023-11-25 17:01:15 +00:00
2023-11-25 15:28:03 +00:00
[node name="Dialog2" parent="." instance=ExtResource("10_6ihn6")]
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 1, -16)
text = "due"
duration = 1.0
[node name="Dialog3" parent="." instance=ExtResource("10_6ihn6")]
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 1, -25)
text = "tre"
duration = 1.0
2023-11-25 15:50:06 +00:00
2023-11-25 17:08:00 +00:00
[node name="Vent" parent="." instance=ExtResource("15_hwvsi")]
2023-11-25 17:36:17 +00:00
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, -2.89718, 0, 8.66797)
2023-11-25 15:28:03 +00:00
2023-11-25 17:31:47 +00:00
[node name="Torretta" type="StaticBody3D" parent="."]
transform = Transform3D(-0.810819, 0, 0.585297, 0, 1, 0, -0.585297, 0, -0.810819, -11.1919, 0.928251, 6.08668)
script = ExtResource("15_058li")
[node name="turret" parent="Torretta" instance=ExtResource("16_upw73")]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Torretta"]
transform = Transform3D(1, 0, -2.98023e-08, 0, 1, 0, 2.98023e-08, 0, 1, 0, 1.09828, 0)
shape = SubResource("BoxShape3D_hwxik")
[node name="RayCast3D" type="RayCast3D" parent="Torretta"]
2023-11-25 14:15:25 +00:00
[connection signal="timeout" from="UI/TextBox/Timer" to="UI/TextBox" method="_on_timer_timeout"]