1
Fork 0
mirror of https://github.com/RYGhub/the-cold-night.git synced 2024-11-24 21:54:18 +00:00

🔧 Move Fire Sprite to its own node

This commit is contained in:
Steffo 2022-04-02 21:20:43 +02:00
parent a89d72df66
commit 6161ca3dce
Signed by: steffo
GPG key ID: 6965406171929D01
2 changed files with 5 additions and 3 deletions

View file

@ -1,4 +1,4 @@
extends Sprite
extends Node2D
export var intensity: float = 0.5 setget set_intensity

View file

@ -7,8 +7,7 @@
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 16 )
[node name="Fire" type="Sprite"]
texture = ExtResource( 2 )
[node name="Fire" type="Node2D"]
script = ExtResource( 3 )
[node name="Light" type="Light2D" parent="."]
@ -20,3 +19,6 @@ color = Color( 1, 0.592157, 0.592157, 1 )
[node name="Shape" type="CollisionShape2D" parent="Body"]
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )