2023-01-09 16:43:16 +00:00
|
|
|
[gd_scene load_steps=14 format=3 uid="uid://bbp47va0yygpw"]
|
2023-01-07 10:44:15 +00:00
|
|
|
|
2023-01-07 17:38:31 +00:00
|
|
|
[ext_resource type="Script" path="res://player/Player.gd" id="1_rujcr"]
|
2023-01-07 11:09:08 +00:00
|
|
|
[ext_resource type="Script" path="res://player/Head.gd" id="2_ohlgu"]
|
|
|
|
[ext_resource type="Script" path="res://player/OnHand.gd" id="3_3rcjl"]
|
2023-01-08 01:25:48 +00:00
|
|
|
[ext_resource type="Theme" uid="uid://c5a1nyqumj46j" path="res://menu/menu_theme.tres" id="4_d7ru6"]
|
2023-01-07 11:09:08 +00:00
|
|
|
[ext_resource type="Shader" path="res://player/crosshair.gdshader" id="4_dut1p"]
|
2023-01-09 11:39:20 +00:00
|
|
|
[ext_resource type="PackedScene" path="res://island/sinking/CanSink.tscn" id="6_c0n0a"]
|
2023-01-07 10:44:15 +00:00
|
|
|
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_aqp8x"]
|
|
|
|
metallic_specular = 0.0
|
|
|
|
|
|
|
|
[sub_resource type="CylinderMesh" id="CylinderMesh_h7ca4"]
|
|
|
|
material = SubResource("StandardMaterial3D_aqp8x")
|
|
|
|
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_otair"]
|
2023-01-07 18:47:52 +00:00
|
|
|
radius = 0.48
|
2023-01-07 10:44:15 +00:00
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vqko1"]
|
|
|
|
bg_color = Color(0.240234, 0.240234, 0.240234, 1)
|
|
|
|
|
|
|
|
[sub_resource type="Theme" id="Theme_smyke"]
|
|
|
|
Panel/styles/panel = SubResource("StyleBoxFlat_vqko1")
|
|
|
|
|
|
|
|
[sub_resource type="GDScript" id="GDScript_7qy62"]
|
|
|
|
script/source = "extends Camera3D
|
|
|
|
|
|
|
|
@export var MainCamera: Camera3D
|
|
|
|
|
2023-01-09 00:53:52 +00:00
|
|
|
func _process(_delta):
|
2023-01-07 10:44:15 +00:00
|
|
|
if not MainCamera:
|
|
|
|
return
|
|
|
|
|
|
|
|
if MainCamera.global_position:
|
|
|
|
self.global_position = MainCamera.global_position
|
|
|
|
if MainCamera.global_rotation:
|
|
|
|
self.global_rotation = MainCamera.global_rotation
|
|
|
|
"
|
|
|
|
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_2p6rt"]
|
2023-01-07 11:09:08 +00:00
|
|
|
shader = ExtResource("4_dut1p")
|
2023-01-07 10:44:15 +00:00
|
|
|
shader_parameter/center_enabled = false
|
|
|
|
shader_parameter/legs_enabled = true
|
2023-01-07 13:54:15 +00:00
|
|
|
shader_parameter/inverted = false
|
2023-01-07 13:50:22 +00:00
|
|
|
shader_parameter/color_id = 0
|
2023-01-07 13:54:15 +00:00
|
|
|
shader_parameter/color_0 = Vector4(1, 1, 1, 1)
|
2023-01-07 13:50:22 +00:00
|
|
|
shader_parameter/color_1 = Quaternion(1, 0, 0, 1)
|
|
|
|
shader_parameter/color_2 = Quaternion(0, 0, 1, 1)
|
|
|
|
shader_parameter/center_radius = 0.005
|
2023-01-07 10:44:15 +00:00
|
|
|
shader_parameter/width = 0.001
|
|
|
|
shader_parameter/len = 0.008
|
|
|
|
shader_parameter/spacing = 0.006
|
|
|
|
shader_parameter/spread = 0.902
|
|
|
|
|
|
|
|
[node name="Player" type="CharacterBody3D"]
|
2023-01-08 12:49:22 +00:00
|
|
|
collision_layer = 5
|
2023-01-07 10:44:15 +00:00
|
|
|
slide_on_ceiling = false
|
|
|
|
floor_constant_speed = true
|
|
|
|
script = ExtResource("1_rujcr")
|
|
|
|
|
|
|
|
[node name="Head" type="Node3D" parent="."]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.54, 0)
|
2023-01-07 11:09:08 +00:00
|
|
|
script = ExtResource("2_ohlgu")
|
2023-01-07 10:44:15 +00:00
|
|
|
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="Head"]
|
|
|
|
target_position = Vector3(0, 0, -1.4)
|
|
|
|
|
|
|
|
[node name="OnHand" type="Node3D" parent="Head"]
|
|
|
|
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 0, 0, 0)
|
2023-01-07 11:09:08 +00:00
|
|
|
script = ExtResource("3_3rcjl")
|
2023-01-07 10:44:15 +00:00
|
|
|
|
|
|
|
[node name="Viewport" type="Control" parent="Head"]
|
|
|
|
texture_filter = 1
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
[node name="CameraViewportContainer" type="SubViewportContainer" parent="Head/Viewport"]
|
2023-01-14 20:28:28 +00:00
|
|
|
layout_mode = 0
|
2023-01-07 10:44:15 +00:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
stretch = true
|
|
|
|
|
|
|
|
[node name="GameViewport" type="SubViewport" parent="Head/Viewport/CameraViewportContainer"]
|
|
|
|
handle_input_locally = false
|
2023-01-08 06:41:28 +00:00
|
|
|
audio_listener_enable_3d = true
|
2023-01-07 17:38:31 +00:00
|
|
|
size = Vector2i(284, 160)
|
2023-01-07 10:44:15 +00:00
|
|
|
render_target_update_mode = 4
|
|
|
|
|
|
|
|
[node name="Camera" type="Camera3D" parent="Head/Viewport/CameraViewportContainer/GameViewport"]
|
|
|
|
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 0, 0.54, 0)
|
2023-01-07 13:50:22 +00:00
|
|
|
cull_mask = 1048573
|
2023-01-07 10:44:15 +00:00
|
|
|
current = true
|
|
|
|
fov = 80.0
|
|
|
|
near = 0.001
|
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
|
|
mesh = SubResource("CylinderMesh_h7ca4")
|
|
|
|
skeleton = NodePath("../..")
|
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
|
|
shape = SubResource("CylinderShape3D_otair")
|
|
|
|
|
|
|
|
[node name="HUD" type="Control" parent="."]
|
2023-01-07 17:38:31 +00:00
|
|
|
texture_filter = 1
|
2023-01-07 10:44:15 +00:00
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
theme = SubResource("Theme_smyke")
|
|
|
|
|
|
|
|
[node name="SubViewportContainer" type="SubViewportContainer" parent="HUD"]
|
|
|
|
show_behind_parent = true
|
2023-01-14 20:28:28 +00:00
|
|
|
layout_mode = 0
|
2023-01-07 10:44:15 +00:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
stretch = true
|
2023-01-08 17:39:37 +00:00
|
|
|
metadata/_edit_lock_ = true
|
2023-01-07 10:44:15 +00:00
|
|
|
|
|
|
|
[node name="SubViewport" type="SubViewport" parent="HUD/SubViewportContainer"]
|
|
|
|
transparent_bg = true
|
|
|
|
handle_input_locally = false
|
|
|
|
size = Vector2i(284, 160)
|
2023-01-08 15:44:18 +00:00
|
|
|
render_target_update_mode = 4
|
2023-01-07 10:44:15 +00:00
|
|
|
|
|
|
|
[node name="WeaponCamera" type="Camera3D" parent="HUD/SubViewportContainer/SubViewport" node_paths=PackedStringArray("MainCamera")]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.581502, 0)
|
2023-01-08 17:39:37 +00:00
|
|
|
cull_mask = 2
|
|
|
|
fov = 80.0
|
2023-01-07 10:44:15 +00:00
|
|
|
near = 0.001
|
|
|
|
script = SubResource("GDScript_7qy62")
|
|
|
|
MainCamera = NodePath("../../../../Head/Viewport/CameraViewportContainer/GameViewport/Camera")
|
|
|
|
|
2023-01-09 00:51:19 +00:00
|
|
|
[node name="BackBufferCopy" type="BackBufferCopy" parent="HUD"]
|
|
|
|
y_sort_enabled = true
|
|
|
|
position = Vector2(140, 79)
|
|
|
|
scale = Vector2(1.65, 1)
|
|
|
|
metadata/_edit_lock_ = true
|
|
|
|
|
2023-01-09 01:17:34 +00:00
|
|
|
[node name="PineappleLabel" type="Label" parent="HUD"]
|
2023-01-14 21:27:13 +00:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 3
|
|
|
|
anchor_left = 1.0
|
2023-01-09 01:17:34 +00:00
|
|
|
anchor_top = 1.0
|
2023-01-14 21:27:13 +00:00
|
|
|
anchor_right = 1.0
|
2023-01-09 01:17:34 +00:00
|
|
|
anchor_bottom = 1.0
|
2023-01-14 21:27:13 +00:00
|
|
|
offset_left = -102.0
|
|
|
|
offset_top = -22.0
|
|
|
|
offset_right = -4.0
|
|
|
|
offset_bottom = -4.0
|
|
|
|
grow_horizontal = 0
|
2023-01-09 01:17:34 +00:00
|
|
|
grow_vertical = 0
|
|
|
|
theme = ExtResource("4_d7ru6")
|
|
|
|
theme_override_font_sizes/font_size = 16
|
|
|
|
text = "0 harvested"
|
2023-01-14 21:27:13 +00:00
|
|
|
horizontal_alignment = 2
|
2023-01-09 01:17:34 +00:00
|
|
|
vertical_alignment = 2
|
|
|
|
|
2023-01-09 00:51:19 +00:00
|
|
|
[node name="AmmoLabel" type="Label" parent="HUD"]
|
2023-01-14 20:28:28 +00:00
|
|
|
layout_mode = 0
|
2023-01-09 00:51:19 +00:00
|
|
|
anchor_left = 1.0
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2023-01-14 21:27:13 +00:00
|
|
|
offset_left = -99.0
|
|
|
|
offset_top = -34.0
|
|
|
|
offset_right = -4.0
|
|
|
|
offset_bottom = -16.0
|
2023-01-09 00:51:19 +00:00
|
|
|
grow_horizontal = 0
|
|
|
|
grow_vertical = 0
|
|
|
|
theme = ExtResource("4_d7ru6")
|
|
|
|
theme_override_font_sizes/font_size = 16
|
2023-01-14 21:27:13 +00:00
|
|
|
text = "8888 seeds"
|
2023-01-09 00:51:19 +00:00
|
|
|
horizontal_alignment = 2
|
|
|
|
vertical_alignment = 2
|
|
|
|
|
2023-01-14 21:27:13 +00:00
|
|
|
[node name="TimerLabel" type="Label" parent="HUD"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 2
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
offset_left = 4.0
|
|
|
|
offset_top = -34.0
|
|
|
|
offset_right = 99.0
|
|
|
|
offset_bottom = -16.0
|
|
|
|
grow_vertical = 0
|
|
|
|
theme = ExtResource("4_d7ru6")
|
|
|
|
theme_override_font_sizes/font_size = 16
|
|
|
|
text = "0.000 s"
|
|
|
|
vertical_alignment = 2
|
|
|
|
|
|
|
|
[node name="SpeedLabel" type="Label" parent="HUD"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 2
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
offset_left = 4.0
|
|
|
|
offset_top = -22.0
|
|
|
|
offset_right = 99.0
|
|
|
|
offset_bottom = -4.0
|
|
|
|
grow_vertical = 0
|
|
|
|
theme = ExtResource("4_d7ru6")
|
|
|
|
theme_override_font_sizes/font_size = 16
|
|
|
|
text = "5.00 km/h"
|
|
|
|
vertical_alignment = 2
|
|
|
|
|
2023-01-07 10:44:15 +00:00
|
|
|
[node name="Crosshair" type="ColorRect" parent="HUD"]
|
|
|
|
material = SubResource("ShaderMaterial_2p6rt")
|
2023-01-14 20:28:28 +00:00
|
|
|
layout_mode = 0
|
2023-01-07 10:44:15 +00:00
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2023-01-08 01:25:48 +00:00
|
|
|
metadata/_edit_lock_ = true
|
2023-01-07 10:44:15 +00:00
|
|
|
|
2023-01-09 00:51:19 +00:00
|
|
|
[node name="BackBufferCopy2" type="BackBufferCopy" parent="HUD"]
|
|
|
|
position = Vector2(727, 447)
|
|
|
|
scale = Vector2(7.61, 4.89)
|
|
|
|
copy_mode = 2
|
2023-01-08 01:25:48 +00:00
|
|
|
metadata/_edit_lock_ = true
|
2023-01-07 10:44:15 +00:00
|
|
|
|
|
|
|
[node name="RigidDynamicBody3D" type="RigidBody3D" parent="."]
|
2023-01-07 18:23:07 +00:00
|
|
|
|
2023-01-09 11:35:14 +00:00
|
|
|
[node name="CanSink" parent="." instance=ExtResource("6_c0n0a")]
|
2023-01-08 22:13:46 +00:00
|
|
|
|
2023-01-09 11:35:14 +00:00
|
|
|
[connection signal="sank" from="CanSink" to="." method="respawn"]
|