27 lines
892 B
Text
27 lines
892 B
Text
[gd_scene load_steps=6 format=2]
|
|
|
|
[ext_resource path="res://Images/Gameplay/Star_highres.png" type="Texture" id=1]
|
|
[ext_resource path="res://Scripts/StarScript.gd" type="Script" id=2]
|
|
[ext_resource path="res://Shaders/glow.shader" type="Shader" id=3]
|
|
|
|
[sub_resource type="ShaderMaterial" id=2]
|
|
shader = ExtResource( 3 )
|
|
shader_param/radius = 20.0
|
|
shader_param/amount = 1.0
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 538.461, 538.461 )
|
|
|
|
[node name="Star" type="Sprite"]
|
|
material = SubResource( 2 )
|
|
scale = Vector2( 0.052, 0.052 )
|
|
texture = ExtResource( 1 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="PlayerHitZone" type="Area2D" parent="."]
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="PlayerHitZone"]
|
|
position = Vector2( 5.33003e-05, -7.93751e-05 )
|
|
shape = SubResource( 1 )
|
|
|
|
[connection signal="body_entered" from="PlayerHitZone" to="." method="playerHitZoneEntered"]
|