diff --git a/.import/turniwood_yellow.png-daf009113c5daf504d58a9354a706f88.md5 b/.import/turniwood_yellow.png-daf009113c5daf504d58a9354a706f88.md5 new file mode 100644 index 0000000..0712c2d --- /dev/null +++ b/.import/turniwood_yellow.png-daf009113c5daf504d58a9354a706f88.md5 @@ -0,0 +1,3 @@ +source_md5="f525d445e4ed5980188f7ea6b568dd05" +dest_md5="f5d17549b4206c565ccce1e105ecba3c" + diff --git a/.import/turniwood_yellow.png-daf009113c5daf504d58a9354a706f88.stex b/.import/turniwood_yellow.png-daf009113c5daf504d58a9354a706f88.stex new file mode 100644 index 0000000..a2ee26d Binary files /dev/null and b/.import/turniwood_yellow.png-daf009113c5daf504d58a9354a706f88.stex differ diff --git a/graphics/turniwood/turniwood_yellow.png b/graphics/turniwood/turniwood_yellow.png new file mode 100644 index 0000000..bc5ce12 Binary files /dev/null and b/graphics/turniwood/turniwood_yellow.png differ diff --git a/graphics/turniwood/turniwood_yellow.png.import b/graphics/turniwood/turniwood_yellow.png.import new file mode 100644 index 0000000..308bf3f --- /dev/null +++ b/graphics/turniwood/turniwood_yellow.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/turniwood_yellow.png-daf009113c5daf504d58a9354a706f88.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://graphics/turniwood/turniwood_yellow.png" +dest_files=[ "res://.import/turniwood_yellow.png-daf009113c5daf504d58a9354a706f88.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/map01.tscn b/maps/map01.tscn index 92d9b09..2e041b5 100644 --- a/maps/map01.tscn +++ b/maps/map01.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=18 format=2] +[gd_scene load_steps=20 format=2] [ext_resource path="res://objects/player/player.tscn" type="PackedScene" id=1] [ext_resource path="res://objects/ladder/ladder.tscn" type="PackedScene" id=2] @@ -16,6 +16,8 @@ [ext_resource path="res://objects/enemy/snake.tscn" type="PackedScene" id=14] [ext_resource path="res://objects/barrier/barrier.tscn" type="PackedScene" id=15] [ext_resource path="res://objects/turniwood/turniwood.tscn" type="PackedScene" id=16] +[ext_resource path="res://objects/collectibles/arrow.tscn" type="PackedScene" id=17] +[ext_resource path="res://objects/rock/rock.tscn" type="PackedScene" id=18] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 8, 128 ) @@ -33,11 +35,17 @@ __meta__ = { "_edit_lock_": true } +[node name="BackgroundTiles" type="TileMap" parent="."] +tile_set = ExtResource( 7 ) +cell_size = Vector2( 8, 8 ) +format = 1 +tile_data = PoolIntArray( 1114164, 0, 3, 1114165, 0, 0, 1179692, 0, 3 ) + [node name="Ground" type="TileMap" parent="."] tile_set = ExtResource( 7 ) cell_size = Vector2( 8, 8 ) format = 1 -tile_data = PoolIntArray( 327687, 2, 1, 327689, 2, 0, 327696, 2, 2, 327702, 2, 3, 327703, 2, 3, 393219, 0, 65536, 393220, 0, 65537, 393221, 0, 65537, 393222, 0, 65537, 393223, 0, 65537, 393224, 0, 65537, 393225, 0, 65537, 393226, 0, 65537, 393227, 0, 65538, 393231, 0, 65536, 393232, 0, 65537, 393233, 0, 65538, 393236, 0, 65536, 393237, 0, 65537, 393238, 0, 65537, 393239, 0, 65537, 393240, 0, 65537, 393241, 0, 65538, 393244, 0, 65537, 393245, 0, 65537, 393246, 0, 65537, 393247, 0, 65537, 393248, 0, 65537, 393249, 0, 65537, 393250, 0, 65537, 393251, 0, 65537, 393252, 0, 65537, 393253, 0, 65537, 393254, 0, 65537, 589844, 0, 65536, 589845, 0, 65537, 589846, 0, 65537, 589847, 0, 65537, 589848, 0, 65537, 589849, 0, 65538, 655368, 0, 65536, 655369, 0, 65537, 655370, 0, 65537, 655371, 0, 65537, 655372, 0, 65537, 655373, 0, 65538, 720906, 0, 196611, 786442, 0, 196610, 851968, 0, 65537, 851969, 0, 65537, 851970, 0, 65537, 851971, 0, 65537, 851972, 0, 65537, 851973, 0, 65538, 851978, 0, 65539, 851987, 2, 1, 851989, 2, 2, 917514, 0, 65537, 917515, 0, 65537, 917516, 0, 65537, 917517, 0, 65537, 917518, 0, 65537, 917519, 0, 65537, 917520, 0, 65537, 917521, 0, 65537, 917522, 0, 65537, 917523, 0, 65537, 917524, 0, 65537, 917525, 0, 65537, 917526, 0, 65537, 917527, 0, 65537, 917528, 0, 65537, 917529, 0, 65537, 917530, 0, 65537, 917531, 0, 65537, 917532, 0, 65537, 917533, 0, 65537, 917534, 0, 65537, 917535, 0, 65537, 917536, 0, 65537, 917537, 0, 65537, 917538, 0, 65537, 917539, 0, 65537, 917540, 0, 65537, 917541, 0, 65537, 917542, 0, 65537, 917543, 0, 65537, 917544, 0, 65537, 1179649, 0, 65536, 1179650, 0, 65537, 1179651, 0, 65538, 1179654, 0, 65536, 1179655, 0, 65537, 1179656, 0, 65537, 1179657, 0, 65537, 1179658, 0, 65537, 1179659, 0, 65537, 1179660, 0, 65537, 1179661, 0, 65537, 1179662, 0, 65538, 1179689, 0, 131072, 1179690, 0, 0, 1179691, 0, 0, 1179692, 0, 131073, 1245191, 0, 65537, 1245202, 2, 2, 1245207, 0, 196611, 1245224, 0, 131072, 1245225, 0, 131075, 1245226, 0, 1, 1245227, 0, 1, 1245228, 536870912, 2, 1310730, 0, 65537, 1310736, 0, 131072, 1310737, 536870912, 0, 1310738, 536870912, 0, 1310739, 536870912, 0, 1310740, 0, 131073, 1310743, 1073741824, 196611, 1310760, 0, 2, 1310761, 0, 1, 1310762, 0, 1, 1310763, 0, 1, 1310764, 536870912, 2, 1376257, 2, 0, 1376261, 2, 1, 1376263, 2, 2, 1376266, 2, 2, 1376269, 2, 3, 1376271, 0, 131072, 1376272, 0, 131075, 1376273, 536870912, 1, 1376274, 536870912, 1, 1376275, 536870912, 1, 1376276, 0, 131074, 1376277, 0, 131073, 1376279, 0, 65539, 1376281, 2, 1, 1376296, 0, 2, 1376297, 0, 1, 1376298, 0, 1, 1376299, 0, 1, 1376300, 536870912, 2, 1441792, 0, 0, 1441793, 0, 0, 1441794, 0, 0, 1441795, 0, 0, 1441796, 0, 0, 1441797, 0, 0, 1441798, 0, 0, 1441799, 0, 0, 1441800, 0, 0, 1441801, 0, 0, 1441802, 0, 0, 1441803, 0, 0, 1441804, 0, 0, 1441805, 0, 0, 1441806, 0, 0, 1441807, 0, 131075, 1441808, 0, 1, 1441809, 0, 1, 1441810, 0, 1, 1441811, 0, 1, 1441812, 0, 1, 1441813, 0, 131074, 1441814, 0, 0, 1441815, 0, 0, 1441816, 0, 0, 1441817, 0, 0, 1441818, 0, 0, 1441819, 0, 0, 1441820, 0, 0, 1441821, 0, 0, 1441822, 0, 0, 1441823, 0, 0, 1441824, 0, 0, 1441825, 0, 0, 1441826, 0, 0, 1441827, 0, 0, 1441828, 0, 0, 1441829, 0, 0, 1441830, 0, 0, 1441831, 0, 0, 1441832, 0, 131075, 1441833, 0, 1, 1441834, 0, 1, 1441835, 0, 1, 1441836, 0, 131074, 1441845, 0, 0, 1441846, 0, 0, 1441847, 0, 0, 1441848, 0, 0, 1441849, 0, 0, 1441850, 0, 0, 1441851, 0, 0, 1441852, 0, 0, 1441853, 0, 0, 1441854, 0, 0, 1441855, 0, 0, 1441856, 0, 0, 1441857, 0, 0, 1441858, 0, 0, 1441859, 0, 0, 1441860, 0, 0, 1441861, 0, 0, 1441862, 0, 0, 1441863, 0, 0, 1441864, 0, 0, 1441865, 0, 0, 1441866, 0, 0, 1441867, 0, 0, 1441868, 0, 0, 1441869, 0, 0, 1441870, 0, 0, 1441871, 0, 0, 1441872, 0, 0, 1441873, 0, 0, 1441874, 0, 0, 1441875, 0, 0, 1441876, 0, 0, 1441877, 0, 0, 1441878, 0, 0, 1441879, 0, 0, 1441880, 0, 0, 1441881, 0, 0, 1441882, 0, 0, 1441883, 0, 0, 1441884, 0, 0, 1441885, 0, 0, 1441886, 0, 0, 1441887, 0, 0, 1507328, 0, 1, 1507329, 0, 1, 1507330, 0, 1, 1507331, 0, 1, 1507332, 0, 1, 1507333, 0, 1, 1507334, 0, 1, 1507335, 0, 1, 1507336, 0, 1, 1507337, 0, 1, 1507338, 0, 1, 1507339, 0, 1, 1507340, 0, 1, 1507341, 0, 1, 1507342, 0, 1, 1507343, 0, 1, 1507344, 0, 1, 1507345, 0, 1, 1507346, 0, 1, 1507347, 0, 1, 1507348, 0, 1, 1507349, 0, 1, 1507350, 0, 1, 1507351, 0, 1, 1507352, 0, 1, 1507353, 0, 1, 1507354, 0, 1, 1507355, 0, 1, 1507356, 0, 1, 1507357, 0, 1, 1507358, 0, 1, 1507359, 0, 1, 1507360, 0, 1, 1507361, 0, 1, 1507362, 0, 1, 1507363, 0, 1, 1507364, 0, 1, 1507365, 0, 1, 1507366, 0, 1, 1507367, 0, 1, 1507368, 0, 1, 1507369, 0, 1, 1507370, 0, 1, 1507371, 0, 1, 1507372, 0, 1, 1507373, 0, 1, 1507374, 0, 1, 1507375, 0, 1, 1507376, 0, 1, 1507377, 0, 1, 1507378, 0, 1, 1507379, 0, 1, 1507380, 0, 1, 1507381, 0, 1, 1507382, 0, 1, 1507383, 0, 1, 1507384, 0, 1, 1507385, 0, 1, 1507386, 0, 1, 1507387, 0, 1, 1507388, 0, 1, 1507389, 0, 1, 1507390, 0, 1, 1507391, 0, 1, 1507392, 0, 1, 1507393, 0, 1, 1507394, 0, 1, 1507395, 0, 1, 1507396, 0, 1, 1507397, 0, 1, 1507398, 0, 1, 1507399, 0, 1, 1507400, 0, 1, 1507401, 0, 1, 1507402, 0, 1, 1507403, 0, 1, 1507404, 0, 1, 1507405, 0, 1, 1507406, 0, 1, 1507407, 0, 1, 1507408, 0, 1, 1507409, 0, 1, 1507410, 0, 1, 1507411, 0, 1, 1507412, 0, 1, 1507413, 0, 1, 1507414, 0, 1, 1507415, 0, 1, 1507416, 0, 1, 1507417, 0, 1, 1507418, 0, 1, 1507419, 0, 1, 1507420, 0, 1, 1507421, 0, 1, 1507422, 0, 1, 1507423, 0, 1 ) +tile_data = PoolIntArray( 262192, 0, 65536, 262193, 0, 65537, 262194, 0, 65537, 262195, 0, 65537, 262196, 0, 65537, 262197, 0, 65537, 262198, 0, 65537, 262199, 0, 65538, 262204, 0, 65536, 262205, 0, 65537, 262206, 0, 65537, 262207, 0, 65537, 327683, 0, 65536, 327684, 0, 65537, 327685, 0, 65537, 327686, 0, 65537, 327687, 0, 65537, 327688, 0, 65537, 327689, 0, 65537, 327690, 0, 65537, 327691, 0, 65538, 327696, 2, 2, 327702, 2, 3, 327703, 2, 3, 393231, 0, 65536, 393232, 0, 65537, 393233, 0, 65538, 393236, 0, 65536, 393237, 0, 65537, 393238, 0, 65537, 393239, 0, 65537, 393240, 0, 65537, 393241, 0, 65538, 393244, 0, 65537, 393245, 0, 65537, 393246, 0, 65537, 393247, 0, 65537, 393248, 0, 65537, 393249, 0, 65537, 393250, 0, 65537, 393251, 0, 65538, 393253, 0, 65536, 393254, 0, 65537, 393255, 0, 65537, 393256, 0, 65537, 393257, 0, 65537, 393258, 0, 65537, 393259, 0, 65538, 524321, 0, 65536, 524322, 0, 65537, 524323, 0, 65538, 589844, 0, 65536, 589845, 0, 65537, 589846, 0, 65537, 589847, 0, 65537, 589848, 0, 65537, 589849, 0, 65538, 655368, 0, 65536, 655369, 0, 65537, 655370, 0, 65537, 655371, 0, 65537, 655372, 0, 65537, 655373, 0, 65538, 720906, 0, 196611, 720942, 0, 131072, 720943, 0, 0, 720944, 0, 0, 720945, 0, 0, 720946, 0, 0, 720947, 0, 0, 720948, 0, 0, 720949, 0, 0, 720950, 0, 0, 720951, 0, 0, 720952, 0, 0, 720953, 0, 0, 720954, 0, 0, 720955, 0, 0, 720956, 0, 0, 720957, 0, 0, 720958, 0, 0, 720959, 0, 0, 786442, 0, 196610, 786477, 0, 131072, 786478, 0, 131075, 786479, 0, 3, 786480, 0, 3, 786481, 0, 3, 786482, 0, 3, 786483, 0, 3, 786484, 0, 3, 786485, 0, 3, 786486, 0, 3, 786487, 0, 3, 786488, 0, 3, 786489, 0, 3, 786490, 0, 3, 786491, 0, 3, 786492, 0, 3, 786493, 0, 3, 786494, 0, 3, 786495, 0, 3, 851968, 0, 65537, 851969, 0, 65537, 851970, 0, 65537, 851971, 0, 65537, 851972, 0, 65537, 851973, 0, 65538, 851978, 0, 65539, 851989, 2, 2, 852012, 0, 131072, 852013, 0, 131075, 852014, 0, 3, 852015, 0, 3, 852016, 0, 3, 852017, 0, 3, 852018, 0, 3, 852019, 0, 3, 852020, 0, 3, 852021, 0, 3, 852022, 0, 3, 852023, 0, 3, 852024, 0, 3, 852025, 0, 3, 852026, 0, 3, 852027, 0, 3, 852028, 0, 3, 852029, 0, 3, 852030, 0, 3, 852031, 0, 3, 917514, 0, 65537, 917515, 0, 65537, 917516, 0, 65537, 917517, 0, 65537, 917518, 0, 65537, 917519, 0, 65537, 917520, 0, 65537, 917521, 0, 65538, 917525, 0, 65536, 917526, 0, 65537, 917527, 0, 65537, 917528, 0, 65537, 917529, 0, 65537, 917530, 0, 65537, 917531, 0, 65537, 917532, 0, 65537, 917533, 0, 65537, 917534, 0, 65537, 917535, 0, 65537, 917536, 0, 65537, 917537, 0, 65537, 917538, 0, 65538, 917541, 0, 65536, 917542, 0, 65537, 917543, 0, 65537, 917544, 0, 65537, 917545, 0, 65537, 917546, 0, 65537, 917547, 0, 65537, 917548, 0, 131075, 917549, 0, 3, 917550, 0, 3, 917551, 0, 3, 917552, 0, 3, 917553, 0, 3, 917554, 0, 3, 917555, 0, 3, 917556, 0, 3, 917557, 0, 3, 917558, 0, 3, 917559, 0, 3, 917560, 0, 3, 917561, 0, 3, 917562, 0, 3, 917563, 0, 3, 917564, 0, 3, 917565, 0, 3, 917566, 0, 3, 917567, 0, 3, 983084, 0, 3, 983085, 0, 3, 983086, 0, 3, 983087, 0, 3, 983088, 0, 3, 983089, 0, 3, 983090, 0, 3, 983091, 0, 3, 983092, 0, 3, 983093, 0, 3, 983094, 0, 3, 983095, 0, 3, 983096, 0, 3, 983097, 0, 3, 983098, 0, 3, 983099, 0, 3, 983100, 0, 3, 983101, 0, 3, 983102, 0, 3, 983103, 0, 3, 1048620, 0, 3, 1048621, 0, 3, 1048622, 0, 3, 1048623, 0, 3, 1048624, 0, 3, 1048625, 0, 3, 1048626, 0, 3, 1048627, 0, 3, 1048628, 0, 3, 1048629, 0, 3, 1048630, 0, 3, 1048631, 0, 3, 1048632, 0, 3, 1048633, 0, 3, 1048634, 0, 3, 1048635, 0, 3, 1048636, 0, 3, 1048637, 0, 3, 1048638, 0, 3, 1048639, 0, 3, 1114156, 0, 3, 1114157, 0, 3, 1114158, 0, 3, 1114159, 0, 3, 1114160, 0, 3, 1114161, 0, 3, 1114162, 0, 3, 1114163, 0, 3, 1114164, 0, 0, 1114165, 0, 65536, 1114166, 0, 0, 1114167, 0, 0, 1114168, 0, 0, 1114169, 0, 0, 1114170, 0, 0, 1114171, 0, 0, 1114172, 0, 0, 1114173, 0, 0, 1114174, 0, 0, 1114175, 0, 0, 1179649, 0, 65536, 1179650, 0, 65537, 1179651, 0, 65538, 1179654, 0, 65536, 1179655, 0, 65537, 1179656, 0, 65537, 1179657, 0, 65537, 1179658, 0, 65537, 1179659, 0, 65537, 1179660, 0, 65537, 1179661, 0, 65537, 1179662, 0, 65538, 1179688, 0, 131072, 1179689, 0, 0, 1179690, 0, 0, 1179691, 0, 0, 1179692, 0, 131073, 1179693, 0, 3, 1179694, 0, 3, 1179695, 0, 3, 1179696, 0, 3, 1179697, 0, 3, 1179698, 0, 3, 1179699, 0, 3, 1179700, 0, 3, 1179701, 0, 3, 1179702, 0, 3, 1179703, 0, 3, 1179704, 0, 3, 1179705, 0, 3, 1179706, 0, 3, 1179707, 0, 3, 1179708, 0, 3, 1179709, 0, 3, 1179710, 0, 3, 1179711, 0, 3, 1245202, 2, 2, 1245207, 0, 196611, 1245224, 0, 2, 1245225, 0, 1, 1245226, 0, 1, 1245227, 0, 1, 1245228, 536870912, 2, 1245229, 0, 3, 1245230, 0, 3, 1245231, 0, 3, 1245232, 0, 3, 1245233, 0, 3, 1245234, 0, 3, 1245235, 0, 3, 1245236, 0, 3, 1245237, 0, 3, 1245238, 0, 3, 1245239, 0, 3, 1245240, 0, 3, 1245241, 0, 3, 1245242, 0, 3, 1245243, 0, 3, 1245244, 0, 3, 1245245, 0, 3, 1245246, 0, 3, 1245247, 0, 3, 1310736, 0, 131072, 1310737, 536870912, 0, 1310738, 536870912, 0, 1310739, 536870912, 0, 1310740, 0, 131073, 1310743, 1073741824, 196611, 1310760, 0, 2, 1310761, 0, 1, 1310762, 0, 1, 1310763, 0, 1, 1310764, 536870912, 2, 1310765, 0, 3, 1310766, 0, 3, 1310767, 0, 3, 1310768, 0, 3, 1310769, 0, 3, 1310770, 0, 3, 1310771, 0, 3, 1310772, 0, 3, 1310773, 0, 3, 1310774, 0, 3, 1310775, 0, 3, 1310776, 0, 3, 1310777, 0, 3, 1310778, 0, 3, 1310779, 0, 3, 1310780, 0, 3, 1310781, 0, 3, 1310782, 0, 3, 1310783, 0, 3, 1376257, 2, 0, 1376261, 2, 1, 1376263, 2, 2, 1376266, 2, 2, 1376269, 2, 3, 1376271, 0, 131072, 1376272, 0, 131075, 1376273, 536870912, 1, 1376274, 536870912, 1, 1376275, 536870912, 1, 1376276, 0, 131074, 1376277, 0, 131073, 1376279, 0, 65539, 1376281, 2, 1, 1376296, 0, 2, 1376297, 0, 1, 1376298, 0, 1, 1376299, 0, 1, 1376300, 536870912, 2, 1376301, 0, 3, 1376302, 0, 3, 1376303, 0, 3, 1376304, 0, 3, 1376305, 0, 3, 1376306, 0, 3, 1376307, 0, 3, 1376308, 0, 3, 1376309, 0, 3, 1376310, 0, 3, 1376311, 0, 3, 1376312, 0, 3, 1376313, 0, 3, 1376314, 0, 3, 1376315, 0, 3, 1376316, 0, 3, 1376317, 0, 3, 1376318, 0, 3, 1376319, 0, 3, 1441792, 0, 0, 1441793, 0, 0, 1441794, 0, 0, 1441795, 0, 0, 1441796, 0, 0, 1441797, 0, 0, 1441798, 0, 0, 1441799, 0, 0, 1441800, 0, 0, 1441801, 0, 0, 1441802, 0, 0, 1441803, 0, 0, 1441804, 0, 0, 1441805, 0, 0, 1441806, 0, 0, 1441807, 0, 131075, 1441808, 0, 1, 1441809, 0, 1, 1441810, 0, 1, 1441811, 0, 1, 1441812, 0, 1, 1441813, 0, 131074, 1441814, 0, 0, 1441815, 0, 0, 1441816, 0, 0, 1441817, 0, 0, 1441818, 0, 0, 1441819, 0, 0, 1441820, 0, 0, 1441821, 0, 0, 1441822, 0, 0, 1441823, 0, 0, 1441824, 0, 0, 1441825, 0, 0, 1441826, 0, 0, 1441827, 0, 0, 1441828, 0, 0, 1441829, 0, 0, 1441830, 0, 0, 1441831, 0, 0, 1441832, 0, 131075, 1441833, 0, 1, 1441834, 0, 1, 1441835, 0, 1, 1441836, 0, 131074, 1441837, 0, 3, 1441838, 0, 3, 1441839, 0, 3, 1441840, 0, 3, 1441841, 0, 3, 1441842, 0, 3, 1441843, 0, 3, 1441844, 0, 3, 1441845, 0, 0, 1441846, 0, 0, 1441847, 0, 0, 1441848, 0, 0, 1441849, 0, 0, 1441850, 0, 0, 1441851, 0, 0, 1441852, 0, 0, 1441853, 0, 0, 1441854, 0, 0, 1441855, 0, 0, 1441856, 0, 0, 1441857, 0, 0, 1441858, 0, 0, 1441859, 0, 0, 1441860, 0, 0, 1441861, 0, 0, 1441862, 0, 0, 1441863, 0, 0, 1441864, 0, 0, 1441865, 0, 0, 1441866, 0, 0, 1441867, 0, 0, 1441868, 0, 0, 1441869, 0, 0, 1441870, 0, 0, 1441871, 0, 0, 1441872, 0, 0, 1441873, 0, 0, 1441874, 0, 0, 1441875, 0, 0, 1441876, 0, 0, 1441877, 0, 0, 1441878, 0, 0, 1441879, 0, 0, 1441880, 0, 0, 1441881, 0, 0, 1441882, 0, 0, 1441883, 0, 0, 1441884, 0, 0, 1441885, 0, 0, 1441886, 0, 0, 1441887, 0, 0, 1507328, 0, 1, 1507329, 0, 1, 1507330, 0, 1, 1507331, 0, 1, 1507332, 0, 1, 1507333, 0, 1, 1507334, 0, 1, 1507335, 0, 1, 1507336, 0, 1, 1507337, 0, 1, 1507338, 0, 1, 1507339, 0, 1, 1507340, 0, 1, 1507341, 0, 1, 1507342, 0, 1, 1507343, 0, 1, 1507344, 0, 1, 1507345, 0, 1, 1507346, 0, 1, 1507347, 0, 1, 1507348, 0, 1, 1507349, 0, 1, 1507350, 0, 1, 1507351, 0, 1, 1507352, 0, 1, 1507353, 0, 1, 1507354, 0, 1, 1507355, 0, 1, 1507356, 0, 1, 1507357, 0, 1, 1507358, 0, 1, 1507359, 0, 1, 1507360, 0, 1, 1507361, 0, 1, 1507362, 0, 1, 1507363, 0, 1, 1507364, 0, 1, 1507365, 0, 1, 1507366, 0, 1, 1507367, 0, 1, 1507368, 0, 1, 1507369, 0, 1, 1507370, 0, 1, 1507371, 0, 1, 1507372, 0, 1, 1507373, 0, 1, 1507374, 0, 1, 1507375, 0, 1, 1507376, 0, 1, 1507377, 0, 1, 1507378, 0, 1, 1507379, 0, 1, 1507380, 0, 1, 1507381, 0, 1, 1507382, 0, 1, 1507383, 0, 1, 1507384, 0, 1, 1507385, 0, 1, 1507386, 0, 1, 1507387, 0, 1, 1507388, 0, 1, 1507389, 0, 1, 1507390, 0, 1, 1507391, 0, 1, 1507392, 0, 1, 1507393, 0, 1, 1507394, 0, 1, 1507395, 0, 1, 1507396, 0, 1, 1507397, 0, 1, 1507398, 0, 1, 1507399, 0, 1, 1507400, 0, 1, 1507401, 0, 1, 1507402, 0, 1, 1507403, 0, 1, 1507404, 0, 1, 1507405, 0, 1, 1507406, 0, 1, 1507407, 0, 1, 1507408, 0, 1, 1507409, 0, 1, 1507410, 0, 1, 1507411, 0, 1, 1507412, 0, 1, 1507413, 0, 1, 1507414, 0, 1, 1507415, 0, 1, 1507416, 0, 1, 1507417, 0, 1, 1507418, 0, 1, 1507419, 0, 1, 1507420, 0, 1, 1507421, 0, 1, 1507422, 0, 1, 1507423, 0, 1 ) [node name="Player" parent="." instance=ExtResource( 1 )] position = Vector2( 32, 160 ) @@ -52,7 +60,7 @@ tile_data = PoolIntArray( 1441837, 0, 0, 1441838, 0, 0, 1441839, 0, 0, 1441840, tile_set = ExtResource( 7 ) cell_size = Vector2( 8, 8 ) format = 1 -tile_data = PoolIntArray( 327707, 1, 0, 393243, 1, 0, 458779, 1, 0, 524315, 1, 0, 589851, 1, 0, 655363, 1, 0, 655387, 1, 0, 720899, 1, 0, 720923, 1, 0, 786435, 1, 0, 786459, 1, 0, 851995, 1, 0, 917511, 1, 0, 983047, 1, 0, 1048583, 1, 0, 1114119, 1, 0 ) +tile_data = PoolIntArray( 327707, 1, 0, 393243, 1, 0, 393260, 1, 0, 458779, 1, 0, 458796, 1, 0, 524315, 1, 0, 524332, 1, 0, 589851, 1, 0, 655363, 1, 0, 655387, 1, 0, 720899, 1, 0, 720923, 1, 0, 786435, 1, 0, 786459, 1, 0, 851995, 1, 0, 917511, 1, 0, 983047, 1, 0, 1048583, 1, 0, 1114119, 1, 0 ) [node name="StaticBody2D" type="StaticBody2D" parent="."] @@ -60,11 +68,6 @@ tile_data = PoolIntArray( 327707, 1, 0, 393243, 1, 0, 458779, 1, 0, 524315, 1, 0 position = Vector2( -8, 104 ) shape = SubResource( 1 ) -[node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D"] -position = Vector2( 128, -8 ) -rotation = 1.5708 -shape = SubResource( 1 ) - [node name="Platforms" type="Node2D" parent="."] [node name="Ladder" parent="Platforms" instance=ExtResource( 2 )] @@ -79,6 +82,14 @@ scale = Vector2( 1, 3 ) position = Vector2( 216, 40 ) scale = Vector2( 1, 9 ) +[node name="Ladder4" parent="Platforms" instance=ExtResource( 2 )] +position = Vector2( 352, 48 ) +scale = Vector2( 1, 3 ) + +[node name="Ladder5" parent="Platforms" instance=ExtResource( 2 )] +position = Vector2( 464, 24 ) +scale = Vector2( 1, 3 ) + [node name="Barrier" parent="Platforms" instance=ExtResource( 15 )] position = Vector2( 107, 86 ) scale = Vector2( 1, 26 ) @@ -86,30 +97,34 @@ cost = 20 label_offset = Vector2( 0, 4 ) [node name="Turniwood" parent="Platforms" instance=ExtResource( 16 )] -position = Vector2( 136, 144 ) +position = Vector2( 368, 144 ) [node name="Turniwood2" parent="Platforms" instance=ExtResource( 16 )] -position = Vector2( 152, 144 ) +position = Vector2( 304, 160 ) +time = 70.0 [node name="Turniwood3" parent="Platforms" instance=ExtResource( 16 )] -position = Vector2( 168, 144 ) +position = Vector2( 400, 144 ) + +[node name="Rock" parent="Platforms" instance=ExtResource( 18 )] +position = Vector2( 464, 80 ) [node name="Collectibles" type="Node2D" parent="."] [node name="Shard" parent="Collectibles" instance=ExtResource( 12 )] -position = Vector2( 32, 40 ) +position = Vector2( 32, 32 ) [node name="Shard2" parent="Collectibles" instance=ExtResource( 12 )] position = Vector2( 88, 104 ) [node name="Gold" parent="Collectibles" instance=ExtResource( 5 )] -position = Vector2( 48, 40 ) +position = Vector2( 48, 32 ) [node name="Gold2" parent="Collectibles" instance=ExtResource( 5 )] -position = Vector2( 64, 40 ) +position = Vector2( 64, 32 ) [node name="Gold3" parent="Collectibles" instance=ExtResource( 5 )] -position = Vector2( 80, 40 ) +position = Vector2( 80, 32 ) [node name="Gold4" parent="Collectibles" instance=ExtResource( 5 )] position = Vector2( 168, 40 ) @@ -135,9 +150,6 @@ position = Vector2( 72, 136 ) [node name="Gold11" parent="Collectibles" instance=ExtResource( 5 )] position = Vector2( 136, 104 ) -[node name="Gold12" parent="Collectibles" instance=ExtResource( 5 )] -position = Vector2( 152, 104 ) - [node name="Gold13" parent="Collectibles" instance=ExtResource( 5 )] position = Vector2( 168, 104 ) @@ -167,6 +179,63 @@ color = 2 [node name="Gold21" parent="Collectibles" instance=ExtResource( 5 )] position = Vector2( 120, 104 ) +[node name="Arrow" parent="Collectibles" instance=ExtResource( 17 )] +position = Vector2( 272, 56 ) + +[node name="Gold18" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 440, 112 ) + +[node name="Gold20" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 384, 120 ) + +[node name="Gold27" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 384, 80 ) + +[node name="Gold28" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 408, 80 ) + +[node name="Gold29" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 432, 80 ) + +[node name="Gold22" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 328, 136 ) + +[node name="Gold24" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 328, 88 ) + +[node name="Gold26" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 344, 56 ) + +[node name="Gold30" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 304, 40 ) + +[node name="Gold31" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 336, 40 ) + +[node name="Gold35" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 392, 24 ) + +[node name="Gold36" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 432, 24 ) + +[node name="Gold34" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 320, 40 ) + +[node name="Gold32" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 264, 40 ) + +[node name="Gold33" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 280, 40 ) + +[node name="Gold25" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 312, 88 ) + +[node name="Gold23" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 344, 136 ) + +[node name="Gold16" parent="Collectibles" instance=ExtResource( 5 )] +position = Vector2( 472, 112 ) + [node name="Enemies" type="Node2D" parent="."] [node name="Slime" parent="Enemies" instance=ExtResource( 11 )] @@ -178,6 +247,24 @@ position = Vector2( 152, 48 ) left_up_boundry = 4.0 right_down_boundry = 2.0 +[node name="Bat3" parent="Enemies" instance=ExtResource( 13 )] +position = Vector2( 288, 104 ) +right_down_boundry = 3.5 + +[node name="Bat4" parent="Enemies" instance=ExtResource( 13 )] +position = Vector2( 388, 144 ) +right_down_boundry = 3.5 + +[node name="Bat5" parent="Enemies" instance=ExtResource( 13 )] +position = Vector2( 392, 48 ) +right_down_boundry = 3.0 +speed = 25 + +[node name="Bat6" parent="Enemies" instance=ExtResource( 13 )] +position = Vector2( 432, 88 ) +left_up_boundry = 3.0 +speed = 25 + [node name="Bat2" parent="Enemies" instance=ExtResource( 13 )] position = Vector2( 48, 104 ) left_up_boundry = 4.0 @@ -192,10 +279,15 @@ left_up_boundry = 2.0 right_down_boundry = 2.0 speed = 35 +[node name="Snake3" parent="Enemies" instance=ExtResource( 14 )] +position = Vector2( 432, 128 ) +right_down_boundry = 6.0 +speed = 70 + [node name="Snake2" parent="Enemies" instance=ExtResource( 14 )] position = Vector2( 216, 168 ) -left_up_boundry = 4.0 -right_down_boundry = 4.0 +left_up_boundry = 3.0 +right_down_boundry = 3.0 speed = 60 [node name="ColorRect2" type="ColorRect" parent="."] diff --git a/objects/camera.gd b/objects/camera.gd index a18b37f..0975960 100644 --- a/objects/camera.gd +++ b/objects/camera.gd @@ -4,6 +4,9 @@ onready var resolution = Game.resolution onready var player = get_parent().get_node("Player") onready var current_sector = (player.global_position / resolution).floor() onready var last_sector = current_sector +#Scroll direction +export var scroll_h = true +export var scroll_v = false func _ready(): set_as_toplevel(true) @@ -13,7 +16,8 @@ func _process(delta): #Scroll screen when player is on different sector current_sector = (player.global_position / resolution).floor() if current_sector != last_sector: - position = current_sector * resolution + if scroll_h: position.x = current_sector.x * resolution.x + if scroll_v: position.y = current_sector.y * resolution.y last_sector = current_sector Game.current_sector = current_sector diff --git a/objects/collectibles/arrow.tscn b/objects/collectibles/arrow.tscn index 3c42219..86eb655 100644 --- a/objects/collectibles/arrow.tscn +++ b/objects/collectibles/arrow.tscn @@ -17,7 +17,7 @@ script = ExtResource( 2 ) [node name="Sprite" type="Sprite" parent="."] material = SubResource( 7 ) -position = Vector2( 2, 2 ) +position = Vector2( 5, 2 ) rotation = -1.5708 texture = ExtResource( 3 ) diff --git a/objects/enemy/bat.tscn b/objects/enemy/bat.tscn index f1441c2..961565c 100644 --- a/objects/enemy/bat.tscn +++ b/objects/enemy/bat.tscn @@ -31,6 +31,7 @@ extents = Vector2( 5, 5 ) [node name="Bat" type="Node2D"] script = ExtResource( 3 ) can_be_killed_by_sword = false +score_for_killing = 25 speed = 40 move_direction = 1 flip_sprite = false @@ -38,6 +39,7 @@ flip_sprite = false [node name="AnimatedSprite" type="AnimatedSprite" parent="."] material = SubResource( 1 ) frames = SubResource( 4 ) +frame = 1 playing = true [node name="Area2D" type="Area2D" parent="."] diff --git a/objects/turniwood/turniwood.gd b/objects/turniwood/turniwood.gd index eab322e..bf006bc 100644 --- a/objects/turniwood/turniwood.gd +++ b/objects/turniwood/turniwood.gd @@ -1,13 +1,23 @@ extends Node2D onready var anims = $AnimationPlayer +onready var timer = $Timer +export var time:float = 60 +export(int, "Wood", "Yellow") var color +onready var time_frames = time * 0.0166666666666667 # Time is converted from ms to frames @ 60fps func _ready(): #Autostart animationplayer anims.play("idle") + timer.set_wait_time(time_frames) + timer.start() + func _on_AnimationPlayer_animation_finished(anim_name): - #When idling is done, turn - if anim_name == "idle": - anims.play("turn") + #Return to idle after turn animation if anim_name == "turn": anims.play("idle") + timer.set_wait_time(time_frames) + + +func _on_Timer_timeout(): + anims.play("turn") diff --git a/objects/turniwood/turniwood.tscn b/objects/turniwood/turniwood.tscn index 748737d..0190c5e 100644 --- a/objects/turniwood/turniwood.tscn +++ b/objects/turniwood/turniwood.tscn @@ -1,16 +1,17 @@ [gd_scene load_steps=6 format=2] [ext_resource path="res://objects/turniwood/turniwood.gd" type="Script" id=1] -[ext_resource path="res://graphics/turniwood/turniwood.png" type="Texture" id=2] +[ext_resource path="res://graphics/turniwood/turniwood_yellow.png" type="Texture" id=2] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 4, 1 ) [sub_resource type="Animation" id=2] resource_name = "idle" +loop = true step = 0.125 tracks/0/type = "value" -tracks/0/path = NodePath("StaticBody2D/CollisionShape2D:disabled") +tracks/0/path = NodePath("Sprite:region_rect") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false @@ -19,22 +20,22 @@ tracks/0/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, -"values": [ false ] -} -tracks/1/type = "value" -tracks/1/path = NodePath("Sprite:region_rect") -tracks/1/interp = 1 -tracks/1/loop_wrap = true -tracks/1/imported = false -tracks/1/enabled = true -tracks/1/keys = { -"times": PoolRealArray( 0 ), -"transitions": PoolRealArray( 1 ), -"update": 1, "values": [ Rect2( 0, 0, 8, 8 ) ] } +tracks/1/type = "value" +tracks/1/path = NodePath("Sprite:rotation_degrees") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/keys = { +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), +"update": 1, +"values": [ 0.0 ] +} tracks/2/type = "value" -tracks/2/path = NodePath("Sprite:rotation_degrees") +tracks/2/path = NodePath("StaticBody2D/CollisionShape2D:disabled") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false @@ -43,12 +44,12 @@ tracks/2/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, -"values": [ 0.0 ] +"values": [ false ] } [sub_resource type="Animation" id=3] resource_name = "turn" -length = 0.625 +length = 0.375 step = 0.125 tracks/0/type = "value" tracks/0/path = NodePath("StaticBody2D/CollisionShape2D:disabled") @@ -57,10 +58,10 @@ tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { -"times": PoolRealArray( 0, 0.125, 0.5 ), -"transitions": PoolRealArray( 1, 1, 1 ), +"times": PoolRealArray( 0 ), +"transitions": PoolRealArray( 1 ), "update": 1, -"values": [ false, true, false ] +"values": [ true ] } tracks/1/type = "value" tracks/1/path = NodePath("Sprite:region_rect") @@ -69,10 +70,10 @@ tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { -"times": PoolRealArray( 0, 0.125, 0.25, 0.375, 0.5 ), -"transitions": PoolRealArray( 1, 1, 1, 1, 1 ), +"times": PoolRealArray( 0, 0.125, 0.25 ), +"transitions": PoolRealArray( 1, 1, 1 ), "update": 1, -"values": [ Rect2( 0, 0, 8, 8 ), Rect2( 8, 0, 8, 8 ), Rect2( 0, 0, 8, 8 ), Rect2( 8, 0, 8, 8 ), Rect2( 0, 0, 8, 8 ) ] +"values": [ Rect2( 8, 0, 8, 8 ), Rect2( 0, 0, 8, 8 ), Rect2( 8, 0, 8, 8 ) ] } tracks/2/type = "value" tracks/2/path = NodePath("Sprite:rotation_degrees") @@ -81,10 +82,10 @@ tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { -"times": PoolRealArray( 0, 0.125, 0.25, 0.375, 0.5 ), -"transitions": PoolRealArray( 1, 1, 1, 1, 1 ), +"times": PoolRealArray( 0, 0.125, 0.25 ), +"transitions": PoolRealArray( 1, 1, 1 ), "update": 1, -"values": [ 0.0, 90.0, 90.0, 0.0, 0.0 ] +"values": [ 90.0, 90.0, 0.0 ] } [node name="Turniwood" type="Node2D"] @@ -106,4 +107,7 @@ shape = SubResource( 1 ) anims/idle = SubResource( 2 ) anims/turn = SubResource( 3 ) +[node name="Timer" type="Timer" parent="."] + [connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"] +[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"] diff --git a/tilesets/t_grass.tres b/tilesets/t_grass.tres index 2c79b3f..4afaee6 100644 --- a/tilesets/t_grass.tres +++ b/tilesets/t_grass.tres @@ -1,4 +1,4 @@ -[gd_resource type="TileSet" load_steps=18 format=2] +[gd_resource type="TileSet" load_steps=16 format=2] [ext_resource path="res://graphics/tiles/grass.png" type="Texture" id=1] @@ -29,15 +29,9 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) [sub_resource type="ConvexPolygonShape2D" id=9] points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) -[sub_resource type="ConvexPolygonShape2D" id=10] -points = PoolVector2Array( 8, 5, 0, 5, 0, 8, 8, 8 ) - [sub_resource type="ConvexPolygonShape2D" id=11] points = PoolVector2Array( 8, 0, 8, 0, 8, 0, 8, 0 ) -[sub_resource type="ConvexPolygonShape2D" id=12] -points = PoolVector2Array( 8, 0, 8, 0, 8, 8, 8, 8 ) - [sub_resource type="ConvexPolygonShape2D" id=13] points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) @@ -126,12 +120,6 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) "shape": SubResource( 9 ), "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) }, { -"autotile_coord": Vector2( 3, 0 ), -"one_way": false, -"one_way_margin": 1.0, -"shape": SubResource( 10 ), -"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) -}, { "autotile_coord": Vector2( 2, 0 ), "one_way": false, "one_way_margin": 1.0, @@ -141,12 +129,6 @@ points = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) "autotile_coord": Vector2( 2, 0 ), "one_way": false, "one_way_margin": 1.0, -"shape": SubResource( 12 ), -"shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) -}, { -"autotile_coord": Vector2( 2, 0 ), -"one_way": false, -"one_way_margin": 1.0, "shape": SubResource( 13 ), "shape_transform": Transform2D( 1, 0, 0, 1, 0, 0 ) }, {