added voice acting credit and scoring

This commit is contained in:
zoe 2021-09-29 15:07:06 +02:00
parent 5503c2d05a
commit ad8de1dbb7
41 changed files with 323 additions and 57 deletions

View file

@ -11,6 +11,7 @@ func make_green():
func explode():
if can_be_destroyed:
$ScoreCounter.trigger()
spawn_hit_particles(particle_emitting_direction)
queue_free()

View file

@ -1,9 +1,10 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=9 format=2]
[ext_resource path="res://Pegs/Green/bar.png" type="Texture" id=1]
[ext_resource path="res://Pegs/Green/GreenBar.gd" type="Script" id=2]
[ext_resource path="res://Pegs/Green/GraceTimer.tscn" type="PackedScene" id=3]
[ext_resource path="res://Pegs/Green/HitSFX.tscn" type="PackedScene" id=4]
[ext_resource path="res://Pegs/ScoreCounter.tscn" type="PackedScene" id=5]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 3 )
@ -47,4 +48,6 @@ shape = SubResource( 2 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
anims/spawn = SubResource( 3 )
[node name="ScoreCounter" parent="." instance=ExtResource( 5 )]
[connection signal="timeout" from="GraceTimer" to="." method="_on_GraceTimer_timeout"]

View file

@ -9,6 +9,7 @@ func make_green():
func explode():
if(can_be_exploded):
$ScoreCounter.trigger()
spawn_hit_particles(particle_emitting_direction)
queue_free()

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=9 format=2]
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Pegs/Green/green.png" type="Texture" id=1]
[ext_resource path="res://Pegs/Green/GreenPeg.gd" type="Script" id=2]
@ -6,6 +6,7 @@
[ext_resource path="res://Pegs/DefaultPegCollisionShape.tscn" type="PackedScene" id=4]
[ext_resource path="res://Pegs/Green/GreenPegAnimationPlayer.gd" type="Script" id=5]
[ext_resource path="res://Pegs/Green/HitSFX.tscn" type="PackedScene" id=6]
[ext_resource path="res://Pegs/ScoreCounter.tscn" type="PackedScene" id=7]
[sub_resource type="PhysicsMaterial" id=1]
@ -43,4 +44,6 @@ script = ExtResource( 5 )
[node name="GraceTimer" parent="." instance=ExtResource( 3 )]
[node name="ScoreCounter" parent="." instance=ExtResource( 7 )]
[connection signal="timeout" from="GraceTimer" to="." method="_on_GraceTimer_timeout"]