41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://Resources/Level_5_Enemy_Ghost_Occluder.tres" type="OccluderPolygon2D" id=1]
|
|
[ext_resource path="res://Sprites/Assets/Light.png" type="Texture" id=2]
|
|
[ext_resource path="res://Sprites/Enemies/Glowing_Ghost.png" type="Texture" id=3]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=1]
|
|
radius = 3.0
|
|
height = 2.0
|
|
|
|
[node name="Glowing Ghost" type="KinematicBody2D" groups=["enemies"]]
|
|
collision_layer = 2
|
|
collision_mask = 0
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
light_mask = 4
|
|
position = Vector2( 0, -3 )
|
|
texture = ExtResource( 3 )
|
|
|
|
[node name="Hitbox" type="CollisionShape2D" parent="."]
|
|
visible = false
|
|
position = Vector2( 0, -3 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="Light2D" type="Light2D" parent="."]
|
|
scale = Vector2( 0.5, 0.5 )
|
|
texture = ExtResource( 2 )
|
|
color = Color( 0.984314, 0.94902, 0.211765, 0.392157 )
|
|
energy = 2.0
|
|
range_item_cull_mask = 11
|
|
|
|
[node name="Light2DEyes" type="Light2D" parent="."]
|
|
scale = Vector2( 0.1, 0.1 )
|
|
texture = ExtResource( 2 )
|
|
offset = Vector2( 5, -40 )
|
|
range_item_cull_mask = 4
|
|
|
|
[node name="LightOccluder2D" type="LightOccluder2D" parent="."]
|
|
show_behind_parent = true
|
|
occluder = ExtResource( 1 )
|