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

@ -8,6 +8,8 @@ func make_green():
green_bar.global_position = global_position
green_bar.global_rotation = global_rotation
$ScoreCounter.trigger()
main.add_child(green_bar)
GameStats.add_to_multiplier()
queue_free()

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=6 format=2]
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Pegs/Purple/PurpleBar.gd" type="Script" id=1]
[ext_resource path="res://Pegs/Purple/bar.png" type="Texture" id=2]
[ext_resource path="res://Pegs/ScoreCounter.tscn" type="PackedScene" id=3]
[sub_resource type="PhysicsMaterial" id=1]
friction = 5.0
@ -25,3 +26,5 @@ shape = SubResource( 2 )
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
shape = SubResource( 3 )
[node name="ScoreCounter" parent="." instance=ExtResource( 3 )]

View file

@ -10,6 +10,10 @@ func make_green():
# green_peg.rotation = rotation + 5
green_peg.global_position = global_position
# add score
$ScoreCounter.trigger()
# get the main scene of current peg and add new peg to it
var main = get_tree().current_scene
main.add_child(green_peg)

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=4 format=2]
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Pegs/Purple/PurplePeg.gd" type="Script" id=1]
[ext_resource path="res://Pegs/Purple/purple.png" type="Texture" id=2]
[ext_resource path="res://Pegs/DefaultPegCollisionShape.tscn" type="PackedScene" id=3]
[ext_resource path="res://Pegs/ScoreCounter.tscn" type="PackedScene" id=4]
[node name="PurplePeg" type="StaticBody2D"]
collision_mask = 0
@ -12,3 +13,5 @@ script = ExtResource( 1 )
texture = ExtResource( 2 )
[node name="DefaultPegCollisionShape" parent="." instance=ExtResource( 3 )]
[node name="ScoreCounter" parent="." instance=ExtResource( 4 )]