TestGame/assets/characters/player.tscn

77 lines
2.7 KiB
Plaintext
Raw Normal View History

2024-12-29 03:07:59 +01:00
[gd_scene load_steps=12 format=3 uid="uid://b2maarsg7u3po"]
2024-12-27 21:00:07 +01:00
[ext_resource type="Script" path="res://assets/characters/player.gd" id="1_fwkda"]
[ext_resource type="Script" path="res://src/viewport.gd" id="2_0d00w"]
[ext_resource type="SpineSkeletonDataResource" uid="uid://dn5wtcrr40ahd" path="res://assets/characters/coco/coco.tres" id="2_byycm"]
[ext_resource type="Script" path="res://src/camera_3d.gd" id="2_cjtsr"]
[ext_resource type="Script" path="res://src/spine_sprite.gd" id="4_bwb5d"]
2024-12-31 05:46:18 +01:00
[sub_resource type="ViewportTexture" id="ViewportTexture_nt42y"]
2024-12-27 21:00:07 +01:00
viewport_path = NodePath("MeshInstance3D/SubViewport")
2024-12-29 03:07:59 +01:00
[sub_resource type="ShaderMaterial" id="ShaderMaterial_5xxpu"]
2024-12-27 21:00:07 +01:00
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_a31vv"]
2024-12-29 03:07:59 +01:00
next_pass = SubResource("ShaderMaterial_5xxpu")
2024-12-27 21:00:07 +01:00
transparency = 1
2024-12-29 03:07:59 +01:00
diffuse_mode = 3
2024-12-31 05:46:18 +01:00
specular_mode = 1
albedo_texture = SubResource("ViewportTexture_nt42y")
billboard_mode = 1
2024-12-27 21:00:07 +01:00
[sub_resource type="QuadMesh" id="QuadMesh_iwcmf"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_wn1m5"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_cbp6h"]
[node name="Player" type="CharacterBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.48192, 0)
axis_lock_angular_x = true
axis_lock_angular_y = true
axis_lock_angular_z = true
script = ExtResource("1_fwkda")
[node name="Camera3D" type="Camera3D" parent="."]
2024-12-31 05:19:57 +01:00
transform = Transform3D(0.999987, -0.00490892, -0.00171441, 0.00514322, 0.982274, 0.187382, 0.000764184, -0.187388, 0.982286, 0.116849, 1.154, 5.342)
projection = 1
2024-12-27 21:00:07 +01:00
current = true
2024-12-28 01:58:19 +01:00
fov = 19.0
2024-12-29 03:07:59 +01:00
size = 1.5
2024-12-28 01:58:19 +01:00
far = 1000.0
2024-12-27 21:00:07 +01:00
script = ExtResource("2_cjtsr")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
2024-12-29 03:07:59 +01:00
layers = 2
2024-12-27 21:00:07 +01:00
material_override = SubResource("StandardMaterial3D_a31vv")
cast_shadow = 0
mesh = SubResource("QuadMesh_iwcmf")
script = ExtResource("2_0d00w")
[node name="SubViewport" type="SubViewport" parent="MeshInstance3D"]
transparent_bg = true
handle_input_locally = false
canvas_cull_mask = 4294966273
size = Vector2i(1024, 1024)
size_2d_override_stretch = true
[node name="SpineSprite" type="SpineSprite" parent="MeshInstance3D/SubViewport"]
2024-12-28 01:58:19 +01:00
position = Vector2(512, 887)
2024-12-27 21:00:07 +01:00
scale = Vector2(0.5, 0.5)
skeleton_data_res = ExtResource("2_byycm")
preview_skin = "default"
preview_animation = "animation"
preview_frame = true
preview_time = 0.0
script = ExtResource("4_bwb5d")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0, 0)
shape = SubResource("CylinderShape3D_wn1m5")
[node name="Area3D" type="Area3D" parent="." groups=["Player"]]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
2024-12-31 05:19:57 +01:00
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0, 0)
2024-12-27 21:00:07 +01:00
shape = SubResource("CylinderShape3D_cbp6h")