pegchamp/Pegs/Pink/PinkPeg.tscn
2021-11-28 17:53:13 +01:00

49 lines
1.7 KiB
Text

[gd_scene load_steps=7 format=2]
[ext_resource path="res://Pegs/Pink/PinkPeg.gd" type="Script" id=1]
[ext_resource path="res://Pegs/DefaultPegCollisionShape.tscn" type="PackedScene" id=2]
[ext_resource path="res://Pegs/Pink/Pink.png" type="Texture" id=3]
[ext_resource path="res://Pegs/ScoreCounter.tscn" type="PackedScene" id=4]
[sub_resource type="CircleShape2D" id=1]
radius = 10.2018
[sub_resource type="CircleShape2D" id=2]
radius = 33.0151
[node name="PinkPeg" type="StaticBody2D"]
script = ExtResource( 1 )
[node name="RegularCollision" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="RegularCollision"]
visible = false
shape = SubResource( 1 )
[node name="SlowmoTimer" type="Timer" parent="."]
wait_time = 0.075
one_shot = true
[node name="DefaultPegCollisionShape" parent="." instance=ExtResource( 2 )]
[node name="Pink" type="Sprite" parent="."]
texture = ExtResource( 3 )
[node name="LastPegCollision" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="LastPegCollision"]
visible = false
shape = SubResource( 2 )
[node name="ScoreCounter" parent="." instance=ExtResource( 4 )]
base_score = 10
[connection signal="body_entered" from="RegularCollision" to="." method="_on_Area2D_body_entered"]
[connection signal="body_exited" from="RegularCollision" to="." method="_on_Area2D_body_exited"]
[connection signal="timeout" from="SlowmoTimer" to="." method="_on_Timer_timeout"]
[connection signal="body_entered" from="LastPegCollision" to="." method="_on_LastPegCollision_body_entered"]
[connection signal="body_exited" from="LastPegCollision" to="." method="_on_Area2D_body_exited"]