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

🔧 Nest nodes in a smarter way

This commit is contained in:
Steffo 2022-04-03 03:14:48 +02:00
parent def9a9009f
commit 5a13cabece
Signed by: steffo
GPG key ID: 6965406171929D01
4 changed files with 25 additions and 24 deletions

View file

@ -4,17 +4,18 @@
[ext_resource path="res://src/entities/behaviours/BulletMovement.gd" type="Script" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 8 )
[node name="Bullet" type="KinematicBody2D"]
collision_layer = 2
[node name="BulletMovement" type="Node" parent="."]
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 1, 0.5 )
texture = ExtResource( 1 )
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
disabled = true
[node name="Sprite" type="Sprite" parent="Shape"]
scale = Vector2( 1, 0.5 )
texture = ExtResource( 1 )
[node name="BulletMovement" type="Node" parent="."]
script = ExtResource( 2 )

View file

@ -9,12 +9,12 @@ extents = Vector2( 16, 16 )
[node name="Enemy" type="KinematicBody2D"]
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="Shape"]
texture = ExtResource( 1 )
[node name="AttractedTo" parent="." instance=ExtResource( 3 )]
[node name="ErraticMovement" parent="." instance=ExtResource( 2 )]
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )

View file

@ -10,13 +10,13 @@ extents = Vector2( 16, 16 )
[node name="Fire" type="StaticBody2D"]
script = ExtResource( 3 )
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="Shape"]
texture = ExtResource( 2 )
[node name="Light" type="Light2D" parent="."]
texture = ExtResource( 1 )
texture_scale = 0.5
color = Color( 1, 0.592157, 0.592157, 1 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )

View file

@ -9,12 +9,12 @@ extents = Vector2( 16, 16 )
[node name="Player" type="KinematicBody2D"]
[node name="PlayerMovement" parent="." instance=ExtResource( 2 )]
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="Shape"]
texture = ExtResource( 1 )
[node name="PlayerMovement" parent="." instance=ExtResource( 2 )]
[node name="BulletSpawn" parent="." instance=ExtResource( 3 )]