adjusted tin particle physics and added mine explosion sound
This commit is contained in:
parent
40e10663d6
commit
38daea272c
2 changed files with 9 additions and 1 deletions
|
@ -2,6 +2,7 @@ extends "res://objects/enemy/enemy.gd"
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
$AnimatedSprite.play("explode")
|
$AnimatedSprite.play("explode")
|
||||||
|
Game.play_sound(Game.a_die_robot,Game.ac_die)
|
||||||
|
|
||||||
func _on_animation_finished():
|
func _on_animation_finished():
|
||||||
queue_free()
|
queue_free()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
[gd_scene load_steps=13 format=2]
|
[gd_scene load_steps=14 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://graphics/enemy/explosion_small.png" type="Texture" id=1]
|
[ext_resource path="res://graphics/enemy/explosion_small.png" type="Texture" id=1]
|
||||||
[ext_resource path="res://objects/enemy/tin_die.gd" type="Script" id=2]
|
[ext_resource path="res://objects/enemy/tin_die.gd" type="Script" id=2]
|
||||||
|
@ -37,6 +37,9 @@ animations = [ {
|
||||||
"speed": 20.0
|
"speed": 20.0
|
||||||
} ]
|
} ]
|
||||||
|
|
||||||
|
[sub_resource type="PhysicsMaterial" id=9]
|
||||||
|
bounce = 0.1
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id=8]
|
[sub_resource type="RectangleShape2D" id=8]
|
||||||
extents = Vector2( 2, 2 )
|
extents = Vector2( 2, 2 )
|
||||||
|
|
||||||
|
@ -48,6 +51,7 @@ frames = SubResource( 7 )
|
||||||
|
|
||||||
[node name="Topleft" type="RigidBody2D" parent="."]
|
[node name="Topleft" type="RigidBody2D" parent="."]
|
||||||
mass = 2.0
|
mass = 2.0
|
||||||
|
physics_material_override = SubResource( 9 )
|
||||||
script = ExtResource( 4 )
|
script = ExtResource( 4 )
|
||||||
impulse_max = 200
|
impulse_max = 200
|
||||||
|
|
||||||
|
@ -67,6 +71,7 @@ autostart = true
|
||||||
|
|
||||||
[node name="TopRight" type="RigidBody2D" parent="."]
|
[node name="TopRight" type="RigidBody2D" parent="."]
|
||||||
mass = 2.0
|
mass = 2.0
|
||||||
|
physics_material_override = SubResource( 9 )
|
||||||
script = ExtResource( 4 )
|
script = ExtResource( 4 )
|
||||||
impulse_max = 200
|
impulse_max = 200
|
||||||
|
|
||||||
|
@ -87,6 +92,7 @@ autostart = true
|
||||||
|
|
||||||
[node name="BottomLeft" type="RigidBody2D" parent="."]
|
[node name="BottomLeft" type="RigidBody2D" parent="."]
|
||||||
mass = 2.0
|
mass = 2.0
|
||||||
|
physics_material_override = SubResource( 9 )
|
||||||
script = ExtResource( 4 )
|
script = ExtResource( 4 )
|
||||||
impulse_max = 200
|
impulse_max = 200
|
||||||
|
|
||||||
|
@ -108,6 +114,7 @@ autostart = true
|
||||||
[node name="BottomRight" type="RigidBody2D" parent="."]
|
[node name="BottomRight" type="RigidBody2D" parent="."]
|
||||||
position = Vector2( 3, 3 )
|
position = Vector2( 3, 3 )
|
||||||
mass = 2.0
|
mass = 2.0
|
||||||
|
physics_material_override = SubResource( 9 )
|
||||||
script = ExtResource( 4 )
|
script = ExtResource( 4 )
|
||||||
impulse_max = 200
|
impulse_max = 200
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue