2022-10-03 19:55:20 +00:00
|
|
|
[gd_scene load_steps=11 format=2]
|
2022-10-03 14:32:11 +00:00
|
|
|
|
|
|
|
[ext_resource path="res://ASSETS/light/light.png" type="Texture" id=1]
|
|
|
|
[ext_resource path="res://ASSETS/light/vending_machine.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://ASSETS/light/maxi_schermo.png" type="Texture" id=4]
|
|
|
|
[ext_resource path="res://ASSETS/light/cartellone.png" type="Texture" id=5]
|
|
|
|
[ext_resource path="res://ASSETS/light/semaphore.png" type="Texture" id=6]
|
|
|
|
[ext_resource path="res://ASSETS/light/crate.png" type="Texture" id=7]
|
|
|
|
[ext_resource path="res://light.gd" type="Script" id=8]
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id=3]
|
|
|
|
radius = 47.0
|
|
|
|
|
2022-10-03 19:55:20 +00:00
|
|
|
[sub_resource type="CanvasItemMaterial" id=6]
|
|
|
|
light_mode = 1
|
|
|
|
|
2022-10-03 14:32:11 +00:00
|
|
|
[sub_resource type="SpriteFrames" id=2]
|
|
|
|
animations = [ {
|
|
|
|
"frames": [ ExtResource( 5 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "cartellone",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 7 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "create",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 4 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "screen",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 6 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "semaphore",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 2 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "vending_machine",
|
|
|
|
"speed": 5.0
|
|
|
|
} ]
|
|
|
|
|
|
|
|
[node name="light" type="Area2D"]
|
|
|
|
position = Vector2( 0, -23 )
|
2022-10-03 20:29:55 +00:00
|
|
|
collision_layer = 8
|
|
|
|
collision_mask = 8
|
2022-10-03 14:32:11 +00:00
|
|
|
script = ExtResource( 8 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_horizontal_guides_": [ ]
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Light2D" type="Light2D" parent="."]
|
2022-10-03 21:02:20 +00:00
|
|
|
scale = Vector2( 0.5, 0.5 )
|
2022-10-03 14:32:11 +00:00
|
|
|
texture = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource( 3 )
|
|
|
|
|
|
|
|
[node name="Sprite" type="AnimatedSprite" parent="."]
|
2022-10-03 19:55:20 +00:00
|
|
|
material = SubResource( 6 )
|
2022-10-03 14:32:11 +00:00
|
|
|
position = Vector2( 0, -7 )
|
|
|
|
scale = Vector2( 1.0625, 1.25 )
|
|
|
|
frames = SubResource( 2 )
|
|
|
|
animation = "screen"
|