blergh
This commit is contained in:
BIN
enemies/roomba/461697__leonelmail__body-falls-into-debris.mp3
Normal file
BIN
enemies/roomba/461697__leonelmail__body-falls-into-debris.mp3
Normal file
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://de4uedmk5edgf"
|
||||
path="res://.godot/imported/461697__leonelmail__body-falls-into-debris.mp3-bb2688610ce51d8f9f8578f4998733e7.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://enemies/roomba/461697__leonelmail__body-falls-into-debris.mp3"
|
||||
dest_files=["res://.godot/imported/461697__leonelmail__body-falls-into-debris.mp3-bb2688610ce51d8f9f8578f4998733e7.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
BIN
enemies/roomba/circle_05.png
Normal file
BIN
enemies/roomba/circle_05.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
35
enemies/roomba/circle_05.png.import
Normal file
35
enemies/roomba/circle_05.png.import
Normal file
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dyrknr7owcj2l"
|
||||
path.s3tc="res://.godot/imported/circle_05.png-642a93c66b1ec1ba5a1a752e418d94e7.s3tc.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://enemies/roomba/circle_05.png"
|
||||
dest_files=["res://.godot/imported/circle_05.png-642a93c66b1ec1ba5a1a752e418d94e7.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
enemies/roomba/pistol-shot2.ogg
Normal file
BIN
enemies/roomba/pistol-shot2.ogg
Normal file
Binary file not shown.
19
enemies/roomba/pistol-shot2.ogg.import
Normal file
19
enemies/roomba/pistol-shot2.ogg.import
Normal file
@@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="oggvorbisstr"
|
||||
type="AudioStreamOggVorbis"
|
||||
uid="uid://b2wv3104111mm"
|
||||
path="res://.godot/imported/pistol-shot2.ogg-51b148b9fac9b33ad9f9483600ae7c59.oggvorbisstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://enemies/roomba/pistol-shot2.ogg"
|
||||
dest_files=["res://.godot/imported/pistol-shot2.ogg-51b148b9fac9b33ad9f9483600ae7c59.oggvorbisstr"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
11
enemies/roomba/roomba.gd
Normal file
11
enemies/roomba/roomba.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
extends CharacterBody3D
|
||||
|
||||
|
||||
func _on_healthcomponent_start_dying() -> void:
|
||||
$blockbench_export.visible = false
|
||||
$CollisionShape3D.queue_free()
|
||||
$EnemyHitBox.queue_free()
|
||||
$Healthcomponent.queue_free()
|
||||
get_tree().create_timer(3).timeout.connect(queue_free)
|
||||
$AudioStreamPlayer3D.play()
|
||||
$EnemyWeaponSlot.queue_free()
|
||||
1
enemies/roomba/roomba.gltf
Normal file
1
enemies/roomba/roomba.gltf
Normal file
File diff suppressed because one or more lines are too long
36
enemies/roomba/roomba.gltf.import
Normal file
36
enemies/roomba/roomba.gltf.import
Normal file
@@ -0,0 +1,36 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://5t571rk10fot"
|
||||
path="res://.godot/imported/roomba.gltf-c85637230b4fd27eac22407f3e7820ae.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://enemies/roomba/roomba.gltf"
|
||||
dest_files=["res://.godot/imported/roomba.gltf-c85637230b4fd27eac22407f3e7820ae.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
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={}
|
||||
gltf/naming_version=1
|
||||
gltf/embedded_image_handling=1
|
||||
72
enemies/roomba/roomba.tscn
Normal file
72
enemies/roomba/roomba.tscn
Normal file
@@ -0,0 +1,72 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://cah3scx7my3bo"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://5t571rk10fot" path="res://enemies/roomba/roomba.gltf" id="1_0byba"]
|
||||
[ext_resource type="Script" path="res://enemies/roomba/roomba.gd" id="1_ywmos"]
|
||||
[ext_resource type="PackedScene" uid="uid://cilj11mx2ahb1" path="res://enemies/enemy_hit_box.tscn" id="2_kryr4"]
|
||||
[ext_resource type="PackedScene" uid="uid://d2p86lb72dp61" path="res://components/healthcomponent.tscn" id="3_lmjf6"]
|
||||
[ext_resource type="PackedScene" uid="uid://5q0aw58r81vp" path="res://effects/explosion.tscn" id="5_qdl43"]
|
||||
[ext_resource type="AudioStream" uid="uid://de4uedmk5edgf" path="res://enemies/roomba/461697__leonelmail__body-falls-into-debris.mp3" id="6_q81qv"]
|
||||
[ext_resource type="PackedScene" uid="uid://mlq22lwd7tip" path="res://enemies/player_detector.tscn" id="7_cyxum"]
|
||||
[ext_resource type="PackedScene" uid="uid://b7mq56myq16y6" path="res://enemies/EnemyWeaponSlot.tscn" id="8_7n6uh"]
|
||||
[ext_resource type="Resource" uid="uid://e6kduk7gil5d" path="res://enemies/roomba/roomba_weapon.tres" id="9_df07r"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_ryfyn"]
|
||||
height = 0.327
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_crthm"]
|
||||
height = 2.052
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_0wgue"]
|
||||
random_pitch = 1.1
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("6_q81qv")
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_7htvr"]
|
||||
height = 16.61
|
||||
radius = 4.445
|
||||
|
||||
[node name="Roomba" type="CharacterBody3D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_ywmos")
|
||||
|
||||
[node name="blockbench_export" parent="." instance=ExtResource("1_0byba")]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0)
|
||||
shape = SubResource("CylinderShape3D_ryfyn")
|
||||
|
||||
[node name="EnemyHitBox" parent="." node_paths=PackedStringArray("health_component") instance=ExtResource("2_kryr4")]
|
||||
health_component = NodePath("../Healthcomponent")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="EnemyHitBox"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0)
|
||||
shape = SubResource("CylinderShape3D_crthm")
|
||||
|
||||
[node name="Healthcomponent" parent="." instance=ExtResource("3_lmjf6")]
|
||||
max_health = 50.0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Healthcomponent"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0)
|
||||
shape = SubResource("CylinderShape3D_ryfyn")
|
||||
disabled = true
|
||||
|
||||
[node name="Explosion" parent="." instance=ExtResource("5_qdl43")]
|
||||
|
||||
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
|
||||
stream = SubResource("AudioStreamRandomizer_0wgue")
|
||||
bus = &"SFX"
|
||||
|
||||
[node name="PlayerDetector" parent="." instance=ExtResource("7_cyxum")]
|
||||
|
||||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="PlayerDetector"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, -7.95)
|
||||
shape = SubResource("CylinderShape3D_7htvr")
|
||||
|
||||
[node name="EnemyWeaponSlot" parent="." instance=ExtResource("8_7n6uh")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -0.8)
|
||||
weapon = ExtResource("9_df07r")
|
||||
|
||||
[connection signal="start_dying" from="Healthcomponent" to="." method="_on_healthcomponent_start_dying"]
|
||||
[connection signal="start_dying" from="Healthcomponent" to="Explosion" method="play"]
|
||||
[connection signal="new_target" from="PlayerDetector" to="EnemyWeaponSlot" method="set_target"]
|
||||
BIN
enemies/roomba/roomba_0.png
Normal file
BIN
enemies/roomba/roomba_0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
37
enemies/roomba/roomba_0.png.import
Normal file
37
enemies/roomba/roomba_0.png.import
Normal file
@@ -0,0 +1,37 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bbic8dstbrj8h"
|
||||
path="res://.godot/imported/roomba_0.png-c1549c6c179413abb430f9abb9ed6c8b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
generator_parameters={
|
||||
"md5": "bedb01a00a96b2e41e08b99e8b55e4ab"
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://enemies/roomba/roomba_0.png"
|
||||
dest_files=["res://.godot/imported/roomba_0.png-c1549c6c179413abb430f9abb9ed6c8b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=3
|
||||
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
|
||||
57
enemies/roomba/roomba_projectile.tscn
Normal file
57
enemies/roomba/roomba_projectile.tscn
Normal file
@@ -0,0 +1,57 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://cebi3xpcvhuox"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dyrknr7owcj2l" path="res://enemies/roomba/circle_05.png" id="1_571d5"]
|
||||
[ext_resource type="Script" path="res://components/projectile.gd" id="1_bah41"]
|
||||
[ext_resource type="Script" path="res://components/projectile_mover_linear.gd" id="2_p2jl6"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_3m1f0"]
|
||||
radius = 0.1
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ojfae"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
shading_mode = 0
|
||||
albedo_texture = ExtResource("1_571d5")
|
||||
billboard_mode = 1
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_03rak"]
|
||||
material = SubResource("StandardMaterial3D_ojfae")
|
||||
size = Vector2(0.5, 0.5)
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_4ol4i"]
|
||||
load_path = "res://.godot/imported/circle_05.png-642a93c66b1ec1ba5a1a752e418d94e7.s3tc.ctex"
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4scl6"]
|
||||
transparency = 1
|
||||
blend_mode = 1
|
||||
shading_mode = 0
|
||||
albedo_color = Color(1, 0.443137, 0, 1)
|
||||
albedo_texture = SubResource("CompressedTexture2D_4ol4i")
|
||||
billboard_mode = 1
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_8mxox"]
|
||||
material = SubResource("StandardMaterial3D_4scl6")
|
||||
size = Vector2(0.5, 0.5)
|
||||
|
||||
[node name="RoombaProjectile" type="CharacterBody3D"]
|
||||
collision_layer = 64
|
||||
collision_mask = 9
|
||||
script = ExtResource("1_bah41")
|
||||
lifetime = 3.0
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_3m1f0")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("QuadMesh_03rak")
|
||||
|
||||
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("QuadMesh_8mxox")
|
||||
|
||||
[node name="ProjectileMoverLinear" type="Node3D" parent="."]
|
||||
script = ExtResource("2_p2jl6")
|
||||
speed = 15.0
|
||||
|
||||
[connection signal="collided" from="." to="CollisionShape3D" method="queue_free"]
|
||||
[connection signal="collided" from="." to="MeshInstance3D" method="queue_free"]
|
||||
[connection signal="collided" from="." to="MeshInstance3D2" method="queue_free"]
|
||||
16
enemies/roomba/roomba_weapon.tres
Normal file
16
enemies/roomba/roomba_weapon.tres
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_resource type="Resource" script_class="Weapon" load_steps=5 format=3 uid="uid://e6kduk7gil5d"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cebi3xpcvhuox" path="res://enemies/roomba/roomba_projectile.tscn" id="1_15rxa"]
|
||||
[ext_resource type="Script" path="res://player/weapons/weapon.gd" id="1_ywwl4"]
|
||||
[ext_resource type="AudioStream" uid="uid://b2wv3104111mm" path="res://enemies/roomba/pistol-shot2.ogg" id="2_2ih2p"]
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_xcj1h"]
|
||||
random_pitch = 1.1
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("2_2ih2p")
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_ywwl4")
|
||||
cooldown = 1.0
|
||||
projectile_scene = ExtResource("1_15rxa")
|
||||
shooting_sound = SubResource("AudioStreamRandomizer_xcj1h")
|
||||
Reference in New Issue
Block a user