bullet casing sound
This commit is contained in:
parent
940a03acec
commit
f7c60470a2
7 changed files with 53 additions and 3 deletions
|
@ -1,16 +1,20 @@
|
|||
[gd_scene load_steps=4 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://graphics/particles/bullet_casing.png" type="Texture" id=1]
|
||||
[ext_resource path="res://objects/enemy/bullet_casing.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id=4]
|
||||
bounce = 0.75
|
||||
bounce = 0.5
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=3]
|
||||
extents = Vector2( 1, 1.5 )
|
||||
|
||||
[node name="BoneParticle" type="RigidBody2D"]
|
||||
collision_layer = 16
|
||||
collision_layer = 17
|
||||
physics_material_override = SubResource( 4 )
|
||||
contacts_reported = 1
|
||||
contact_monitor = true
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
|
@ -21,3 +25,6 @@ shape = SubResource( 3 )
|
|||
__meta__ = {
|
||||
"_edit_group_": true
|
||||
}
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_BoneParticle_body_entered"]
|
||||
[connection signal="body_shape_entered" from="." to="." method="_on_BoneParticle_body_shape_entered"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue