-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPortal.tscn
68 lines (55 loc) · 2.08 KB
/
Portal.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[gd_scene load_steps=9 format=2]
[ext_resource path="res://assets/Tiles/door_openMid_frame.png" type="Texture" id=1]
[ext_resource path="res://assets/Tiles/door_openTop.png" type="Texture" id=2]
[ext_resource path="res://assets/Tiles/door_openMid.png" type="Texture" id=3]
[ext_resource path="res://assets/Tiles/door_openTop_frame.png" type="Texture" id=4]
[ext_resource path="res://assets/rainbow.png" type="Texture" id=5]
[ext_resource path="res://Portal.gd" type="Script" id=6]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 24.3485, 18.7905 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 8.86037, 17.9529 )
[node name="PortalStaticBody2D" type="StaticBody2D"]
scale = Vector2( 0.45, 0.45 )
collision_layer = 0
script = ExtResource( 6 )
[node name="PortalFrameSprite" type="Sprite" parent="."]
visible = false
z_index = 15
z_as_relative = false
texture = ExtResource( 1 )
[node name="PortalSprite" type="Sprite" parent="."]
visible = false
texture = ExtResource( 3 )
[node name="TopSprite" type="Sprite" parent="."]
visible = false
position = Vector2( 0, -60 )
texture = ExtResource( 2 )
[node name="TopFrameSprite" type="Sprite" parent="."]
visible = false
position = Vector2( 0, -60 )
z_index = 5
texture = ExtResource( 4 )
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
light_mask = -2147483647
position = Vector2( -0.352, -73.535 )
shape = SubResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 17, -4.525 )
scale = Vector2( 0.581447, 1 )
z_index = 1
texture = ExtResource( 5 )
offset = Vector2( 32.5134, -24.2167 )
[node name="Sprite2" type="Sprite" parent="."]
position = Vector2( -59.4957, -4.5249 )
scale = Vector2( 0.616953, 1 )
texture = ExtResource( 5 )
offset = Vector2( 32.5134, -24.2167 )
flip_h = true
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( 34.3833, -26.5349 )
shape = SubResource( 2 )
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]