peeple
This commit is contained in:
parent
941c2a0bed
commit
4f3495d5d4
14 changed files with 615 additions and 0 deletions
42
scenes/body.tscn
Normal file
42
scenes/body.tscn
Normal file
|
@ -0,0 +1,42 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://dokbg0jg0lb6a"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/body.gd" id="1_21au4"]
|
||||
[ext_resource type="PackedScene" uid="uid://nusoljma3t55" path="res://scenes/pickaxe_arm.tscn" id="2_m4hhp"]
|
||||
[ext_resource type="Script" path="res://scripts/camera.gd" id="3_mslwr"]
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_jcpb6"]
|
||||
radius = 5.0
|
||||
height = 10.0
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_16w3w"]
|
||||
radius = 5.0
|
||||
|
||||
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_vlifr"]
|
||||
plane = Plane(1000, 0, 0, 0)
|
||||
|
||||
[node name="Body" type="RigidBody3D"]
|
||||
axis_lock_linear_x = true
|
||||
axis_lock_angular_z = true
|
||||
script = ExtResource("1_21au4")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("SphereMesh_jcpb6")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_16w3w")
|
||||
|
||||
[node name="ArmPivot" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.8945, 0)
|
||||
|
||||
[node name="PickaxeArm" parent="ArmPivot" instance=ExtResource("2_m4hhp")]
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 32, 0, 0)
|
||||
script = ExtResource("3_mslwr")
|
||||
|
||||
[node name="RaycastPlane" type="StaticBody3D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="RaycastPlane"]
|
||||
shape = SubResource("WorldBoundaryShape3D_vlifr")
|
64
scenes/person.tscn
Normal file
64
scenes/person.tscn
Normal file
|
@ -0,0 +1,64 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://d103qix0q2nxk"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/person.gd" id="1_cq208"]
|
||||
[ext_resource type="PackedScene" uid="uid://dgb2a8uf8jr08" path="res://assets/person.glb" id="2_s14ov"]
|
||||
[ext_resource type="Script" path="res://scripts/fireparticles.gd" id="3_dbqx3"]
|
||||
[ext_resource type="Texture2D" uid="uid://d20ttydfqwf1f" path="res://assets/smoke.png" id="4_3rvxr"]
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ksic7"]
|
||||
emission_shape = 3
|
||||
emission_box_extents = Vector3(1, 1, 1)
|
||||
direction = Vector3(0, 1, 0)
|
||||
initial_velocity_min = 0.1
|
||||
initial_velocity_max = 1.4
|
||||
gravity = Vector3(0, 0, 0)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_pgvg5"]
|
||||
transparency = 1
|
||||
albedo_color = Color(0.477275, 0.479144, 0.470632, 1)
|
||||
albedo_texture = ExtResource("4_3rvxr")
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_i1be6"]
|
||||
material = SubResource("StandardMaterial3D_pgvg5")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_vmqhf"]
|
||||
direction = Vector3(0, 1, 0)
|
||||
initial_velocity_min = 4.0
|
||||
initial_velocity_max = 4.0
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_65tyw"]
|
||||
albedo_color = Color(0.897323, 0.516031, 0.403514, 1)
|
||||
emission_enabled = true
|
||||
emission = Color(0.95733, 0.577583, 0.247133, 1)
|
||||
emission_energy_multiplier = 7.1
|
||||
|
||||
[sub_resource type="SphereMesh" id="SphereMesh_5e6v0"]
|
||||
material = SubResource("StandardMaterial3D_65tyw")
|
||||
radius = 0.01
|
||||
height = 0.02
|
||||
radial_segments = 4
|
||||
rings = 4
|
||||
|
||||
[node name="Person" type="Node3D"]
|
||||
script = ExtResource("1_cq208")
|
||||
|
||||
[node name="person" parent="." instance=ExtResource("2_s14ov")]
|
||||
|
||||
[node name="fire_particles" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.19282, 0)
|
||||
script = ExtResource("3_dbqx3")
|
||||
|
||||
[node name="smoke" type="GPUParticles3D" parent="fire_particles"]
|
||||
amount = 66
|
||||
process_material = SubResource("ParticleProcessMaterial_ksic7")
|
||||
draw_pass_1 = SubResource("QuadMesh_i1be6")
|
||||
|
||||
[node name="glow" type="GPUParticles3D" parent="fire_particles"]
|
||||
amount = 50
|
||||
process_material = SubResource("ParticleProcessMaterial_vmqhf")
|
||||
draw_pass_1 = SubResource("SphereMesh_5e6v0")
|
||||
|
||||
[node name="burst_length_timer" type="Timer" parent="."]
|
||||
wait_time = 0.5
|
||||
|
||||
[connection signal="timeout" from="burst_length_timer" to="." method="_on_burst_length_timer_timeout"]
|
8
scenes/ui.tscn
Normal file
8
scenes/ui.tscn
Normal file
|
@ -0,0 +1,8 @@
|
|||
[gd_scene format=3 uid="uid://ddebtwg42wwc2"]
|
||||
|
||||
[node name="UI" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
mouse_filter = 2
|
Loading…
Add table
Add a link
Reference in a new issue