My first 3D game with Godot 4.4
This commit is contained in:
81
mob/bat_mob.tscn
Normal file
81
mob/bat_mob.tscn
Normal file
@@ -0,0 +1,81 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://3t7u0llrbbi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c0nx5q5ppfatt" path="res://mob/bat_mob.gd" id="1_0ebaf"]
|
||||
[ext_resource type="PackedScene" uid="uid://gvin6dmn1uk8" path="res://mob/bat_model.tscn" id="1_1xugm"]
|
||||
[ext_resource type="Texture2D" uid="uid://2qvp3lxbf3ae" path="res://mob/bat/bat_model_bat_palette.png" id="3_yuo4x"]
|
||||
[ext_resource type="AudioStream" uid="uid://cvge1n06euj5o" path="res://mob/mob_take_damage.wav" id="4_mjy8e"]
|
||||
[ext_resource type="AudioStream" uid="uid://hghb3bqm52oh" path="res://mob/mob_ko.wav" id="5_5et38"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_0ebaf"]
|
||||
height = 1.4
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_iwjed"]
|
||||
resource_local_to_scene = true
|
||||
resource_name = "bat_mat"
|
||||
cull_mode = 2
|
||||
albedo_texture = ExtResource("3_yuo4x")
|
||||
roughness = 0.427273
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_yuo4x"]
|
||||
height = 1.6
|
||||
|
||||
[node name="BatMob" type="RigidBody3D"]
|
||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
|
||||
collision_layer = 2
|
||||
gravity_scale = 0.0
|
||||
script = ExtResource("1_0ebaf")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(-2.62268e-08, 0.6, 0, -0.6, -2.62268e-08, 0, 0, 0, 0.6, 0, 0, 0)
|
||||
shape = SubResource("CapsuleShape3D_0ebaf")
|
||||
|
||||
[node name="bat_model" parent="." instance=ExtResource("1_1xugm")]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="Skeleton3D" parent="bat_model/Armature" index="0"]
|
||||
bones/0/position = Vector3(0, -0.0173995, 0)
|
||||
bones/1/rotation = Quaternion(0.0455521, 0.109607, -0.618641, 0.776656)
|
||||
bones/2/rotation = Quaternion(-0.129224, -0.0444413, 0.324096, 0.936102)
|
||||
bones/3/rotation = Quaternion(-0.201664, -0.00156411, 0.238139, 0.950063)
|
||||
bones/4/rotation = Quaternion(0.0455521, -0.109607, 0.618641, 0.776656)
|
||||
bones/5/rotation = Quaternion(-0.129224, 0.0444413, -0.324096, 0.936102)
|
||||
bones/6/rotation = Quaternion(-0.201664, 0.00156411, -0.238139, 0.950063)
|
||||
bones/7/position = Vector3(0.130992, -0.227392, -0.0878515)
|
||||
bones/7/rotation = Quaternion(0.261968, 0.0834552, 0.265751, 0.924005)
|
||||
bones/8/rotation = Quaternion(3.46134e-08, 0.550375, 0.834917, 2.3571e-08)
|
||||
bones/10/position = Vector3(-0.130992, -0.227392, -0.0878515)
|
||||
bones/10/rotation = Quaternion(0.261968, -0.0834552, -0.265751, 0.924005)
|
||||
bones/11/rotation = Quaternion(2.41321e-08, 0.550375, 0.834917, 3.92162e-08)
|
||||
|
||||
[node name="bat" parent="bat_model/Armature/Skeleton3D" index="0"]
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_iwjed")
|
||||
|
||||
[node name="CorpseTimer" type="Timer" parent="."]
|
||||
wait_time = 5.0
|
||||
one_shot = true
|
||||
|
||||
[node name="HurtSound" type="AudioStreamPlayer3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("4_mjy8e")
|
||||
volume_db = -20.0
|
||||
max_db = 1.0
|
||||
|
||||
[node name="DieSound" type="AudioStreamPlayer3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("5_5et38")
|
||||
volume_db = -20.0
|
||||
max_db = 1.0
|
||||
|
||||
[node name="HurtBox" type="Area3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
collision_layer = 0
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="HurtBox"]
|
||||
transform = Transform3D(0.45, -3.93403e-08, 3.93403e-08, 3.93403e-08, -1.96701e-08, -0.45, 3.93403e-08, 0.45, -1.96701e-08, -1.74846e-08, 0, 0.2)
|
||||
shape = SubResource("CapsuleShape3D_yuo4x")
|
||||
debug_color = Color(0.894118, 0.254902, 0.482353, 0.607843)
|
||||
|
||||
[connection signal="timeout" from="CorpseTimer" to="." method="_on_corpse_timer_timeout"]
|
||||
|
||||
[editable path="bat_model"]
|
||||
Reference in New Issue
Block a user