feat: initialized template and wrote first gameplay code
This commit is contained in:
parent
82f2cae0f6
commit
46a958f801
47 changed files with 1093 additions and 33 deletions
10
project/assets/materials/greenish_grid.tres
Normal file
10
project/assets/materials/greenish_grid.tres
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://b075rlo1f0e4u"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d3kycq4061wf7" path="res://assets/textures/greenish_grid.png" id="1_5nv8k"]
|
||||
|
||||
[resource]
|
||||
shading_mode = 2
|
||||
diffuse_mode = 1
|
||||
albedo_texture = ExtResource("1_5nv8k")
|
||||
uv1_triplanar = true
|
||||
uv2_triplanar = true
|
||||
10
project/assets/materials/weapons/arms.tres
Normal file
10
project/assets/materials/weapons/arms.tres
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[gd_resource type="StandardMaterial3D" format=3 uid="uid://dgl8ygpyta7b0"]
|
||||
|
||||
[resource]
|
||||
resource_name = "arms"
|
||||
albedo_color = Color(0.9063318, 0.9063318, 0.9063318, 1)
|
||||
roughness = 0.5
|
||||
use_z_clip_scale = true
|
||||
z_clip_scale = 0.2
|
||||
fov_override = 50.0
|
||||
stencil_flags = 2
|
||||
13
project/assets/materials/weapons/rifle.tres
Normal file
13
project/assets/materials/weapons/rifle.tres
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://56reb3m4e6fd"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://48j7riad4n6g" path="res://assets/models/weapons/rifle_lee_enfield.jpg" id="1_eg0kj"]
|
||||
|
||||
[resource]
|
||||
resource_name = "rifle"
|
||||
cull_mode = 2
|
||||
albedo_texture = ExtResource("1_eg0kj")
|
||||
metallic = 0.29381442
|
||||
roughness = 0.6443299
|
||||
use_z_clip_scale = true
|
||||
z_clip_scale = 0.2
|
||||
fov_override = 50.0
|
||||
BIN
project/assets/models/base_character.blend
Normal file
BIN
project/assets/models/base_character.blend
Normal file
Binary file not shown.
53
project/assets/models/base_character.blend.import
Normal file
53
project/assets/models/base_character.blend.import
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://7esw31b76x4"
|
||||
path="res://.godot/imported/base_character.blend-06aab94c060939a7a7c95d6d213df49c.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/models/base_character.blend"
|
||||
dest_files=["res://.godot/imported/base_character.blend-06aab94c060939a7a7c95d6d213df49c.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
blender/nodes/visible=0
|
||||
blender/nodes/active_collection_only=false
|
||||
blender/nodes/punctual_lights=true
|
||||
blender/nodes/cameras=true
|
||||
blender/nodes/custom_properties=true
|
||||
blender/nodes/modifiers=1
|
||||
blender/meshes/colors=false
|
||||
blender/meshes/uvs=true
|
||||
blender/meshes/normals=true
|
||||
blender/meshes/export_geometry_nodes_instances=false
|
||||
blender/meshes/tangents=true
|
||||
blender/meshes/skins=2
|
||||
blender/meshes/export_bones_deforming_mesh_only=false
|
||||
blender/materials/unpack_enabled=true
|
||||
blender/materials/export_materials=1
|
||||
blender/animation/limit_playback=true
|
||||
blender/animation/always_sample=true
|
||||
blender/animation/group_tracks=true
|
||||
BIN
project/assets/models/base_character.blend1
Normal file
BIN
project/assets/models/base_character.blend1
Normal file
Binary file not shown.
BIN
project/assets/models/first_person_arms.blend
Normal file
BIN
project/assets/models/first_person_arms.blend
Normal file
Binary file not shown.
53
project/assets/models/first_person_arms.blend.import
Normal file
53
project/assets/models/first_person_arms.blend.import
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://bttc6o1afvamo"
|
||||
path="res://.godot/imported/first_person_arms.blend-797129ee4081809c7ab7dac9d6b02afa.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/models/first_person_arms.blend"
|
||||
dest_files=["res://.godot/imported/first_person_arms.blend-797129ee4081809c7ab7dac9d6b02afa.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_node_type_suffixes=true
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
blender/nodes/visible=0
|
||||
blender/nodes/active_collection_only=false
|
||||
blender/nodes/punctual_lights=true
|
||||
blender/nodes/cameras=true
|
||||
blender/nodes/custom_properties=true
|
||||
blender/nodes/modifiers=1
|
||||
blender/meshes/colors=false
|
||||
blender/meshes/uvs=true
|
||||
blender/meshes/normals=true
|
||||
blender/meshes/export_geometry_nodes_instances=false
|
||||
blender/meshes/tangents=true
|
||||
blender/meshes/skins=2
|
||||
blender/meshes/export_bones_deforming_mesh_only=false
|
||||
blender/materials/unpack_enabled=true
|
||||
blender/materials/export_materials=1
|
||||
blender/animation/limit_playback=true
|
||||
blender/animation/always_sample=true
|
||||
blender/animation/group_tracks=true
|
||||
BIN
project/assets/models/first_person_arms.blend1
Normal file
BIN
project/assets/models/first_person_arms.blend1
Normal file
Binary file not shown.
BIN
project/assets/models/first_person_arms_lee_enfield.jpg
Normal file
BIN
project/assets/models/first_person_arms_lee_enfield.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
|
|
@ -0,0 +1,38 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dngnx7oramvng"
|
||||
path.s3tc="res://.godot/imported/first_person_arms_lee_enfield.jpg-6485b85441fdbd748e2484657f4d78a2.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
generator_parameters={
|
||||
"md5": "2f63e7aacd33f2b1b77cb71dd6821df5"
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/models/first_person_arms_lee_enfield.jpg"
|
||||
dest_files=["res://.godot/imported/first_person_arms_lee_enfield.jpg-6485b85441fdbd748e2484657f4d78a2.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
BIN
project/assets/models/weapons/rifle.blend1
Normal file
BIN
project/assets/models/weapons/rifle.blend1
Normal file
Binary file not shown.
BIN
project/assets/models/weapons/rifle.glb
Normal file
BIN
project/assets/models/weapons/rifle.glb
Normal file
Binary file not shown.
55
project/assets/models/weapons/rifle.glb.import
Normal file
55
project/assets/models/weapons/rifle.glb.import
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://c8jbxkm1paa8u"
|
||||
path="res://.godot/imported/rifle.glb-7e791117157b5204625fa46cea3758ea.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/models/weapons/rifle.glb"
|
||||
dest_files=["res://.godot/imported/rifle.glb-7e791117157b5204625fa46cea3758ea.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/root_script=null
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
nodes/use_name_suffixes=true
|
||||
nodes/use_node_type_suffixes=true
|
||||
meshes/ensure_tangents=true
|
||||
meshes/generate_lods=true
|
||||
meshes/create_shadow_meshes=true
|
||||
meshes/light_baking=1
|
||||
meshes/lightmap_texel_size=0.2
|
||||
meshes/force_disable_compression=false
|
||||
skins/use_named_skins=true
|
||||
animation/import=true
|
||||
animation/fps=30
|
||||
animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
animation/import_rest_as_RESET=false
|
||||
import_script/path=""
|
||||
materials/extract=0
|
||||
materials/extract_format=0
|
||||
materials/extract_path=""
|
||||
_subresources={
|
||||
"materials": {
|
||||
"arms": {
|
||||
"use_external/enabled": true,
|
||||
"use_external/fallback_path": "res://assets/materials/weapons/arms.tres",
|
||||
"use_external/path": "uid://dgl8ygpyta7b0"
|
||||
},
|
||||
"rifle": {
|
||||
"use_external/enabled": true,
|
||||
"use_external/fallback_path": "res://assets/materials/weapons/rifle.tres",
|
||||
"use_external/path": "uid://56reb3m4e6fd"
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
BIN
project/assets/models/weapons/rifle_lee_enfield.jpg
Normal file
BIN
project/assets/models/weapons/rifle_lee_enfield.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
44
project/assets/models/weapons/rifle_lee_enfield.jpg.import
Normal file
44
project/assets/models/weapons/rifle_lee_enfield.jpg.import
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://48j7riad4n6g"
|
||||
path.s3tc="res://.godot/imported/rifle_lee_enfield.jpg-3d7c7612e94a4e73effbe000ea16a19a.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
generator_parameters={
|
||||
"md5": "089dd972f5e3dfeee508b839c59d2347"
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/models/weapons/rifle_lee_enfield.jpg"
|
||||
dest_files=["res://.godot/imported/rifle_lee_enfield.jpg-3d7c7612e94a4e73effbe000ea16a19a.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
BIN
project/assets/textures/greenish_grid.png
Normal file
BIN
project/assets/textures/greenish_grid.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
35
project/assets/textures/greenish_grid.png.import
Normal file
35
project/assets/textures/greenish_grid.png.import
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d3kycq4061wf7"
|
||||
path.s3tc="res://.godot/imported/greenish_grid.png-db458c39506fa25a40715cb6cda28623.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/textures/greenish_grid.png"
|
||||
dest_files=["res://.godot/imported/greenish_grid.png-db458c39506fa25a40715cb6cda28623.s3tc.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
||||
|
|
@ -9,7 +9,7 @@ custom_features=""
|
|||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="../build/PROJECT.x86_64"
|
||||
export_path="../build/wave_survival.x86_64"
|
||||
patches=PackedStringArray()
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
|
|
@ -51,7 +51,7 @@ custom_features=""
|
|||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="../build/PROJECT.exe"
|
||||
export_path="../build/wave_survival.exe"
|
||||
patches=PackedStringArray()
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
|
|
|
|||
207
project/maps/testmap.tscn
Normal file
207
project/maps/testmap.tscn
Normal file
|
|
@ -0,0 +1,207 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://dukbdx7dt2qut"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://snjgu4yp5swd" path="res://objects/player.tscn" id="1_6t4yh"]
|
||||
[ext_resource type="Material" uid="uid://b075rlo1f0e4u" path="res://assets/materials/greenish_grid.tres" id="1_ng1ul"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_ng1ul"]
|
||||
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
|
||||
ground_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
|
||||
|
||||
[sub_resource type="Sky" id="Sky_7ng1a"]
|
||||
sky_material = SubResource("ProceduralSkyMaterial_ng1ul")
|
||||
|
||||
[sub_resource type="Environment" id="Environment_d7x8f"]
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_7ng1a")
|
||||
tonemap_mode = 2
|
||||
ssao_enabled = true
|
||||
glow_enabled = true
|
||||
|
||||
[node name="Testmap" type="Node3D"]
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_d7x8f")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(-0.866023, -0.433016, 0.250001, 0, 0.499998, 0.866027, -0.500003, 0.749999, -0.43301, 0, 0, 0)
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.501484, 0)
|
||||
use_collision = true
|
||||
size = Vector3(50, 1, 50)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="PlayerBody" parent="." instance=ExtResource("1_6t4yh")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0500376, 2.38419e-07, -0.0317376)
|
||||
slide_on_ceiling = false
|
||||
|
||||
[node name="CSGCombiner3D" type="CSGCombiner3D" parent="."]
|
||||
use_collision = true
|
||||
|
||||
[node name="CSGBox3D2" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.948, 3.13319, -1.86438)
|
||||
use_collision = true
|
||||
size = Vector3(10.441, 7.09393, 25.165)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D3" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.9688, 1.13, 6.77715)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(9.8421, 3.074, 7.48355)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D5" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.9688, 1.13, -1.92168)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(9.8421, 3.074, 9.25056)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D6" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.9688, 1.13, -10.4467)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(9.8421, 3.074, 7.48355)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D10" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.9688, 4.73767, 6.77715)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(9.8421, 3.074, 7.48355)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D11" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.9688, 4.73767, -1.92168)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(9.8421, 3.074, 9.25056)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D12" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.9688, 4.73767, -10.4467)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(9.8421, 3.074, 7.48355)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D4" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.01349, 0.843177, 5.73304)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(2.16355, 2.81146, 1.43037)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D19" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -12.7667, 3.00782, 8.93745)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(4.11031, 1.01367, 3.05259)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D13" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03735, 5.15978, 8.92892)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.64708, 1.47165, 1.75998)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D14" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03735, 5.15978, 5.36833)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.64708, 1.47165, 3.01134)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D17" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03735, 5.15978, -4.15471)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.64708, 1.47165, 1.75998)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D20" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03735, 1.63843, -12.371)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.64708, 1.47165, 1.75998)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D21" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03735, 1.63843, -3.73614)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.64708, 1.47165, 1.75998)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D23" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03735, 1.63843, 0.557484)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.64708, 1.47165, 1.75998)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D22" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03735, 1.63843, 8.83479)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.64708, 1.47165, 1.75998)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D18" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03735, 5.15978, -8.38057)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.64708, 1.47165, 1.75998)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D15" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03735, 5.15978, -0.349048)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.64708, 1.47165, 3.46446)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D16" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.03735, 5.15978, -11.8593)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.64708, 1.47165, 3.46446)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D7" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.70662, 0.843177, -9.61435)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.20117, 2.81146, 1.43037)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D8" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -14.1813, 0.843177, -6.9353)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.71875, 2.81146, 1.43037)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D9" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -8.47255, 1.11953, 3.07464)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.43066, 2.25876, 1.43037)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D24" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -8.47255, 4.34085, 3.07464)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.43066, 2.25876, 1.43037)
|
||||
material = ExtResource("1_ng1ul")
|
||||
|
||||
[node name="CSGBox3D25" type="CSGBox3D" parent="CSGCombiner3D"]
|
||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -14.0385, 4.34085, -6.63972)
|
||||
operation = 2
|
||||
use_collision = true
|
||||
size = Vector3(1.43066, 2.25876, 1.43037)
|
||||
material = ExtResource("1_ng1ul")
|
||||
24
project/objects/player.tscn
Normal file
24
project/objects/player.tscn
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://snjgu4yp5swd"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://ce40pq785yoyi" path="res://objects/weapons/rifle.tscn" id="1_eqqp1"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_bxedw"]
|
||||
|
||||
[node name="PlayerBody" type="PlayerBody"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
shape = SubResource("CapsuleShape3D_bxedw")
|
||||
|
||||
[node name="PlayerInput" type="PlayerInput" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="PlayerCamera" type="PlayerCamera" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 1.60811, 0)
|
||||
fov = 60.0
|
||||
|
||||
[node name="Rifle" parent="PlayerCamera" instance=ExtResource("1_eqqp1")]
|
||||
|
||||
[editable path="PlayerCamera/Rifle"]
|
||||
[editable path="PlayerCamera/Rifle/rifle"]
|
||||
13
project/objects/weapons/rifle.tscn
Normal file
13
project/objects/weapons/rifle.tscn
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://ce40pq785yoyi"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://c8jbxkm1paa8u" path="res://assets/models/weapons/rifle.glb" id="1_afgyw"]
|
||||
|
||||
[node name="Rifle" type="Rifle" node_paths=PackedStringArray("anim")]
|
||||
anim = NodePath("rifle/AnimationPlayer")
|
||||
|
||||
[node name="rifle" parent="." instance=ExtResource("1_afgyw")]
|
||||
|
||||
[node name="AnimationPlayer" parent="rifle" index="1"]
|
||||
playback_default_blend_time = 0.1
|
||||
|
||||
[editable path="rifle"]
|
||||
|
|
@ -10,6 +10,55 @@ config_version=5
|
|||
|
||||
[application]
|
||||
|
||||
config/name="PROJECT"
|
||||
config/features=PackedStringArray("4.4", "Forward Plus")
|
||||
config/name="wave_survival"
|
||||
run/main_scene="uid://dukbdx7dt2qut"
|
||||
config/features=PackedStringArray("4.5", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[input]
|
||||
|
||||
move_forward={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":87,"key_label":0,"unicode":119,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
move_back={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":83,"key_label":0,"unicode":115,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
move_left={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":65,"key_label":0,"unicode":97,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
move_right={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":68,"key_label":0,"unicode":100,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
primary_fire={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":1,"position":Vector2(119, 17),"global_position":Vector2(119, 46),"factor":1.0,"button_index":1,"canceled":false,"pressed":true,"double_click":false,"script":null)
|
||||
]
|
||||
}
|
||||
alt_mode={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":2,"position":Vector2(124, 14),"global_position":Vector2(124, 43),"factor":1.0,"button_index":2,"canceled":false,"pressed":true,"double_click":false,"script":null)
|
||||
]
|
||||
}
|
||||
crouch={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194326,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
run={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194325,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
jump={
|
||||
"deadzone": 0.2,
|
||||
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue