tojam20-elevator/scenes/survivor.tscn
henry 8aa2489e93 Set up shadow for survivors, robot
Added sprite3D shadows to character scenes.
2026-05-15 17:58:51 +01:00

67 lines
2.4 KiB
Text

[gd_scene format=3 uid="uid://bedp5mlcbielu"]
[ext_resource type="Script" uid="uid://ewsu4jeim8jy" path="res://scenes/survivor.gd" id="1_q7pxf"]
[ext_resource type="Texture2D" uid="uid://c24xx8ghsyijg" path="res://images/survivor.png" id="2_q7pxf"]
[ext_resource type="Texture2D" uid="uid://cq5uwykwt0mpl" path="res://images/shadow.png" id="3_7yc2n"]
[sub_resource type="BoxShape3D" id="BoxShape3D_q7pxf"]
size = Vector3(0.70355225, 1, 0.5317383)
[sub_resource type="AtlasTexture" id="AtlasTexture_7yc2n"]
atlas = ExtResource("2_q7pxf")
region = Rect2(0, 0, 16, 29)
[sub_resource type="AtlasTexture" id="AtlasTexture_v4jtw"]
atlas = ExtResource("2_q7pxf")
region = Rect2(16, 0, 16, 29)
[sub_resource type="SpriteFrames" id="SpriteFrames_t26pv"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_7yc2n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_v4jtw")
}],
"loop": true,
"name": &"default",
"speed": 10.0
}]
[sub_resource type="BoxShape3D" id="BoxShape3D_7yc2n"]
size = Vector3(1, 1.2099609, 0.59033203)
[node name="Survivor" type="CharacterBody3D" unique_id=1192836658]
transform = Transform3D(3, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0)
script = ExtResource("1_q7pxf")
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1830691958]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.013031006, 0, -0.06518555)
shape = SubResource("BoxShape3D_q7pxf")
[node name="Sprite3D" type="AnimatedSprite3D" parent="." unique_id=4297452]
transform = Transform3D(4.5, 0, 0, 0, 4.5, 0, 0, 0, 2.044, 0, 0, 0)
gi_mode = 0
billboard = 1
double_sided = false
texture_filter = 0
sprite_frames = SubResource("SpriteFrames_t26pv")
autoplay = "default"
frame_progress = 0.99938977
[node name="Sprite3D" type="Sprite3D" parent="Sprite3D" unique_id=448347779]
transform = Transform3D(0.15, 0, 0, 0, 0.014376865, -0.14930944, 0, 0.14930944, 0.014376865, 0, -0.13249628, 0.029169573)
visible = false
billboard = 1
texture = ExtResource("3_7yc2n")
[node name="Area3D" type="Area3D" parent="." unique_id=1121777394]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D" unique_id=1505010263]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.080844045, -0.14428711)
shape = SubResource("BoxShape3D_7yc2n")
[node name="ScreamPlayer" type="AudioStreamPlayer3D" parent="." unique_id=2111590431]
[connection signal="area_entered" from="Area3D" to="." method="_on_area_3d_area_entered"]