diff --git a/graphics/tiles/oil.tres b/graphics/tiles/oil.tres new file mode 100644 index 0000000..29ebc9c --- /dev/null +++ b/graphics/tiles/oil.tres @@ -0,0 +1,14 @@ +[gd_resource type="AnimatedTexture" load_steps=4 format=2] + +[ext_resource path="res://graphics/tiles/oil_2.png" type="Texture" id=1] +[ext_resource path="res://graphics/tiles/oil_1.png" type="Texture" id=2] +[ext_resource path="res://graphics/tiles/oil_3.png" type="Texture" id=3] + +[resource] +frames = 3 +fps = 5.0 +frame_0/texture = ExtResource( 2 ) +frame_1/texture = ExtResource( 1 ) +frame_1/delay_sec = 0.0 +frame_2/texture = ExtResource( 3 ) +frame_2/delay_sec = 0.0 diff --git a/graphics/tiles/oil_1.png b/graphics/tiles/oil_1.png new file mode 100644 index 0000000..f594c81 Binary files /dev/null and b/graphics/tiles/oil_1.png differ diff --git a/graphics/tiles/oil_1.png.import b/graphics/tiles/oil_1.png.import new file mode 100644 index 0000000..ab77478 --- /dev/null +++ b/graphics/tiles/oil_1.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/oil_1.png-71a0c20092e1b028d894b8f235c01f34.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/tiles/oil_1.png" +dest_files=[ "res://.import/oil_1.png-71a0c20092e1b028d894b8f235c01f34.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/tiles/oil_2.png b/graphics/tiles/oil_2.png new file mode 100644 index 0000000..6edef50 Binary files /dev/null and b/graphics/tiles/oil_2.png differ diff --git a/graphics/tiles/oil_2.png.import b/graphics/tiles/oil_2.png.import new file mode 100644 index 0000000..ae7ef71 --- /dev/null +++ b/graphics/tiles/oil_2.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/oil_2.png-06401b4492a3087417e24a5a742c996b.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/tiles/oil_2.png" +dest_files=[ "res://.import/oil_2.png-06401b4492a3087417e24a5a742c996b.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/tiles/oil_3.png b/graphics/tiles/oil_3.png new file mode 100644 index 0000000..412a449 Binary files /dev/null and b/graphics/tiles/oil_3.png differ diff --git a/graphics/tiles/oil_3.png.import b/graphics/tiles/oil_3.png.import new file mode 100644 index 0000000..5abd370 --- /dev/null +++ b/graphics/tiles/oil_3.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/oil_3.png-cb7837d3212870c5dec358b2c4d92ec5.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/tiles/oil_3.png" +dest_files=[ "res://.import/oil_3.png-cb7837d3212870c5dec358b2c4d92ec5.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/graphics/tiles/oil_bottom.png b/graphics/tiles/oil_bottom.png new file mode 100644 index 0000000..c9a2123 Binary files /dev/null and b/graphics/tiles/oil_bottom.png differ diff --git a/graphics/tiles/oil_bottom.png.import b/graphics/tiles/oil_bottom.png.import new file mode 100644 index 0000000..edd2e8e --- /dev/null +++ b/graphics/tiles/oil_bottom.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/oil_bottom.png-54a30e61dae210f9fb93ef8952d0fea8.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/tiles/oil_bottom.png" +dest_files=[ "res://.import/oil_bottom.png-54a30e61dae210f9fb93ef8952d0fea8.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=false +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/maps/rust.tscn b/maps/rust.tscn index 9c3af63..e8d0924 100644 --- a/maps/rust.tscn +++ b/maps/rust.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=16 format=2] +[gd_scene load_steps=18 format=2] [ext_resource path="res://maps/map.gd" type="Script" id=1] [ext_resource path="res://objects/Camera2D.tscn" type="PackedScene" id=2] @@ -14,6 +14,8 @@ [ext_resource path="res://objects/enemy/tin.tscn" type="PackedScene" id=12] [ext_resource path="res://objects/enemy/roboturret.tscn" type="PackedScene" id=13] [ext_resource path="res://objects/environment/ladder/ladder.tscn" type="PackedScene" id=14] +[ext_resource path="res://objects/environment/switches/button.tscn" type="PackedScene" id=15] +[ext_resource path="res://tilesets/t_death.tres" type="TileSet" id=16] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 4, 112 ) @@ -38,30 +40,55 @@ __meta__ = { tile_set = ExtResource( 4 ) cell_size = Vector2( 8, 8 ) format = 1 -tile_data = PoolIntArray( 589830, 0, 0, 655366, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 655385, 0, 0, 655386, 0, 0, 655387, 0, 0, 655388, 0, 0, 655389, 0, 0, 655390, 0, 0, 655391, 0, 0, 655392, 0, 0, 655393, 0, 0, 655394, 0, 0, 655395, 0, 0, 655396, 0, 0, 655397, 0, 0, 655398, 0, 0, 655399, 0, 0, 655400, 0, 0, 655401, 0, 0, 655402, 0, 0, 720902, 0, 0, 786438, 0, 0, 851974, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 0, 0, 917517, 0, 0, 917518, 0, 0, 917519, 0, 0, 917520, 0, 0, 917521, 0, 0, 917522, 0, 0, 983078, 0, 0, 983079, 0, 0, 983080, 0, 0, 983081, 0, 0, 1114135, 0, 131072, 1114136, 0, 65537, 1114137, 0, 65537, 1114138, 0, 65537, 1114139, 0, 65537, 1114140, 0, 65537, 1114141, 0, 65537, 1114142, 0, 65537, 1114143, 0, 65537, 1114144, 0, 65537, 1114145, 0, 65537, 1114146, 0, 65538, 1114147, 0, 65537, 1114148, -1610612736, 131072, 1179661, 0, 65536, 1179662, 0, 65537, 1179663, 0, 65537, 1179664, 0, 65537, 1179665, 0, 131074, 1179666, 0, 65537, 1179667, 0, 65537, 1179668, 0, 65537, 1179669, 0, 65537, 1179670, 0, 131074, 1179671, 1610612736, 131072, 1179684, -1073741824, 65537, 1179692, 0, 0, 1179693, 0, 0, 1179694, 0, 0, 1179695, 0, 0, 1179696, 0, 0, 1245220, -1073741824, 131072, 1245221, 0, 65537, 1245222, 0, 65537, 1245223, 0, 131075, 1376263, 0, 0, 1441792, 0, 1, 1441793, 0, 2, 1441794, 0, 2, 1441795, 0, 2, 1441796, 0, 2, 1441797, 0, 2, 1441798, 0, 2, 1441799, 0, 2, 1441800, 0, 2, 1441801, 0, 2, 1441802, 0, 2, 1441803, 0, 2, 1441804, 0, 2, 1441805, 0, 2, 1441806, 0, 2, 1441807, 0, 2, 1441808, 0, 2, 1441809, 0, 2, 1441810, 0, 2, 1441811, 0, 2, 1441812, 0, 2, 1441813, 0, 2, 1441814, 0, 2, 1441815, 0, 2, 1441816, 0, 2, 1441817, 0, 2, 1441818, 0, 2, 1441819, 0, 2, 1441820, 0, 2, 1441821, 0, 2, 1441822, 0, 2, 1441823, 0, 2, 1441824, 0, 2, 1441825, 0, 2, 1441826, 0, 2, 1441827, 0, 2, 1441828, 0, 2, 1441829, 0, 2, 1441830, 0, 2, 1441831, 0, 2, 1441832, 0, 2, 1441833, 0, 2, 1441834, 0, 2, 1441835, 0, 2, 1441836, 0, 2, 1441837, 0, 2, 1441838, 0, 2, 1441839, 0, 2, 1441840, 0, 2, 1441841, 0, 2, 1441842, 0, 2, 1441843, 0, 2, 1441844, 0, 2, 1441845, 0, 2, 1441846, 0, 2, 1441847, 0, 2, 1441848, 0, 2, 1441849, 0, 2, 1441850, 0, 2, 1441851, 0, 2, 1441852, 0, 2, 1441853, 0, 2, 1441854, 0, 2, 1441855, 0, 2, 1441856, 0, 2, 1441857, 0, 2, 1441858, 0, 2, 1441859, 0, 2, 1441860, 0, 2, 1441861, 0, 2, 1441862, 0, 2, 1441863, 0, 2, 1441864, 0, 2, 1441865, 0, 2, 1441866, 0, 2, 1441867, 0, 2, 1441868, 0, 2, 1441869, 0, 2, 1441870, 0, 2, 1441871, 0, 2, 1441872, 0, 2, 1441873, 0, 2, 1441874, 0, 2, 1441875, 0, 2, 1441876, 0, 2, 1441877, 0, 2, 1441878, 0, 2, 1441879, 0, 2, 1441880, 0, 2, 1441881, 0, 2, 1441882, 0, 2, 1441883, 0, 2, 1441884, 0, 2, 1441885, 0, 2, 1441886, 0, 2, 1441887, 0, 3, 1507328, 0, 0, 1507329, 0, 0, 1507330, 0, 0, 1507331, 0, 0, 1507332, 0, 0, 1507333, 0, 0, 1507334, 0, 0, 1507335, 0, 0, 1507336, 0, 0, 1507337, 0, 0, 1507338, 0, 0, 1507339, 0, 0, 1507340, 0, 0, 1507341, 0, 0, 1507342, 0, 0, 1507343, 0, 0, 1507344, 0, 0, 1507345, 0, 0, 1507346, 0, 0, 1507347, 0, 0, 1507348, 0, 0, 1507349, 0, 0, 1507350, 0, 0, 1507351, 0, 0, 1507352, 0, 0, 1507353, 0, 0, 1507354, 0, 0, 1507355, 0, 0, 1507356, 0, 0, 1507357, 0, 0, 1507358, 0, 0, 1507359, 0, 0, 1507360, 0, 0, 1507361, 0, 0, 1507362, 0, 0, 1507363, 0, 0, 1507364, 0, 0, 1507365, 0, 0, 1507366, 0, 0, 1507367, 0, 0, 1507368, 0, 0, 1507369, 0, 0, 1507370, 0, 0, 1507371, 0, 0, 1507372, 0, 0, 1507373, 0, 0, 1507374, 0, 0, 1507375, 0, 0, 1507376, 0, 0, 1507377, 0, 0, 1507378, 0, 0, 1507379, 0, 0, 1507380, 0, 0, 1507381, 0, 0, 1507382, 0, 0, 1507383, 0, 0, 1507384, 0, 0, 1507385, 0, 0, 1507386, 0, 0, 1507387, 0, 0, 1507388, 0, 0, 1507389, 0, 0, 1507390, 0, 0, 1507391, 0, 0, 1507392, 0, 0, 1507393, 0, 0, 1507394, 0, 0, 1507395, 0, 0, 1507396, 0, 0, 1507397, 0, 0, 1507398, 0, 0, 1507399, 0, 0, 1507400, 0, 0, 1507401, 0, 0, 1507402, 0, 0, 1507403, 0, 0, 1507404, 0, 0, 1507405, 0, 0, 1507406, 0, 0, 1507407, 0, 0, 1507408, 0, 0, 1507409, 0, 0, 1507410, 0, 0, 1507411, 0, 0, 1507412, 0, 0, 1507413, 0, 0, 1507414, 0, 0, 1507415, 0, 0, 1507416, 0, 0, 1507417, 0, 0, 1507418, 0, 0, 1507419, 0, 0, 1507420, 0, 0, 1507421, 0, 0, 1507422, 0, 0, 1507423, 0, 0 ) +tile_data = PoolIntArray( 196613, 0, 0, 196614, 0, 0, 262155, 0, 0, 262156, 0, 0, 262157, 0, 0, 262158, 0, 0, 262159, 0, 0, 262160, 0, 0, 262161, 0, 0, 262162, 0, 0, 262163, 0, 0, 262164, 0, 0, 262165, 0, 0, 262166, 0, 0, 262167, 0, 0, 262168, 0, 0, 262169, 0, 0, 262170, 0, 0, 262171, 0, 0, 262172, 0, 0, 262173, 0, 0, 262174, 0, 0, 262175, 0, 0, 327691, 0, 0, 393227, 0, 0, 393269, 0, 0, 393270, 0, 0, 393271, 0, 0, 393272, 0, 0, 393273, 0, 0, 393274, 0, 0, 393275, 0, 0, 393276, 0, 0, 393277, 0, 0, 393278, 0, 0, 393279, 0, 0, 393280, 0, 0, 393281, 0, 0, 393282, 0, 0, 393286, 0, 0, 393287, 0, 0, 393288, 0, 0, 458763, 0, 0, 458805, 0, 0, 458824, 0, 0, 524299, 0, 0, 524341, 0, 0, 524360, 0, 0, 524361, 0, 0, 524362, 0, 0, 589830, 0, 0, 589831, 0, 196609, 589832, 0, 196609, 589833, 0, 0, 589834, 0, 0, 589835, 0, 0, 589877, 0, 0, 589898, 0, 0, 589899, 0, 0, 589900, 0, 0, 589901, 0, 0, 655366, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 655380, 0, 0, 655381, 0, 0, 655382, 0, 0, 655383, 0, 0, 655384, 0, 0, 655385, 0, 0, 655386, 0, 0, 655387, 0, 0, 655388, 0, 0, 655389, 0, 0, 655390, 0, 0, 655391, 0, 0, 655392, 0, 0, 655393, 0, 0, 655394, 0, 0, 655395, 0, 0, 655396, 0, 0, 655397, 0, 0, 655398, 0, 0, 655399, 0, 0, 655400, 0, 0, 655401, 0, 0, 720902, 0, 0, 720903, 0, 196609, 720904, 0, 196609, 786438, 0, 0, 851974, 0, 0, 851975, 0, 196609, 851976, 0, 196609, 917510, 0, 0, 917550, 0, 0, 917551, 0, 0, 917552, 0, 0, 917553, 0, 0, 917554, 0, 0, 917555, 0, 0, 917556, 0, 0, 983046, 0, 0, 983047, 0, 0, 983048, 0, 0, 983049, 0, 0, 983050, 0, 0, 983051, 0, 0, 983052, 0, 0, 983053, 0, 0, 983054, 0, 0, 983055, 0, 0, 983056, 0, 0, 983057, 0, 0, 983058, 0, 0, 983078, 0, 0, 983079, 0, 0, 983080, 0, 0, 983081, 0, 0, 1114135, 0, 131072, 1114136, 0, 65537, 1114137, 0, 65537, 1114138, 0, 65537, 1114139, 0, 65537, 1114140, 0, 65537, 1114141, 0, 65538, 1114142, 0, 65537, 1114143, 0, 65537, 1114144, 0, 65537, 1114145, 0, 65537, 1114146, 0, 262144, 1114147, 0, 262145, 1114148, -1610612736, 131072, 1179661, 0, 65536, 1179662, 0, 65537, 1179663, 0, 131074, 1179664, 0, 65538, 1179665, 0, 65537, 1179666, 0, 262144, 1179667, 0, 262145, 1179668, 0, 65538, 1179669, 0, 131074, 1179670, 0, 65537, 1179671, 1610612736, 131072, 1179684, -1073741824, 65537, 1245220, -1073741824, 131072, 1245221, 0, 65537, 1245222, 0, 65537, 1245223, 0, 131075, 1376261, 0, 0, 1441792, 0, 1, 1441793, 0, 2, 1441794, 0, 2, 1441795, 0, 2, 1441796, 0, 2, 1441797, 0, 2, 1441798, 0, 2, 1441799, 0, 2, 1441800, 0, 2, 1441801, 0, 2, 1441802, 0, 2, 1441803, 0, 2, 1441804, 0, 2, 1441805, 0, 2, 1441806, 0, 2, 1441807, 0, 2, 1441808, 0, 2, 1441809, 0, 2, 1441810, 0, 2, 1441811, 0, 2, 1441812, 0, 2, 1441813, 0, 2, 1441814, 0, 2, 1441815, 0, 2, 1441816, 0, 2, 1441817, 0, 2, 1441818, 0, 2, 1441819, 0, 2, 1441820, 0, 2, 1441821, 0, 2, 1441822, 0, 2, 1441823, 0, 2, 1441824, 0, 2, 1441825, 0, 2, 1441826, 0, 2, 1441827, 0, 2, 1441828, 0, 2, 1441829, 0, 2, 1441830, 0, 2, 1441831, 0, 2, 1441832, 0, 2, 1441833, 0, 2, 1441834, 0, 2, 1441835, 0, 2, 1441836, 0, 2, 1441837, 0, 3, 1441843, 0, 1, 1441844, 0, 2, 1441845, 0, 2, 1441846, 0, 2, 1441847, 0, 2, 1441848, 0, 2, 1441849, 0, 2, 1441850, 0, 2, 1441851, 0, 2, 1441852, 0, 2, 1441853, 0, 2, 1441854, 0, 2, 1441855, 0, 2, 1441856, 0, 2, 1441857, 0, 2, 1441858, 0, 2, 1441859, 0, 2, 1441860, 0, 2, 1441861, 0, 2, 1441862, 0, 2, 1441863, 0, 2, 1441864, 0, 2, 1441865, 0, 2, 1441866, 0, 2, 1441867, 0, 2, 1441868, 0, 2, 1441869, 0, 2, 1441870, 0, 2, 1441871, 0, 2, 1441872, 0, 2, 1441873, 0, 2, 1441874, 0, 2, 1441875, 0, 2, 1441876, 0, 2, 1441877, 0, 2, 1441878, 0, 2, 1441879, 0, 2, 1441880, 0, 2, 1441881, 0, 2, 1441882, 0, 2, 1441883, 0, 2, 1441884, 0, 2, 1441885, 0, 2, 1441886, 0, 2, 1441887, 0, 3, 1507328, 0, 0, 1507329, 0, 0, 1507330, 0, 0, 1507331, 0, 0, 1507332, 0, 0, 1507333, 0, 0, 1507334, 0, 0, 1507335, 0, 0, 1507336, 0, 0, 1507337, 0, 0, 1507338, 0, 0, 1507339, 0, 0, 1507340, 0, 0, 1507341, 0, 0, 1507342, 0, 0, 1507343, 0, 0, 1507344, 0, 0, 1507345, 0, 0, 1507346, 0, 0, 1507347, 0, 0, 1507348, 0, 0, 1507349, 0, 0, 1507350, 0, 0, 1507351, 0, 0, 1507352, 0, 0, 1507353, 0, 0, 1507354, 0, 0, 1507355, 0, 0, 1507356, 0, 0, 1507357, 0, 0, 1507358, 0, 0, 1507359, 0, 0, 1507360, 0, 0, 1507361, 0, 0, 1507362, 0, 0, 1507363, 0, 0, 1507364, 0, 0, 1507365, 0, 0, 1507366, 0, 0, 1507367, 0, 0, 1507368, 0, 0, 1507369, 0, 0, 1507370, 0, 0, 1507371, 0, 0, 1507372, 0, 0, 1507373, 0, 0, 1507374, 0, 0, 1507375, 0, 0, 1507376, 0, 0, 1507377, 0, 0, 1507378, 0, 0, 1507379, 0, 0, 1507380, 0, 0, 1507381, 0, 0, 1507382, 0, 0, 1507383, 0, 0, 1507384, 0, 0, 1507385, 0, 0, 1507386, 0, 0, 1507387, 0, 0, 1507388, 0, 0, 1507389, 0, 0, 1507390, 0, 0, 1507391, 0, 0, 1507392, 0, 0, 1507393, 0, 0, 1507394, 0, 0, 1507395, 0, 0, 1507396, 0, 0, 1507397, 0, 0, 1507398, 0, 0, 1507399, 0, 0, 1507400, 0, 0, 1507401, 0, 0, 1507402, 0, 0, 1507403, 0, 0, 1507404, 0, 0, 1507405, 0, 0, 1507406, 0, 0, 1507407, 0, 0, 1507408, 0, 0, 1507409, 0, 0, 1507410, 0, 0, 1507411, 0, 0, 1507412, 0, 0, 1507413, 0, 0, 1507414, 0, 0, 1507415, 0, 0, 1507416, 0, 0, 1507417, 0, 0, 1507418, 0, 0, 1507419, 0, 0, 1507420, 0, 0, 1507421, 0, 0, 1507422, 0, 0, 1507423, 0, 0 ) [node name="Player" parent="." instance=ExtResource( 5 )] position = Vector2( 32, 160 ) +[node name="Death" type="TileMap" parent="." groups=["death"]] +tile_set = ExtResource( 16 ) +cell_size = Vector2( 8, 8 ) +collision_layer = 32 +format = 1 +tile_data = PoolIntArray( 1441838, 7, 0, 1441839, 7, 0, 1441840, 7, 0, 1441841, 7, 0, 1441842, 7, 0, 1507374, 6, 0, 1507375, 6, 0, 1507376, 6, 0, 1507377, 6, 0, 1507378, 6, 0 ) + [node name="Ladder" type="TileMap" parent="."] tile_set = ExtResource( 4 ) cell_size = Vector2( 8, 8 ) format = 1 -tile_data = PoolIntArray( 786476, 0, 196608, 852012, 0, 196608, 917548, 0, 196608, 983084, 0, 196608 ) +tile_data = PoolIntArray( 196618, 0, 196608, 262154, 0, 196608, 327690, 0, 196608, 393226, 0, 196608, 458762, 0, 196608, 524298, 0, 196608, 589826, 0, 196608, 655362, 0, 196608, 720898, 0, 196608, 786434, 0, 196608, 786476, 0, 196608, 851970, 0, 196608, 852012, 0, 196608, 917506, 0, 196608, 917548, 0, 196608, 983042, 0, 196608, 983084, 0, 196608, 1048578, 0, 196608 ) [node name="Environment" type="Node2D" parent="."] [node name="Rock" parent="Environment" instance=ExtResource( 8 )] position = Vector2( 314, 145 ) +[node name="Rock2" parent="Environment" instance=ExtResource( 8 )] +position = Vector2( 146, 112 ) + [node name="TurningPlatform" parent="Environment" instance=ExtResource( 9 )] position = Vector2( 88, 160 ) time = 30.0 +[node name="TurningPlatform2" parent="Environment" instance=ExtResource( 9 )] +position = Vector2( 384, 168 ) +time = 30.0 + [node name="Ladder" parent="Environment" instance=ExtResource( 14 )] position = Vector2( 352, 96 ) scale = Vector2( 1, 4 ) +[node name="Ladder2" parent="Environment" instance=ExtResource( 14 )] +position = Vector2( 16, 72 ) +scale = Vector2( 1, 8 ) + +[node name="Ladder3" parent="Environment" instance=ExtResource( 14 )] +position = Vector2( 80, 24 ) +scale = Vector2( 1, 6 ) + +[node name="Button" parent="Environment" instance=ExtResource( 15 )] +position = Vector2( 80, 112 ) + [node name="Enemies" type="Node2D" parent="."] [node name="Steam" parent="Enemies" instance=ExtResource( 7 )] @@ -70,22 +97,56 @@ rotation = -1.57079 off_time = 1.5 on_time = 1.0 -[node name="Steam2" parent="Enemies" instance=ExtResource( 7 )] -position = Vector2( 144, 152 ) +[node name="Steam2" parent="Enemies" groups=["button1"] instance=ExtResource( 7 )] +position = Vector2( 128, 152 ) rotation = 3.14159 -[node name="Steam3" parent="Enemies" instance=ExtResource( 7 )] -position = Vector2( 184, 152 ) +[node name="Steam3" parent="Enemies" groups=["button1"] instance=ExtResource( 7 )] +position = Vector2( 176, 152 ) rotation = 3.14159 [node name="RollingSaw" parent="Enemies" instance=ExtResource( 11 )] position = Vector2( 312, 112 ) +[node name="RollingSaw3" parent="Enemies" instance=ExtResource( 11 )] +position = Vector2( 568, 40 ) + +[node name="RollingSaw4" parent="Enemies" instance=ExtResource( 11 )] +position = Vector2( 608, 80 ) + +[node name="RollingSaw2" parent="Enemies" instance=ExtResource( 11 )] +position = Vector2( 40, 16 ) + [node name="Tin" parent="Enemies" instance=ExtResource( 12 )] position = Vector2( 168, 128 ) up_boundary = 5.0 down_boundary = 2.0 +[node name="Tin5" parent="Enemies" instance=ExtResource( 12 )] +position = Vector2( 360, 168 ) +up_boundary = 5.0 + +[node name="Tin6" parent="Enemies" instance=ExtResource( 12 )] +position = Vector2( 408, 160 ) +up_boundary = 6.0 +down_boundary = 1.0 +move_direction = 1 + +[node name="Tin2" parent="Enemies" instance=ExtResource( 12 )] +position = Vector2( 24, 112 ) +up_boundary = 2.0 +down_boundary = 4.0 + +[node name="Tin4" parent="Enemies" instance=ExtResource( 12 )] +position = Vector2( 104, 88 ) +up_boundary = 3.0 + +[node name="Tin3" parent="Enemies" instance=ExtResource( 12 )] +position = Vector2( 24, 64 ) +up_boundary = 2.0 +down_boundary = 4.0 +move_direction = 1 + [node name="Collectibles" type="Node2D" parent="."] [node name="StaticBody2D" type="StaticBody2D" parent="."] diff --git a/maps/test_room.tscn b/maps/test_room.tscn index ee1788a..4ab8e4b 100644 --- a/maps/test_room.tscn +++ b/maps/test_room.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=26 format=2] +[gd_scene load_steps=27 format=2] [ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=1] [ext_resource path="res://tilesets/t_cave.tres" type="TileSet" id=2] @@ -45,6 +45,9 @@ animations = [ { "speed": 20.0 } ] +[sub_resource type="RectangleShape2D" id=8] +extents = Vector2( 4, 4 ) + [node name="Map2" type="Node2D" groups=["map"]] script = ExtResource( 11 ) @@ -193,4 +196,14 @@ position = Vector2( 27, 128 ) [node name="Roboturret" parent="." instance=ExtResource( 24 )] position = Vector2( 168, 152 ) +[node name="StaticBody2D" type="StaticBody2D" parent="."] + +[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"] +position = Vector2( 196, 116 ) +shape = SubResource( 8 ) + +[node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D"] +position = Vector2( 210, 116 ) +shape = SubResource( 8 ) + [editable path="RollingFiend"] diff --git a/tilesets/t_death.tres b/tilesets/t_death.tres index 4610eff..9f521d4 100644 --- a/tilesets/t_death.tres +++ b/tilesets/t_death.tres @@ -1,8 +1,10 @@ -[gd_resource type="TileSet" load_steps=8 format=2] +[gd_resource type="TileSet" load_steps=11 format=2] [ext_resource path="res://graphics/tiles/water.tres" type="Texture" id=1] [ext_resource path="res://graphics/tiles/spike.png" type="Texture" id=2] [ext_resource path="res://graphics/tiles/water_bottom.png" type="Texture" id=3] +[ext_resource path="res://graphics/tiles/oil_bottom.png" type="Texture" id=4] +[ext_resource path="res://graphics/tiles/oil.tres" type="Texture" id=5] [sub_resource type="ConvexPolygonShape2D" id=1] points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) @@ -16,6 +18,9 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) [sub_resource type="ConvexPolygonShape2D" id=4] points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) +[sub_resource type="ConvexPolygonShape2D" id=5] +points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) + [resource] 0/name = "water.tres 0" 0/texture = ExtResource( 1 ) @@ -128,3 +133,52 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) } ] 4/z_index = 0 +6/name = "oil_bottom.png 6" +6/texture = ExtResource( 4 ) +6/tex_offset = Vector2( 0, 0 ) +6/modulate = Color( 1, 1, 1, 1 ) +6/region = Rect2( 0, 0, 8, 8 ) +6/tile_mode = 2 +6/autotile/icon_coordinate = Vector2( 0, 0 ) +6/autotile/tile_size = Vector2( 8, 8 ) +6/autotile/spacing = 0 +6/autotile/occluder_map = [ ] +6/autotile/navpoly_map = [ ] +6/autotile/priority_map = [ ] +6/autotile/z_index_map = [ ] +6/occluder_offset = Vector2( 0, 0 ) +6/navigation_offset = Vector2( 0, 0 ) +6/shape_offset = Vector2( 0, 0 ) +6/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +6/shape = SubResource( 5 ) +6/shape_one_way = false +6/shape_one_way_margin = 1.0 +6/shapes = [ { +"autotile_coord": Vector2( 0, 0 ), +"one_way": false, +"one_way_margin": 1.0, +"shape": SubResource( 5 ), +"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) +} ] +6/z_index = 0 +7/name = "oil.tres 7" +7/texture = ExtResource( 5 ) +7/tex_offset = Vector2( 0, 0 ) +7/modulate = Color( 1, 1, 1, 1 ) +7/region = Rect2( 0, 0, 8, 8 ) +7/tile_mode = 2 +7/autotile/icon_coordinate = Vector2( 0, 0 ) +7/autotile/tile_size = Vector2( 8, 8 ) +7/autotile/spacing = 0 +7/autotile/occluder_map = [ ] +7/autotile/navpoly_map = [ ] +7/autotile/priority_map = [ ] +7/autotile/z_index_map = [ ] +7/occluder_offset = Vector2( 0, 0 ) +7/navigation_offset = Vector2( 0, 0 ) +7/shape_offset = Vector2( 0, 0 ) +7/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) +7/shape_one_way = false +7/shape_one_way_margin = 0.0 +7/shapes = [ ] +7/z_index = 0