Ajout de enemy model basic af

This commit is contained in:
Victor Turgeon 2022-10-11 13:08:59 -04:00
parent c86244a5b4
commit 30dd714275
16 changed files with 1432 additions and 60 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ export_presets.cfg
# Mono-specific ignores # Mono-specific ignores
.mono/ .mono/
data_*/ data_*/
*.import

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 MiB

View File

@ -1,35 +0,0 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/Deep Dusk Equirect.png-a732fb967d7599ca3d0ae5157f5d1042.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://AllSkyFree_Skyboxes/Deep Dusk Equirect.png"
dest_files=[ "res://.import/Deep Dusk Equirect.png-a732fb967d7599ca3d0ae5157f5d1042.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -1,20 +0,0 @@
[remap]
importer="wavefront_obj"
type="Mesh"
path="res://.import/protohand.obj-df2c0be9df831c7fa49462d3c0106ebf.mesh"
[deps]
files=[ "res://.import/protohand.obj-df2c0be9df831c7fa49462d3c0106ebf.mesh" ]
source_file="res://BlenderStuff/Hand/protohand.obj"
dest_files=[ "res://.import/protohand.obj-df2c0be9df831c7fa49462d3c0106ebf.mesh", "res://.import/protohand.obj-df2c0be9df831c7fa49462d3c0106ebf.mesh" ]
[params]
generate_tangents=true
scale_mesh=Vector3( 1, 1, 1 )
offset_mesh=Vector3( 0, 0, 0 )
octahedral_compression=true
optimize_mesh_flags=4286

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,10 @@
# Blender MTL File: 'protoenemy.blend'
# Material Count: 1
newmtl None
Ns 500
Ka 0.8 0.8 0.8
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2

1390
BlenderStuff/protoenemy.obj Normal file

File diff suppressed because it is too large Load Diff

21
Scenes/Enemy.tscn Normal file
View File

@ -0,0 +1,21 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://BlenderStuff/protoenemy.obj" type="ArrayMesh" id=1]
[sub_resource type="BoxShape" id=1]
[sub_resource type="BoxShape" id=2]
[node name="Enemy" type="KinematicBody"]
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 0, 0, 0 )
mesh = ExtResource( 1 )
[node name="BodyCollision" type="CollisionShape" parent="."]
transform = Transform( 0.481304, 0, 0, 0, 0.793226, 0, 0, 0, 0.201743, 0, 0.33586, 0 )
shape = SubResource( 1 )
[node name="Head" type="CollisionShape" parent="."]
transform = Transform( 0.400588, 0, 0, 0, 0.551904, 0, 0, 0, 0.400588, 0, 1.87761, 0 )
shape = SubResource( 2 )

View File

@ -1,7 +1,7 @@
[gd_scene load_steps=7 format=2] [gd_scene load_steps=7 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1] [ext_resource path="res://Player.gd" type="Script" id=1]
[ext_resource path="res://BlenderStuff/Hand/protohand.obj" type="ArrayMesh" id=2] [ext_resource path="res://BlenderStuff/protohand.obj" type="ArrayMesh" id=2]
[ext_resource path="res://Textures/kenney_prototype_textures/purple/texture_01.png" type="Texture" id=3] [ext_resource path="res://Textures/kenney_prototype_textures/purple/texture_01.png" type="Texture" id=3]
[sub_resource type="CapsuleShape" id=2] [sub_resource type="CapsuleShape" id=2]
@ -32,6 +32,7 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.343071, -0.253136 )
[node name="Hand" type="MeshInstance" parent="Head"] [node name="Hand" type="MeshInstance" parent="Head"]
transform = Transform( -0.178665, 0.385633, 0.029372, 0.386578, 0.177104, 0.0262457, 0.0115471, 0.0376592, -0.4242, 1.33036, -0.0718137, -2.73514 ) transform = Transform( -0.178665, 0.385633, 0.029372, 0.386578, 0.177104, 0.0262457, 0.0115471, 0.0376592, -0.4242, 1.33036, -0.0718137, -2.73514 )
cast_shadow = 0
mesh = ExtResource( 2 ) mesh = ExtResource( 2 )
skeleton = NodePath("../..") skeleton = NodePath("../..")
material/0 = SubResource( 4 ) material/0 = SubResource( 4 )

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=7 format=2] [gd_scene load_steps=8 format=2]
[ext_resource path="res://Materials/Dark_ProtoMat.tres" type="Material" id=1] [ext_resource path="res://Materials/Dark_ProtoMat.tres" type="Material" id=1]
[ext_resource path="res://Player.tscn" type="PackedScene" id=2] [ext_resource path="res://Scenes/Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://Materials/Orange_ProtoMat.tres" type="Material" id=3] [ext_resource path="res://Materials/Orange_ProtoMat.tres" type="Material" id=3]
[ext_resource path="res://AllSkyFree_Skyboxes/Epic_BlueSunset_EquiRect_flat.png" type="Texture" id=4] [ext_resource path="res://AllSkyFree_Skyboxes/Epic_BlueSunset_EquiRect_flat.png" type="Texture" id=4]
[ext_resource path="res://Scenes/Enemy.tscn" type="PackedScene" id=5]
[sub_resource type="PanoramaSky" id=1] [sub_resource type="PanoramaSky" id=1]
panorama = ExtResource( 4 ) panorama = ExtResource( 4 )
@ -55,7 +56,7 @@ polygon = PoolVector2Array( 0, 0, -3, 0, 1, 1, 1, 0 )
material = ExtResource( 3 ) material = ExtResource( 3 )
[node name="Player" parent="." instance=ExtResource( 2 )] [node name="Player" parent="." instance=ExtResource( 2 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9, 0 ) transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0 )
[node name="WorldEnvironment_EpicBlueSky" type="WorldEnvironment" parent="."] [node name="WorldEnvironment_EpicBlueSky" type="WorldEnvironment" parent="."]
environment = SubResource( 2 ) environment = SubResource( 2 )
@ -65,3 +66,6 @@ transform = Transform( 1, 0, 0, 0, 0.849579, 0.527461, 0, -0.527461, 0.849579, 0
light_color = Color( 1, 0.924276, 0.869018, 1 ) light_color = Color( 1, 0.924276, 0.869018, 1 )
light_specular = 1.0 light_specular = 1.0
shadow_enabled = true shadow_enabled = true
[node name="Enemy" parent="." instance=ExtResource( 5 )]
transform = Transform( 0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 1.17105, 2.7605, -13.5942 )

View File

@ -11,7 +11,7 @@ config_version=4
[application] [application]
config/name="Slap" config/name="Slap"
run/main_scene="res://Test_Scene.tscn" run/main_scene="res://Scenes/Test_Scene.tscn"
config/icon="res://icon.png" config/icon="res://icon.png"
[display] [display]