Updated survivor artwork and collision

This commit is contained in:
Henry 2026-05-10 16:22:22 +01:00
parent a95eaa4dfb
commit 7060f2f9a1
8 changed files with 132 additions and 14 deletions

View file

@ -10,6 +10,7 @@ size = Vector3(0.94641113, 1.4300561, 0.018554688)
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=461678032]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0018920898, 0.0053675175, 0.0034179688)
shape = SubResource("BoxShape3D_2ktk7")
disabled = true
[node name="Panel" type="Sprite3D" parent="." unique_id=1889832031]
transform = Transform3D(1, 0, 3.9750646e-15, 0, 1, 0, -3.9750646e-15, 0, 1, 0, 0, 0)

View file

@ -10,6 +10,7 @@
script = ExtResource("1_lbhrr")
[node name="World" parent="." unique_id=831374579 instance=ExtResource("1_uwrxv")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.004168272, 1.1920929e-07, -0.0019803047)
[node name="CanvasHud" type="CanvasLayer" parent="." unique_id=369977201]
@ -20,3 +21,4 @@ script = ExtResource("1_lbhrr")
[node name="ElevatorPanel" parent="CanvasPanel" unique_id=574176994 instance=ExtResource("3_lnu2h")]
[node name="ComponentSpawn" parent="." unique_id=649225939 instance=ExtResource("5_iywne")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.004472971, 0)

View file

@ -1,28 +1,58 @@
[gd_scene format=3 uid="uid://bedp5mlcbielu"]
[ext_resource type="Texture2D" uid="uid://btgh55yxpq1tq" path="res://images/henry_wave_still.png" id="1_dvhww"]
[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"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_q7pxf"]
[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.4, 0, 0, 0, 1.4, 0, 0, 0, 1.4, 0, 0, 0)
shape = SubResource("CapsuleShape3D_q7pxf")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.013031006, 0, -0.06518555)
shape = SubResource("BoxShape3D_q7pxf")
[node name="Sprite3D" type="Sprite3D" parent="." unique_id=2107037495]
transform = Transform3D(3.5, 0, 0, 0, 3.5, 0, 0, 0, 1.59, 0, 0, 0)
[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
texture = ExtResource("1_dvhww")
sprite_frames = SubResource("SpriteFrames_t26pv")
autoplay = "default"
frame_progress = 0.99938977
[node name="Area3D" type="Area3D" parent="." unique_id=1121777394]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D" unique_id=1505010263]
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0)
shape = SubResource("CapsuleShape3D_q7pxf")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.080844045, -0.14428711)
shape = SubResource("BoxShape3D_7yc2n")
[connection signal="area_entered" from="Area3D" to="." method="_on_area_3d_area_entered"]

View file

@ -2,7 +2,6 @@
[ext_resource type="PackedScene" uid="uid://dowvqakiqkvk5" path="res://scenes/camera_3d.tscn" id="1_f3sb7"]
[ext_resource type="PackedScene" uid="uid://cxnocjdotkl5e" path="res://scenes/hall_block.tscn" id="1_tlwt5"]
[ext_resource type="PackedScene" uid="uid://bedp5mlcbielu" path="res://scenes/survivor.tscn" id="3_4wyf3"]
[ext_resource type="PackedScene" uid="uid://8ybwrid1vk4j" path="res://scenes/elevator_door.tscn" id="3_k0juu"]
[sub_resource type="CapsuleMesh" id="CapsuleMesh_tlwt5"]
@ -60,9 +59,6 @@ transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 4.5, 2.9909716, -8.27242)
[node name="DoorRight" parent="ElevatorDoors" unique_id=551316937 instance=ExtResource("3_k0juu")]
transform = Transform3D(-4, 0, 3.496911e-07, 0, 4, 0, -3.496911e-07, 0, -4, -4.4, 2.9909716, -8.27242)
[node name="Survivor" parent="." unique_id=510103859 instance=ExtResource("3_4wyf3")]
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0.9680804, 1.8453895, 5.186021)
[node name="SuvivorSpawn" type="Marker3D" parent="." unique_id=1095768768]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.9181392, 13.711893)