Level.tscn (10027B)
1 [gd_scene load_steps=63 format=2] 2 3 [ext_resource path="res://Level.gd" type="Script" id=1] 4 [ext_resource path="res://President.gd" type="Script" id=2] 5 [ext_resource path="res://graphics/route1.png" type="Texture" id=3] 6 [ext_resource path="res://Guard.gd" type="Script" id=4] 7 [ext_resource path="res://graphics/guard_sheet.png" type="Texture" id=5] 8 [ext_resource path="res://graphics/president_sheet.png" type="Texture" id=6] 9 [ext_resource path="res://graphics/route.png" type="Texture" id=7] 10 [ext_resource path="res://graphics/route2.png" type="Texture" id=8] 11 [ext_resource path="res://graphics/guard_dash.png" type="Texture" id=9] 12 13 [sub_resource type="SpriteFrames" id=50] 14 animations = [ { 15 "frames": [ ExtResource( 7 ), ExtResource( 3 ), ExtResource( 8 ) ], 16 "loop": true, 17 "name": "default", 18 "speed": 5.0 19 } ] 20 21 [sub_resource type="CanvasItemMaterial" id=2] 22 23 [sub_resource type="RectangleShape2D" id=46] 24 extents = Vector2( 45, 230.5 ) 25 26 [sub_resource type="RectangleShape2D" id=47] 27 extents = Vector2( 39, 418 ) 28 29 [sub_resource type="CapsuleShape2D" id=3] 30 radius = 12.0 31 height = 6.0 32 33 [sub_resource type="AtlasTexture" id=4] 34 flags = 4 35 atlas = ExtResource( 6 ) 36 region = Rect2( 0, 120, 60, 60 ) 37 38 [sub_resource type="AtlasTexture" id=5] 39 flags = 4 40 atlas = ExtResource( 6 ) 41 region = Rect2( 60, 120, 60, 60 ) 42 43 [sub_resource type="AtlasTexture" id=6] 44 flags = 4 45 atlas = ExtResource( 6 ) 46 region = Rect2( 120, 120, 60, 60 ) 47 48 [sub_resource type="AtlasTexture" id=7] 49 flags = 4 50 atlas = ExtResource( 6 ) 51 region = Rect2( 180, 120, 60, 60 ) 52 53 [sub_resource type="AtlasTexture" id=8] 54 flags = 4 55 atlas = ExtResource( 6 ) 56 region = Rect2( 0, 60, 60, 60 ) 57 58 [sub_resource type="AtlasTexture" id=9] 59 flags = 4 60 atlas = ExtResource( 6 ) 61 region = Rect2( 60, 60, 60, 60 ) 62 63 [sub_resource type="AtlasTexture" id=10] 64 flags = 4 65 atlas = ExtResource( 6 ) 66 region = Rect2( 120, 60, 60, 60 ) 67 68 [sub_resource type="AtlasTexture" id=11] 69 flags = 4 70 atlas = ExtResource( 6 ) 71 region = Rect2( 180, 60, 60, 60 ) 72 73 [sub_resource type="AtlasTexture" id=12] 74 flags = 4 75 atlas = ExtResource( 6 ) 76 region = Rect2( 240, 60, 60, 60 ) 77 78 [sub_resource type="AtlasTexture" id=13] 79 flags = 4 80 atlas = ExtResource( 6 ) 81 region = Rect2( 300, 60, 60, 60 ) 82 83 [sub_resource type="AtlasTexture" id=14] 84 flags = 4 85 atlas = ExtResource( 6 ) 86 region = Rect2( 0, 0, 60, 60 ) 87 88 [sub_resource type="AtlasTexture" id=15] 89 flags = 4 90 atlas = ExtResource( 6 ) 91 region = Rect2( 60, 0, 60, 60 ) 92 93 [sub_resource type="AtlasTexture" id=16] 94 flags = 4 95 atlas = ExtResource( 6 ) 96 region = Rect2( 120, 0, 60, 60 ) 97 98 [sub_resource type="AtlasTexture" id=17] 99 flags = 4 100 atlas = ExtResource( 6 ) 101 region = Rect2( 180, 0, 60, 60 ) 102 103 [sub_resource type="AtlasTexture" id=18] 104 flags = 4 105 atlas = ExtResource( 6 ) 106 region = Rect2( 240, 0, 60, 60 ) 107 108 [sub_resource type="AtlasTexture" id=19] 109 flags = 4 110 atlas = ExtResource( 6 ) 111 region = Rect2( 300, 0, 60, 60 ) 112 113 [sub_resource type="AtlasTexture" id=20] 114 flags = 4 115 atlas = ExtResource( 6 ) 116 region = Rect2( 0, 180, 60, 60 ) 117 118 [sub_resource type="AtlasTexture" id=21] 119 flags = 4 120 atlas = ExtResource( 6 ) 121 region = Rect2( 60, 180, 60, 60 ) 122 123 [sub_resource type="AtlasTexture" id=22] 124 flags = 4 125 atlas = ExtResource( 6 ) 126 region = Rect2( 120, 180, 60, 60 ) 127 128 [sub_resource type="AtlasTexture" id=23] 129 flags = 4 130 atlas = ExtResource( 6 ) 131 region = Rect2( 180, 180, 60, 60 ) 132 133 [sub_resource type="SpriteFrames" id=24] 134 animations = [ { 135 "frames": [ SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ) ], 136 "loop": true, 137 "name": "down", 138 "speed": 5.0 139 }, { 140 "frames": [ SubResource( 8 ), SubResource( 9 ), SubResource( 10 ), SubResource( 11 ), SubResource( 12 ), SubResource( 13 ) ], 141 "loop": true, 142 "name": "left", 143 "speed": 5.0 144 }, { 145 "frames": [ SubResource( 14 ), SubResource( 15 ), SubResource( 16 ), SubResource( 17 ), SubResource( 18 ), SubResource( 19 ) ], 146 "loop": true, 147 "name": "right", 148 "speed": 5.0 149 }, { 150 "frames": [ SubResource( 20 ), SubResource( 21 ), SubResource( 22 ), SubResource( 23 ) ], 151 "loop": true, 152 "name": "up", 153 "speed": 5.0 154 } ] 155 156 [sub_resource type="AtlasTexture" id=51] 157 flags = 4 158 atlas = ExtResource( 9 ) 159 region = Rect2( 0, 0, 60, 60 ) 160 161 [sub_resource type="AtlasTexture" id=52] 162 flags = 4 163 atlas = ExtResource( 9 ) 164 region = Rect2( 0, 120, 60, 60 ) 165 166 [sub_resource type="AtlasTexture" id=53] 167 flags = 4 168 atlas = ExtResource( 9 ) 169 region = Rect2( 0, 60, 60, 60 ) 170 171 [sub_resource type="AtlasTexture" id=54] 172 flags = 4 173 atlas = ExtResource( 9 ) 174 region = Rect2( 0, 180, 60, 60 ) 175 176 [sub_resource type="AtlasTexture" id=25] 177 flags = 4 178 atlas = ExtResource( 5 ) 179 region = Rect2( 0, 120, 60, 60 ) 180 181 [sub_resource type="AtlasTexture" id=26] 182 flags = 4 183 atlas = ExtResource( 5 ) 184 region = Rect2( 60, 120, 60, 60 ) 185 186 [sub_resource type="AtlasTexture" id=27] 187 flags = 4 188 atlas = ExtResource( 5 ) 189 region = Rect2( 120, 120, 60, 60 ) 190 191 [sub_resource type="AtlasTexture" id=28] 192 flags = 4 193 atlas = ExtResource( 5 ) 194 region = Rect2( 180, 120, 60, 60 ) 195 196 [sub_resource type="AtlasTexture" id=29] 197 flags = 4 198 atlas = ExtResource( 5 ) 199 region = Rect2( 0, 60, 60, 60 ) 200 201 [sub_resource type="AtlasTexture" id=30] 202 flags = 4 203 atlas = ExtResource( 5 ) 204 region = Rect2( 60, 60, 60, 60 ) 205 206 [sub_resource type="AtlasTexture" id=31] 207 flags = 4 208 atlas = ExtResource( 5 ) 209 region = Rect2( 120, 60, 60, 60 ) 210 211 [sub_resource type="AtlasTexture" id=32] 212 flags = 4 213 atlas = ExtResource( 5 ) 214 region = Rect2( 180, 60, 60, 60 ) 215 216 [sub_resource type="AtlasTexture" id=33] 217 flags = 4 218 atlas = ExtResource( 5 ) 219 region = Rect2( 240, 60, 60, 60 ) 220 221 [sub_resource type="AtlasTexture" id=34] 222 flags = 4 223 atlas = ExtResource( 5 ) 224 region = Rect2( 300, 60, 60, 60 ) 225 226 [sub_resource type="AtlasTexture" id=35] 227 flags = 4 228 atlas = ExtResource( 5 ) 229 region = Rect2( 0, 0, 60, 60 ) 230 231 [sub_resource type="AtlasTexture" id=36] 232 flags = 4 233 atlas = ExtResource( 5 ) 234 region = Rect2( 60, 0, 60, 60 ) 235 236 [sub_resource type="AtlasTexture" id=37] 237 flags = 4 238 atlas = ExtResource( 5 ) 239 region = Rect2( 120, 0, 60, 60 ) 240 241 [sub_resource type="AtlasTexture" id=38] 242 flags = 4 243 atlas = ExtResource( 5 ) 244 region = Rect2( 180, 0, 60, 60 ) 245 246 [sub_resource type="AtlasTexture" id=39] 247 flags = 4 248 atlas = ExtResource( 5 ) 249 region = Rect2( 240, 0, 60, 60 ) 250 251 [sub_resource type="AtlasTexture" id=40] 252 flags = 4 253 atlas = ExtResource( 5 ) 254 region = Rect2( 300, 0, 60, 60 ) 255 256 [sub_resource type="AtlasTexture" id=41] 257 flags = 4 258 atlas = ExtResource( 5 ) 259 region = Rect2( 0, 180, 60, 60 ) 260 261 [sub_resource type="AtlasTexture" id=42] 262 flags = 4 263 atlas = ExtResource( 5 ) 264 region = Rect2( 60, 180, 60, 60 ) 265 266 [sub_resource type="AtlasTexture" id=43] 267 flags = 4 268 atlas = ExtResource( 5 ) 269 region = Rect2( 120, 180, 60, 60 ) 270 271 [sub_resource type="AtlasTexture" id=44] 272 flags = 4 273 atlas = ExtResource( 5 ) 274 region = Rect2( 180, 180, 60, 60 ) 275 276 [sub_resource type="SpriteFrames" id=45] 277 animations = [ { 278 "frames": [ SubResource( 51 ) ], 279 "loop": true, 280 "name": "dash_down", 281 "speed": 5.0 282 }, { 283 "frames": [ SubResource( 52 ) ], 284 "loop": true, 285 "name": "dash_left", 286 "speed": 5.0 287 }, { 288 "frames": [ SubResource( 53 ) ], 289 "loop": true, 290 "name": "dash_right", 291 "speed": 5.0 292 }, { 293 "frames": [ SubResource( 54 ) ], 294 "loop": true, 295 "name": "dash_up", 296 "speed": 5.0 297 }, { 298 "frames": [ SubResource( 25 ), SubResource( 26 ), SubResource( 27 ), SubResource( 28 ) ], 299 "loop": true, 300 "name": "down", 301 "speed": 5.0 302 }, { 303 "frames": [ SubResource( 29 ), SubResource( 30 ), SubResource( 31 ), SubResource( 32 ), SubResource( 33 ), SubResource( 34 ) ], 304 "loop": true, 305 "name": "left", 306 "speed": 5.0 307 }, { 308 "frames": [ SubResource( 35 ), SubResource( 36 ), SubResource( 37 ), SubResource( 38 ), SubResource( 39 ), SubResource( 40 ) ], 309 "loop": true, 310 "name": "right", 311 "speed": 5.0 312 }, { 313 "frames": [ SubResource( 41 ), SubResource( 42 ), SubResource( 43 ), SubResource( 44 ) ], 314 "loop": true, 315 "name": "up", 316 "speed": 5.0 317 } ] 318 319 [sub_resource type="Gradient" id=48] 320 colors = PoolColorArray( 1, 1, 1, 1, 0.541176, 0.541176, 0.541176, 1 ) 321 322 [sub_resource type="GradientTexture" id=49] 323 gradient = SubResource( 48 ) 324 325 [node name="Level" type="Node2D"] 326 script = ExtResource( 1 ) 327 328 [node name="RoadBG" type="AnimatedSprite" parent="."] 329 frames = SubResource( 50 ) 330 centered = false 331 332 [node name="YSort" type="YSort" parent="."] 333 334 [node name="Walls" type="StaticBody2D" parent="YSort"] 335 material = SubResource( 2 ) 336 position = Vector2( 1067, 274 ) 337 338 [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="YSort/Walls"] 339 visible = false 340 build_mode = 1 341 polygon = PoolVector2Array( -1067, -274, -555, -274, -555, 26, -1067, 26 ) 342 disabled = true 343 344 [node name="BackWallShape" type="CollisionShape2D" parent="YSort/Walls"] 345 position = Vector2( -509, -116.5 ) 346 shape = SubResource( 46 ) 347 348 [node name="DownWallShape" type="CollisionShape2D" parent="YSort/Walls"] 349 position = Vector2( -888, 65 ) 350 rotation = 1.5708 351 shape = SubResource( 47 ) 352 353 [node name="TopWallShape" type="CollisionShape2D" parent="YSort/Walls"] 354 position = Vector2( -888, -313 ) 355 rotation = 1.5708 356 shape = SubResource( 47 ) 357 358 [node name="President" type="RigidBody2D" parent="YSort"] 359 position = Vector2( 29, 155 ) 360 mode = 2 361 script = ExtResource( 2 ) 362 363 [node name="CollisionShape2D" type="CollisionShape2D" parent="YSort/President"] 364 position = Vector2( 0, 12 ) 365 rotation = 1.5708 366 shape = SubResource( 3 ) 367 368 [node name="Sprite" type="AnimatedSprite" parent="YSort/President"] 369 frames = SubResource( 24 ) 370 animation = "dash_down" 371 playing = true 372 373 [node name="Guard" type="KinematicBody2D" parent="YSort"] 374 position = Vector2( 48, 90 ) 375 script = ExtResource( 4 ) 376 __meta__ = { 377 "_edit_group_": true 378 } 379 380 [node name="Sprite" type="AnimatedSprite" parent="YSort/Guard"] 381 frames = SubResource( 45 ) 382 animation = "right" 383 384 [node name="CollisionShape2D" type="CollisionShape2D" parent="YSort/Guard"] 385 position = Vector2( 0, 12 ) 386 rotation = 1.5708 387 shape = SubResource( 3 ) 388 389 [node name="Dash" type="Sprite" parent="YSort/Guard"] 390 visible = false 391 position = Vector2( 0, -33.0625 ) 392 scale = Vector2( 0.01, 2 ) 393 texture = SubResource( 49 ) 394 395 [node name="LvlLabel" type="Label" parent="."] 396 margin_left = 438.0 397 margin_top = 7.0 398 margin_right = 502.0 399 margin_bottom = 21.0 400 text = "lvl: 1" 401 align = 2 402 403 [connection signal="body_entered" from="YSort/President" to="YSort/President" method="_on_President_body_entered"]