Reststuctured folders; basic survivor movement
This commit is contained in:
parent
164d0f76be
commit
f8fdeff2d6
10 changed files with 102 additions and 61 deletions
|
|
@ -1,9 +0,0 @@
|
|||
[gd_resource type="MeshTexture" format=3 uid="uid://dpc31s6cp6fk1"]
|
||||
|
||||
[sub_resource type="ImageTexture" id="ImageTexture_8gj05"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_sp5qj"]
|
||||
|
||||
[resource]
|
||||
mesh = SubResource("PlaneMesh_sp5qj")
|
||||
base_texture = SubResource("ImageTexture_8gj05")
|
||||
22
scenes/hall_block.tscn
Normal file
22
scenes/hall_block.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[gd_scene format=3 uid="uid://cxnocjdotkl5e"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_53tvs"]
|
||||
|
||||
[node name="HallBlock" type="Node3D" unique_id=2127508708]
|
||||
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0, 0)
|
||||
|
||||
[node name="Ground" type="MeshInstance3D" parent="." unique_id=1243012028]
|
||||
transform = Transform3D(1.5, 0, 0, 0, -2.5, 6.039832e-07, 0, -3.774895e-07, -4, 0.017923832, 7.9985394, -0.017028354)
|
||||
mesh = SubResource("PlaneMesh_53tvs")
|
||||
|
||||
[node name="Ground2" type="MeshInstance3D" parent="." unique_id=456628197]
|
||||
transform = Transform3D(1.5, 0, 0, 0, 2.5, 0, 0, 0, 4, 0, 0, 0)
|
||||
mesh = SubResource("PlaneMesh_53tvs")
|
||||
|
||||
[node name="WallLeft" type="MeshInstance3D" parent="." unique_id=2073244630]
|
||||
transform = Transform3D(1.5, 0, 0, 0, -1.3113416e-07, 4, 0, -3, -1.7484555e-07, -0.0013566017, 4.021149, 3.9638805)
|
||||
mesh = SubResource("PlaneMesh_53tvs")
|
||||
|
||||
[node name="WallRight" type="MeshInstance3D" parent="." unique_id=267065348]
|
||||
transform = Transform3D(1.5, 0, 0, 0, -1.3113416e-07, -4, 0, 3, -1.7484555e-07, 3.862381e-05, 4.031578, -4.0129037)
|
||||
mesh = SubResource("PlaneMesh_53tvs")
|
||||
4
scenes/survivor.gd
Normal file
4
scenes/survivor.gd
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
extends Area3D
|
||||
|
||||
var speed: int = 100
|
||||
var clumsiness: int = 0
|
||||
1
scenes/survivor.gd.uid
Normal file
1
scenes/survivor.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://ewsu4jeim8jy
|
||||
20
scenes/survivor.tscn
Normal file
20
scenes/survivor.tscn
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[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"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_q7pxf"]
|
||||
|
||||
[node name="Survivor" type="CharacterBody3D" unique_id=1192836658]
|
||||
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")
|
||||
|
||||
[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)
|
||||
billboard = 1
|
||||
double_sided = false
|
||||
texture_filter = 0
|
||||
texture = ExtResource("1_dvhww")
|
||||
55
scenes/world.tscn
Normal file
55
scenes/world.tscn
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
[gd_scene format=3 uid="uid://bnv1xxgceqbrc"]
|
||||
|
||||
[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"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_tlwt5"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_aqk2v"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_tlwt5"]
|
||||
|
||||
[node name="World" type="Node3D" unique_id=831374579]
|
||||
|
||||
[node name="Hall" type="Node3D" parent="." unique_id=2096979798]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.10000013, 0)
|
||||
|
||||
[node name="HallBlock3" parent="Hall" unique_id=2127508708 instance=ExtResource("1_tlwt5")]
|
||||
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0, 8.996796)
|
||||
|
||||
[node name="HallBlock2" parent="Hall" unique_id=797565575 instance=ExtResource("1_tlwt5")]
|
||||
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, -0.00023269653, 0.01109314, 6.0201683)
|
||||
|
||||
[node name="HallBlock1" parent="Hall" unique_id=1437187009 instance=ExtResource("1_tlwt5")]
|
||||
transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 0, 0, 3.017323)
|
||||
|
||||
[node name="HallBlock0" parent="Hall" unique_id=1901572100 instance=ExtResource("1_tlwt5")]
|
||||
|
||||
[node name="Camera3D" parent="." unique_id=691202574 instance=ExtResource("1_f3sb7")]
|
||||
transform = Transform3D(-0.9999863, 0.005235979, -8.616466e-08, 0.005230568, 0.99895376, 0.045432728, 0.00023797085, 0.045432106, -0.9989674, -0.25669718, 2.565366, -3.1106362)
|
||||
fov = 90.0
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=133407620]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.6470537, 0, 4.4912777)
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D" unique_id=996721213]
|
||||
transform = Transform3D(2.5, 0, 0, 0, 2.5, 0, 0, 0, 2.5, -2.6999998, 2.538711, 3.8988447)
|
||||
mesh = SubResource("CapsuleMesh_tlwt5")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=1517735028]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.7, 1.048, 3.899)
|
||||
shape = SubResource("CapsuleShape3D_aqk2v")
|
||||
|
||||
[node name="Elevator Doors" type="Node3D" parent="." unique_id=351419432]
|
||||
|
||||
[node name="DoorLeft" type="MeshInstance3D" parent="Elevator Doors" unique_id=1505149375]
|
||||
transform = Transform3D(-1.4999795, -2.5919616e-07, -0.020943915, 0.007845853, 0.13629805, -3.995815, 0.0003569563, -2.9969022, -0.18172824, 2.6999998, 4.294, -1.621)
|
||||
mesh = SubResource("PlaneMesh_tlwt5")
|
||||
|
||||
[node name="DoorRight" type="MeshInstance3D" parent="Elevator Doors" unique_id=1325879051]
|
||||
transform = Transform3D(-1.4999795, -2.5919616e-07, -0.020943915, 0.007845853, 0.13629805, -3.995815, 0.0003569563, -2.9969022, -0.18172824, -2.7, 4.273, -1.621)
|
||||
mesh = SubResource("PlaneMesh_tlwt5")
|
||||
|
||||
[node name="Survivor" parent="." unique_id=510103859 instance=ExtResource("3_4wyf3")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.3680804, 1.3, 4.7656555)
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
shader_type spatial;
|
||||
|
||||
void vertex() {
|
||||
vec3 right = normalize(cross(vec3(0.0, 1.0, 0.0), to_camera));
|
||||
vec3 up = vec3(0.0, 1.0, 0.0);
|
||||
vec3 forward = normalize(cross(right, up));
|
||||
mat4 billboard_matrix = mat4(
|
||||
vec4(right, 0.0),
|
||||
vec4(up, 0.0),
|
||||
vec4(forward, 0.0),
|
||||
vec4(model_pos, 1.0)
|
||||
);
|
||||
MODELVIEW_MATRIX = VIEW_MATRIX * billboard_matrix;
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
uid://du6owhb1rw1ic
|
||||
37
world.tscn
37
world.tscn
|
|
@ -1,37 +0,0 @@
|
|||
[gd_scene format=3 uid="uid://bnv1xxgceqbrc"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dowvqakiqkvk5" path="res://camera_3d.tscn" id="1_f3sb7"]
|
||||
[ext_resource type="Texture2D" uid="uid://btgh55yxpq1tq" path="res://images/henry_wave_still.png" id="2_fj7yv"]
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_tlwt5"]
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_tlwt5"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_aqk2v"]
|
||||
|
||||
[node name="World" type="Node3D" unique_id=831374579]
|
||||
|
||||
[node name="Camera3D" parent="." unique_id=691202574 instance=ExtResource("1_f3sb7")]
|
||||
transform = Transform3D(0.033800576, 0, 0.99942863, 0, 1, 0, -0.99942863, 0, 0.033800576, 1.3208365, 0.92046463, 0)
|
||||
fov = 72.2
|
||||
|
||||
[node name="Ground" type="MeshInstance3D" parent="." unique_id=2142800495]
|
||||
transform = Transform3D(4.502052, 0, 0, 0, 1.2009083, 0, 0, 0, 2.6638024, 0, 0, 0)
|
||||
mesh = SubResource("PlaneMesh_tlwt5")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="." unique_id=131556752]
|
||||
transform = Transform3D(-9.616505e-08, 0, -0.99999994, 0, 2.2, 0, 2.2, 0, -4.3711385e-08, -1.7076116, 0.76404345, 1.2956717)
|
||||
billboard = 1
|
||||
double_sided = false
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_fj7yv")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=133407620]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -4)
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="StaticBody3D" unique_id=996721213]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.7, 1.0478041, 3.8988447)
|
||||
mesh = SubResource("CapsuleMesh_tlwt5")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=1517735028]
|
||||
shape = SubResource("CapsuleShape3D_aqk2v")
|
||||
Loading…
Add table
Add a link
Reference in a new issue