[gd_scene format=3 uid="uid://b0powerup01"] [ext_resource type="Script" path="res://scripts/power_up.gd" id="1_pu"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_pu"] size = Vector2(28, 16) [node name="PowerUp" type="Area2D"] collision_layer = 0 collision_mask = 1 script = ExtResource("1_pu") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("RectangleShape2D_pu") [node name="Visual" type="ColorRect" parent="."] offset_left = -14.0 offset_top = -8.0 offset_right = 14.0 offset_bottom = 8.0 color = Color(0.3, 0.9, 0.4, 1) [node name="Label" type="Label" parent="Visual"] offset_left = -14.0 offset_top = -8.0 offset_right = 14.0 offset_bottom = 8.0 text = "W" horizontal_alignment = 1 vertical_alignment = 1 [connection signal="body_entered" from="." to="." method="_on_body_entered"]