rundumdiewelten/rund-um-die-welten/collectibles/collectible.tscn
phantomvines d8eec1150e upload
2025-09-19 16:37:23 +02:00

45 lines
1.6 KiB
Text

[gd_scene load_steps=7 format=3 uid="uid://nccnr30bmrud"]
[ext_resource type="Script" uid="uid://cwdmu7oq6mcup" path="res://collectibles/collectible.gd" id="1_m0tds"]
[ext_resource type="Texture2D" uid="uid://doc1xr8oi36nd" path="res://assets/collectable.png" id="2_m0tds"]
[ext_resource type="Texture2D" uid="uid://cflf7xj1mpj3s" path="res://assets/sparkle.png" id="2_pjpvi"]
[ext_resource type="Texture2D" uid="uid://dkv5rmn2o2k5v" path="res://assets/collectable_grayscale.png" id="3_k5esu"]
[ext_resource type="Texture2D" uid="uid://vn8hx6amejdh" path="res://assets/light-texture.png" id="5_aa1be"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_m0tds"]
size = Vector2(27, 28)
[node name="collectible" type="Area2D"]
scale = Vector2(4, 4)
script = ExtResource("1_m0tds")
[node name="PointLight2D" type="PointLight2D" parent="."]
z_index = -1000
color = Color(1, 0.975059, 0.239402, 1)
energy = 1.63
texture = ExtResource("5_aa1be")
[node name="CPUParticles2D" type="CPUParticles2D" parent="."]
texture_filter = 1
texture = ExtResource("2_pjpvi")
lifetime = 0.5
emission_shape = 1
emission_sphere_radius = 24.27
direction = Vector2(1, 1)
spread = 180.0
gravity = Vector2(0, 0)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_m0tds")
[node name="colour" type="Sprite2D" parent="."]
texture_filter = 1
rotation = 0.000899174
texture = ExtResource("2_m0tds")
[node name="grayscale" type="Sprite2D" parent="."]
visible = false
texture_filter = 1
texture = ExtResource("3_k5esu")
[connection signal="area_entered" from="." to="." method="_on_area_entered"]