-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConveyerBelt.tscn
39 lines (33 loc) · 1.32 KB
/
ConveyerBelt.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[gd_scene load_steps=10 format=2]
[ext_resource path="res://ConveyerBelt.gd" type="Script" id=1]
[ext_resource path="res://Assets/belt/better-belt1.png" type="Texture" id=2]
[ext_resource path="res://Assets/belt/better-belt2.png" type="Texture" id=3]
[ext_resource path="res://Assets/belt/better-belt3.png" type="Texture" id=4]
[ext_resource path="res://Assets/belt/better-belt4.png" type="Texture" id=5]
[ext_resource path="res://Assets/belt/better-belt5.png" type="Texture" id=6]
[ext_resource path="res://icon.png" type="Texture" id=7]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 1254.55, 74.6 )
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ) ],
"loop": true,
"name": "Moving",
"speed": 4.0
}, {
"frames": [ ExtResource( 7 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[node name="ConveyerBelt" type="Area2D"]
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 960, 128 )
shape = SubResource( 1 )
[node name="Sprite" type="AnimatedSprite" parent="."]
position = Vector2( 960, 128 )
scale = Vector2( 8, 4 )
frames = SubResource( 2 )
animation = "Moving"
[connection signal="body_entered" from="." to="." method="_on_ConveyerBelt_body_entered"]