-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.tscn
141 lines (102 loc) · 7.42 KB
/
main.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[gd_scene load_steps=14 format=1]
[ext_resource path="res://main.gd" type="Script" id=1]
[ext_resource path="res://tilesets/tileset_floors.tres" type="TileSet" id=2]
[ext_resource path="res://tilesets/tileset_walls.tres" type="TileSet" id=3]
[ext_resource path="res://player.tscn" type="PackedScene" id=4]
[ext_resource path="res://torch.tscn" type="PackedScene" id=5]
[ext_resource path="res://rat.tscn" type="PackedScene" id=6]
[ext_resource path="res://minotaur.tscn" type="PackedScene" id=7]
[ext_resource path="res://door.tscn" type="PackedScene" id=8]
[ext_resource path="res://bonfire.tscn" type="PackedScene" id=9]
[ext_resource path="res://tilesets/tileset_ceilings.tres" type="TileSet" id=10]
[ext_resource path="res://debugvis.gd" type="Script" id=11]
[sub_resource type="GDScript" id=1]
script/source = "extends TileMap\n\n# class member variables go here, for example:\n# var a = 2\n# var b = \"textvar\"\n\nfunc _ready():\n\t# Called every time the node is added to the scene.\n\t# Initialization here\n\tpass\n"
[sub_resource type="GDScript" id=2]
script/source = "extends Node2D\n\n \nvar path = [] # path from the main script\n \nfunc _draw():\n\tvar col = Color(255,0,0,1)\n \n\t# for each path point\n\tfor i in range( path.size() ):\n\t\t#if i > 0:\n\t\tdraw_circle(path[i], 3, col)\n\t\t\t#draw_line( path[i-1], path[i], col )"
[node name="game" type="Node2D"]
script/script = ExtResource( 1 )
[node name="floors" type="TileMap" parent="."]
transform/pos = Vector2( 16, 16 )
mode = 0
tile_set = ExtResource( 2 )
cell/size = Vector2( 16, 16 )
cell/quadrant_size = 16
cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 )
cell/half_offset = 2
cell/tile_origin = 0
cell/y_sort = false
collision/use_kinematic = false
collision/friction = 1.0
collision/bounce = 0.0
collision/layers = 1
collision/mask = 1
occluder/light_mask = 1
tile_data = IntArray( 65537, 2, 65538, 9, 65539, 9, 65540, 9, 65541, 9, 65542, 3, 65547, 70, 65548, 70, 65549, 70, 65550, 70, 65551, 70, 65552, 70, 65553, 70, 65554, 70, 65555, 70, 65556, 70, 65557, 70, 65558, 70, 65559, 70, 65560, 70, 131073, 7, 131075, 53, 131083, 70, 131084, 70, 131085, 70, 131086, 70, 131087, 70, 131088, 70, 131089, 70, 131090, 70, 131091, 70, 131092, 70, 131093, 70, 131094, 70, 131095, 70, 131096, 70, 196609, 8, 196611, 16, 196619, 70, 196620, 70, 196621, 70, 196622, 70, 196623, 70, 196624, 70, 196625, 70, 196626, 70, 196627, 70, 196628, 70, 196629, 70, 196630, 70, 196631, 70, 196632, 70, 262145, 8, 262146, 54, 262147, 16, 262155, 70, 262156, 70, 262157, 70, 262158, 70, 262159, 70, 262160, 70, 262161, 70, 262162, 70, 262163, 70, 262164, 70, 262165, 70, 262166, 70, 262167, 70, 262168, 70, 327681, 8, 327682, 57, 327683, 16, 327685, 27, 327686, 23, 327687, 23, 327688, 23, 327689, 23, 327690, 23, 327691, 70, 327692, 70, 327693, 70, 327694, 70, 327695, 70, 327696, 70, 327697, 70, 327698, 70, 327699, 70, 327700, 70, 327701, 70, 327702, 70, 327703, 70, 327704, 70, 393217, 31, 393221, 25, 393227, 70, 393228, 70, 393229, 70, 393230, 70, 393231, 70, 393232, 70, 393233, 70, 393234, 70, 393235, 70, 393236, 70, 393237, 70, 393238, 70, 393239, 70, 393240, 70, 458753, 24, 458757, 25, 458763, 70, 458764, 70, 458765, 70, 458766, 70, 458767, 70, 458768, 70, 458769, 70, 458770, 70, 458771, 70, 458772, 70, 458773, 70, 458774, 70, 458775, 70, 458776, 70, 524289, 24, 524293, 25, 524299, 70, 524300, 70, 524301, 70, 524302, 70, 524303, 70, 524304, 70, 524305, 70, 524306, 70, 524307, 70, 524308, 70, 589825, 33, 589826, 11, 589827, 11, 589828, 11, 589829, 54, 589830, 3, 655361, 4, 655362, 13, 655363, 13, 655364, 13, 655365, 13, 655366, 30 )
__meta__ = { "_edit_lock_":true }
[node name="walls" type="TileMap" parent="."]
transform/pos = Vector2( 16, 16 )
mode = 0
tile_set = ExtResource( 3 )
cell/size = Vector2( 16, 16 )
cell/quadrant_size = 16
cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 )
cell/half_offset = 2
cell/tile_origin = 0
cell/y_sort = true
collision/use_kinematic = false
collision/friction = 1.0
collision/bounce = 0.0
collision/layers = 1
collision/mask = 1
occluder/light_mask = 3
tile_data = IntArray( -65535, 0, -65534, 1, -65533, 4, -65532, 2, -65531, 3, -65530, 5, -65525, 0, -65524, 3, -65523, 4, -65522, 3, -65521, 2, -65520, 1, -65519, 3, -65518, 1, -65517, 3, -65516, 2, -65515, 4, -65514, 1, -65513, 4, -65512, 5, 131074, 6, 196613, 0, 196614, 1, 196615, 4, 196616, 4, 196617, 2, 196618, 4, 458754, 0, 458755, 1, 458756, 5, 458758, 0 )
script/script = SubResource( 1 )
__meta__ = { "_edit_lock_":true }
[node name="player" parent="walls" instance=ExtResource( 4 )]
transform/pos = Vector2( 76, 20 )
[node name="torch2" parent="walls" instance=ExtResource( 5 )]
transform/pos = Vector2( 144, 52 )
[node name="torch" parent="walls" instance=ExtResource( 5 )]
transform/pos = Vector2( 55.0712, 117.925 )
[node name="rat" parent="walls" instance=ExtResource( 6 )]
transform/pos = Vector2( 216, 96 )
[node name="minotaur" parent="walls" instance=ExtResource( 7 )]
transform/pos = Vector2( 372, 32 )
[node name="door" parent="walls" instance=ExtResource( 8 )]
transform/pos = Vector2( 88, 112 )
[node name="rat 2" parent="walls" instance=ExtResource( 6 )]
transform/pos = Vector2( 60, 152 )
[node name="bonfire" parent="walls" instance=ExtResource( 9 )]
transform/pos = Vector2( 39.9865, 77.139 )
[node name="door 2" parent="walls" instance=ExtResource( 8 )]
transform/pos = Vector2( 184, 48 )
[node name="ceil" type="TileMap" parent="."]
visibility/light_mask = 0
transform/pos = Vector2( 16, 16 )
mode = 0
tile_set = ExtResource( 10 )
cell/size = Vector2( 16, 16 )
cell/quadrant_size = 16
cell/custom_transform = Matrix32( 1, 0, 0, 1, 0, 0 )
cell/half_offset = 2
cell/tile_origin = 0
cell/y_sort = true
collision/use_kinematic = false
collision/friction = 1.0
collision/bounce = 0.0
collision/layers = 1
collision/mask = 1
occluder/light_mask = 1
tile_data = IntArray( -131072, 52, -131071, 11, -131070, 12, -131069, 11, -131068, 13, -131067, 11, -131066, 11, -131065, 51, -131062, 52, -131061, 13, -131060, 13, -131059, 12, -131058, 11, -131057, 13, -131056, 13, -131055, 13, -131054, 13, -131053, 13, -131052, 12, -131051, 11, -131050, 13, -131049, 11, -131048, 13, -131047, 51, -65536, 14, -65529, 5, -65526, 16, -65511, 7, 0, 14, 7, 6, 10, 16, 25, 7, 65536, 14, 65538, 25, 65543, 7, 65546, 16, 65561, 7, 131072, 14, 131076, 26, 131077, 22, 131078, 21, 131079, 41, 131080, 13, 131081, 13, 131082, 4, 131097, 7, 196608, 14, 196612, 23, 196633, 7, 262144, 14, 262148, 24, 262150, 1, 262151, 9, 262152, 10, 262153, 8, 262154, 2, 262169, 7, 327680, 14, 327684, 23, 327686, 5, 327687, 0, 327688, 0, 327689, 0, 327690, 16, 327705, 7, 393216, 14, 393218, 17, 393219, 21, 393220, 29, 393222, 3, 393223, 51, 393226, 16, 393241, 7, 458752, 14, 458759, 5, 458762, 16, 458777, 7, 524288, 14, 524295, 5, 524298, 50, 524299, 9, 524300, 8, 524301, 10, 524302, 10, 524303, 8, 524304, 10, 524305, 9, 524306, 10, 524307, 9, 524308, 8, 524309, 10, 524310, 8, 524311, 10, 524312, 10, 524313, 49, 589824, 14, 589831, 5, 655360, 14, 655367, 6, 720896, 50, 720897, 9, 720898, 10, 720899, 9, 720900, 9, 720901, 10, 720902, 9, 720903, 49 )
__meta__ = { "_edit_lock_":true }
[node name="PathDraw" type="Node2D" parent="."]
transform/pos = Vector2( 16, 16 )
script/script = SubResource( 2 )
__meta__ = { "_edit_lock_":true }
[node name="DebugVis" type="Node2D" parent="."]
script/script = ExtResource( 11 )
__meta__ = { "_edit_lock_":true }
[node name="CanvasModulate" type="CanvasModulate" parent="."]
color = Color( 0.257813, 0.257813, 0.257813, 1 )
__meta__ = { "_edit_lock_":true }