Files
Dunkanoid/Upgrade/Upgrade.tscn
2024-05-11 20:50:46 +01:00

68 lines
2.0 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://dbf2kicev8ma7"]
[ext_resource type="Script" path="res://Upgrade/Upgrade.gd" id="1_3jp1b"]
[ext_resource type="Theme" uid="uid://cfvww0geatnnk" path="res://MainTheme.tres" id="2_iabep"]
[sub_resource type="Gradient" id="Gradient_ll6dt"]
colors = PackedColorArray(1, 1, 0, 1, 1, 1, 0, 0)
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_slgxc"]
radius = 6.0
height = 22.0
[node name="Upgrade" type="RigidBody2D"]
collision_layer = 0
collision_mask = 2
continuous_cd = 2
max_contacts_reported = 2
contact_monitor = true
script = ExtResource("1_3jp1b")
[node name="CPUParticles2D" type="CPUParticles2D" parent="."]
amount = 100
lifetime = 2.0
emission_shape = 3
emission_rect_extents = Vector2(10, 1)
direction = Vector2(0, -1)
gravity = Vector2(0, 0)
initial_velocity_min = 2.0
initial_velocity_max = 2.0
color = Color(1, 1, 0, 1)
color_ramp = SubResource("Gradient_ll6dt")
hue_variation_min = 1.0
hue_variation_max = 1.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource("CapsuleShape2D_slgxc")
[node name="Shadow" type="Polygon2D" parent="."]
position = Vector2(2, 4)
color = Color(0, 0, 0, 0.247059)
polygon = PackedVector2Array(-5, -6, 5, -6, 8, -5, 10, -3, 11, 0, 10, 3, 8, 5, 5, 6, -5, 6, -8, 5, -10, 3, -11, 0, -10, -3, -8, -5)
[node name="Polygon2D" type="Polygon2D" parent="."]
color = Color(0, 0.258824, 1, 1)
polygon = PackedVector2Array(-5, -6, 5, -6, 8, -5, 10, -3, 11, 0, 10, 3, 8, 5, 5, 6, -5, 6, -8, 5, -10, 3, -11, 0, -10, -3, -8, -5)
[node name="Label" type="Label" parent="."]
texture_filter = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -4.0
offset_top = -4.0
offset_right = 4.0
offset_bottom = 4.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("2_iabep")
theme_type_variation = &"Upgrade"
text = "W"
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="body_entered" from="." to="." method="_on_body_entered"]