/
Stage.tscn
74 lines (60 loc) · 4.64 KB
/
Stage.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
69
70
71
72
73
74
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Actors/Robot.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/sprites/TileSet.tres" type="TileSet" id=2]
[ext_resource path="res://GUI/HUD.tscn" type="PackedScene" id=3]
[ext_resource path="res://Stage.gd" type="Script" id=4]
[ext_resource path="res://assets/animations/Fader.tscn" type="PackedScene" id=5]
[ext_resource path="res://addons/joystick/virtual_joystick.tscn" type="PackedScene" id=6]
[node name="Stage" type="Node2D"]
script = ExtResource( 4 )
[node name="TileMap" type="TileMap" parent="."]
tile_set = ExtResource( 2 )
format = 1
tile_data = PoolIntArray( 0, 0, 0, 1, 0, 1, 2, 0, 3, 3, 0, 3, 4, 0, 2, 5, 0, 3, 6, 0, 1, 7, 0, 2, 8, 0, 3, 9, 0, 3, 10, 0, 3, 11, 0, 1, 12, 0, 2, 13, 0, 3, 14, 0, 2, 15, 0, 4, 65536, 0, 131072, 65537, 0, 65539, 65538, 0, 131073, 65539, 0, 131075, 65540, 0, 196609, 65541, 0, 65539, 65542, 0, 196609, 65543, 0, 65539, 65544, 0, 131074, 65545, 0, 65537, 65546, 0, 65537, 65547, 0, 196610, 65548, 0, 196610, 65549, 0, 131075, 65550, 0, 65539, 65551, 0, 196612, 131072, 0, 65536, 131073, 0, 196611, 131074, 0, 196609, 131075, 0, 131074, 131076, 0, 65538, 131077, 0, 196609, 131078, 0, 65537, 131079, 0, 196610, 131080, 0, 131073, 131081, 0, 131074, 131082, 0, 196611, 131083, 0, 65537, 131084, 0, 65539, 131085, 0, 65538, 131086, 0, 196611, 131087, 0, 65540, 196608, 0, 131072, 196609, 0, 65537, 196610, 0, 131073, 196611, 0, 196611, 196612, 0, 131074, 196613, 0, 196611, 196614, 0, 196611, 196615, 0, 131075, 196616, 0, 65539, 196617, 0, 196609, 196618, 0, 65538, 196619, 0, 196609, 196620, 0, 196609, 196621, 0, 131073, 196622, 0, 131073, 196623, 0, 131076, 262144, 0, 131072, 262145, 0, 196609, 262146, 0, 65538, 262147, 0, 65537, 262148, 0, 65537, 262149, 0, 131075, 262150, 0, 131074, 262151, 0, 196609, 262152, 0, 196610, 262153, 0, 196609, 262154, 0, 131075, 262155, 0, 65537, 262156, 0, 196609, 262157, 0, 131075, 262158, 0, 196611, 262159, 0, 131076, 327680, 0, 131072, 327681, 0, 196610, 327682, 0, 131074, 327683, 0, 196610, 327684, 0, 131075, 327685, 0, 131073, 327686, 0, 196611, 327687, 0, 196611, 327688, 0, 196611, 327689, 0, 196610, 327690, 0, 131075, 327691, 0, 65539, 327692, 0, 65539, 327693, 0, 65537, 327694, 0, 131073, 327695, 0, 65540, 393216, 0, 196608, 393217, 0, 131073, 393218, 0, 131073, 393219, 0, 196610, 393220, 0, 196609, 393221, 0, 131073, 393222, 0, 196609, 393223, 0, 65539, 393224, 0, 65539, 393225, 0, 196611, 393226, 0, 196609, 393227, 0, 65537, 393228, 0, 196610, 393229, 0, 196611, 393230, 0, 196611, 393231, 0, 131076, 458752, 0, 196608, 458753, 0, 131075, 458754, 0, 131075, 458755, 0, 196609, 458756, 0, 196610, 458757, 0, 65539, 458758, 0, 65538, 458759, 0, 131075, 458760, 0, 196609, 458761, 0, 196609, 458762, 0, 131073, 458763, 0, 131075, 458764, 0, 196611, 458765, 0, 65539, 458766, 0, 196611, 458767, 0, 65540, 524288, 0, 262144, 524289, 0, 262147, 524290, 0, 262147, 524291, 0, 262146, 524292, 0, 262145, 524293, 0, 262145, 524294, 0, 262145, 524295, 0, 262145, 524296, 0, 262145, 524297, 0, 262147, 524298, 0, 262145, 524299, 0, 262145, 524300, 0, 262145, 524301, 0, 262147, 524302, 0, 262146, 524303, 0, 262148 )
[node name="Boxes" type="Node2D" parent="."]
[node name="Robot" parent="." instance=ExtResource( 1 )]
position = Vector2( 512, 300 )
[node name="Camera2D" type="Camera2D" parent="Robot"]
current = true
process_mode = 0
drag_margin_h_enabled = true
drag_margin_v_enabled = true
smoothing_enabled = true
drag_margin_left = 0.4
drag_margin_top = 0.4
drag_margin_right = 0.4
drag_margin_bottom = 0.4
editor_draw_drag_margin = true
[node name="HUD" parent="." instance=ExtResource( 3 )]
[node name="Fader" parent="HUD" instance=ExtResource( 5 )]
visible = false
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="TouchControls" type="CanvasLayer" parent="."]
[node name="Joystick" parent="TouchControls" instance=ExtResource( 6 )]
anchor_top = 1.0
anchor_bottom = 1.0
margin_left = 64.0
margin_top = -344.0
margin_right = 192.0
margin_bottom = -216.0
action_left = "turn_left"
action_right = "turn_right"
action_up = "move_forward"
action_down = "move_backward"
[node name="Base" parent="TouchControls/Joystick" index="0"]
margin_left = -64.0
margin_top = -64.0
margin_right = 64.0
margin_bottom = 64.0
rect_pivot_offset = Vector2( 64, 64 )
[node name="Tip" parent="TouchControls/Joystick/Base" index="0"]
margin_left = -32.0
margin_top = -32.0
margin_right = 32.0
margin_bottom = 32.0
rect_pivot_offset = Vector2( 32, 32 )
[connection signal="leave_box" from="Robot" to="." method="_on_Robot_leave_box"]
[connection signal="see_box" from="Robot" to="." method="_on_Robot_approach_box"]
[editable path="HUD"]
[editable path="TouchControls/Joystick"]