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:
parent
a89d72df66
commit
6161ca3dce
2 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
extends Sprite
|
extends Node2D
|
||||||
|
|
||||||
|
|
||||||
export var intensity: float = 0.5 setget set_intensity
|
export var intensity: float = 0.5 setget set_intensity
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
[sub_resource type="RectangleShape2D" id=1]
|
[sub_resource type="RectangleShape2D" id=1]
|
||||||
extents = Vector2( 16, 16 )
|
extents = Vector2( 16, 16 )
|
||||||
|
|
||||||
[node name="Fire" type="Sprite"]
|
[node name="Fire" type="Node2D"]
|
||||||
texture = ExtResource( 2 )
|
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
|
|
||||||
[node name="Light" type="Light2D" parent="."]
|
[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"]
|
[node name="Shape" type="CollisionShape2D" parent="Body"]
|
||||||
shape = SubResource( 1 )
|
shape = SubResource( 1 )
|
||||||
|
|
||||||
|
[node name="Sprite" type="Sprite" parent="."]
|
||||||
|
texture = ExtResource( 2 )
|
||||||
|
|
Loading…
Reference in a new issue