diff --git a/maps/canopy.tscn b/maps/canopy.tscn index 4f062df..458fc39 100644 --- a/maps/canopy.tscn +++ b/maps/canopy.tscn @@ -43,7 +43,7 @@ __meta__ = { tile_set = ExtResource( 4 ) cell_size = Vector2( 8, 8 ) format = 1 -tile_data = PoolIntArray( 196664, 0, 65537, 196665, 0, 65537, 196666, 0, 65537, 196667, 0, 65537, 196668, 0, 65537, 196669, 0, 65537, 196670, 0, 65537, 196671, 0, 65537, 196672, 0, 65537, 196673, 0, 65537, 196674, 0, 65537, 196675, 0, 65537, 196678, 0, 65537, 196679, 0, 65537, 196682, 0, 65537, 196683, 0, 65537, 262161, 0, 65537, 262162, 0, 65537, 262163, 0, 65537, 262164, 0, 65537, 262165, 0, 65537, 262166, 0, 65537, 262167, 0, 65537, 262168, 0, 65537, 262169, 0, 65537, 262170, 0, 65537, 262171, 0, 65537, 262172, 0, 65537, 262173, 0, 65537, 262174, 0, 65537, 262175, 0, 65537, 262176, 0, 65537, 327715, 0, 65537, 327725, 0, 65537, 327726, 0, 65537, 327727, 0, 65537, 327728, 0, 65537, 327729, 0, 65537, 327730, 0, 65537, 327731, 0, 65537, 327732, 0, 65537, 327733, 0, 65537, 393251, 0, 65537, 393252, 0, 65537, 393253, 0, 65537, 393254, 0, 65537, 393255, 0, 65537, 393256, 0, 65537, 393257, 0, 65537, 393306, 0, 65537, 393307, 0, 65537, 393308, 0, 65537, 393309, 0, 65537, 393310, 0, 65537, 393311, 0, 65537, 458752, 0, 65537, 458753, 0, 65537, 458754, 0, 65537, 458755, 0, 65537, 458756, 0, 65537, 458757, 0, 65537, 458774, 0, 65537, 458775, 0, 65537, 458776, 0, 65537, 458777, 0, 65537, 458778, 0, 65537, 458779, 0, 65537, 458780, 0, 65537, 458781, 0, 65537, 458782, 0, 65537, 458783, 0, 65537, 458826, 0, 65537, 458827, 0, 65537, 458828, 0, 65537, 458829, 0, 65537, 458830, 0, 65537, 458831, 0, 65537, 458832, 0, 65537, 458833, 0, 65537, 524297, 0, 65537, 524298, 0, 65537, 524299, 0, 65537, 524300, 0, 65537, 524361, 0, 65537, 524362, 0, 65537, 524369, 0, 65537, 589836, 0, 65537, 589870, 0, 65537, 589871, 0, 65537, 589872, 0, 65537, 589873, 0, 65537, 589874, 0, 65537, 589875, 0, 65537, 589876, 0, 65537, 589877, 0, 65537, 589878, 0, 65537, 589879, 0, 65537, 589880, 0, 65537, 589881, 0, 65537, 589889, 0, 65537, 589890, 0, 65537, 589891, 0, 65537, 589897, 0, 65537, 589905, 0, 65537, 589906, 0, 65537, 589907, 0, 65537, 655372, 0, 65537, 655373, 0, 65537, 655374, 0, 65537, 655406, 0, 65537, 655423, 0, 65537, 655424, 0, 65537, 655425, 0, 65537, 655427, 0, 65537, 655428, 0, 65537, 655429, 0, 65537, 655430, 0, 65537, 655431, 0, 65537, 655432, 0, 65537, 655433, 0, 65537, 655443, 0, 65537, 720942, 0, 65537, 720958, 0, 65537, 720959, 0, 65537, 720979, 0, 65537, 786433, 0, 65537, 786434, 0, 65537, 786435, 0, 65538, 786450, 0, 65537, 786451, 0, 65537, 786452, 0, 65537, 786453, 0, 65537, 786454, 0, 65537, 786455, 0, 65537, 786456, 0, 65537, 786457, 0, 65537, 786458, 0, 65537, 786459, 0, 65537, 786460, 0, 65537, 786461, 0, 65537, 786462, 0, 65537, 786463, 0, 65537, 786464, 0, 65537, 786465, 0, 65537, 786466, 0, 65537, 786467, 0, 65537, 786468, 0, 65537, 786469, 0, 65537, 786470, 0, 65537, 786471, 0, 65537, 786472, 0, 65537, 786478, 0, 65537, 786480, 0, 65537, 786481, 0, 65537, 786482, 0, 65537, 786483, 0, 65537, 786484, 0, 65537, 786485, 0, 65537, 786486, 0, 65537, 786487, 0, 65537, 786488, 0, 65537, 786489, 0, 65537, 786490, 0, 65537, 786493, 0, 65537, 786494, 0, 65537, 786515, 0, 65537, 786516, 0, 65537, 786517, 0, 65537, 786518, 0, 65537, 786519, 0, 65537, 786520, 0, 65537, 786521, 0, 65537, 786522, 0, 65537, 852008, 0, 65537, 852009, 0, 65537, 852010, 0, 65537, 852011, 0, 65537, 852012, 0, 65537, 852013, 0, 65537, 852014, 0, 65537, 983107, 0, 65537, 983108, 0, 65537, 983109, 0, 65537, 983110, 0, 65537, 983111, 0, 65537, 983112, 0, 65537, 983113, 0, 65537, 983114, 0, 65537, 983115, 0, 65537, 983116, 0, 65537, 983117, 0, 65537, 983118, 0, 65537, 983119, 0, 65537, 983120, 0, 65537, 983121, 0, 65537, 983122, 0, 65537, 983123, 0, 65537, 1048586, -1610612736, 65536, 1048601, 0, 65537, 1048602, 0, 65537, 1048603, 0, 65537, 1048604, 0, 65538, 1048606, 0, 65537, 1048607, 0, 65537, 1048608, 0, 65537, 1048609, 0, 65537, 1048610, 0, 65537, 1048611, 0, 65537, 1048612, 0, 65537, 1048613, 0, 65537, 1048635, 0, 65537, 1048636, 0, 65537, 1048637, 0, 65537, 1048638, 0, 65537, 1048639, 0, 65537, 1048640, 0, 65537, 1048641, 0, 65537, 1048642, 0, 65537, 1048643, 0, 65537, 1048667, 0, 65537, 1048668, 0, 65537, 1048669, 0, 65537, 1048670, 0, 65537, 1048671, 0, 65537, 1114112, 0, 65537, 1114113, 0, 65537, 1114114, 0, 65537, 1114115, 0, 65537, 1114116, 0, 65537, 1114117, 0, 65537, 1114118, 0, 65537, 1114119, 0, 65537, 1114120, 0, 65537, 1114121, 0, 65537, 1114122, 536870912, 2, 1114137, 0, 65537, 1114142, 0, 65537, 1114165, 0, 65537, 1114166, 0, 65537, 1179662, 0, 65536, 1179663, 0, 65537, 1179664, 0, 65537, 1179665, 0, 65537, 1179666, 0, 65537, 1179667, 0, 65537, 1179668, 0, 65537, 1179672, 0, 65537, 1179673, 0, 65537, 1179678, 0, 65537, 1179692, 0, 65537, 1179693, 0, 65537, 1179694, 0, 65537, 1179695, 0, 65537, 1179702, 0, 65537, 1245238, 0, 65537, 1245239, 0, 65537, 1245240, 0, 65537, 1245241, 0, 65537, 1245242, 0, 65537, 1245243, 0, 65537, 1245244, 0, 65537, 1245245, 0, 65537, 1245246, 0, 65537, 1245247, 0, 65537, 1245248, 0, 65537, 1245249, 0, 65537, 1245252, 0, 65537, 1245253, 0, 65537, 1245254, 0, 65537, 1245255, 0, 65537, 1245256, 0, 65537, 1245257, 0, 65537, 1245258, 0, 65537, 1245259, 0, 65537, 1245260, 0, 65537, 1245261, 0, 65537, 1245262, 0, 65537, 1245263, 0, 65537, 1245264, 0, 65537, 1245265, 0, 65537, 1245266, 0, 65537, 1245267, 0, 65537, 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, 0, 1441808, 0, 0, 1441809, 0, 0, 1441810, 0, 0, 1441811, 0, 0, 1441812, 0, 0, 1441813, 0, 0, 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, 0, 1441833, 0, 0, 1441834, 0, 0, 1441835, 0, 0, 1441836, 0, 0, 1441837, 0, 0, 1441838, 0, 0, 1441839, 0, 0, 1441840, 0, 0, 1441841, 0, 0, 1441842, 0, 0, 1441843, 0, 0, 1441844, 0, 0, 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, 65537, 1507329, 0, 65537, 1507330, 0, 65537, 1507331, 0, 65537, 1507332, 0, 65537, 1507333, 0, 65537, 1507334, 0, 65537, 1507335, 0, 65537, 1507336, 0, 65537, 1507337, 0, 65537, 1507338, 0, 65537, 1507339, 0, 65537, 1507340, 0, 65537, 1507341, 0, 65537, 1507342, 0, 65537, 1507343, 0, 65537, 1507344, 0, 65537, 1507345, 0, 65537, 1507346, 0, 65537, 1507347, 0, 65537, 1507348, 0, 65537, 1507349, 0, 65537, 1507350, 0, 65537, 1507351, 0, 65537, 1507352, 0, 65537, 1507353, 0, 65537, 1507354, 0, 65537, 1507355, 0, 65537, 1507356, 0, 65537, 1507357, 0, 65537, 1507358, 0, 65537, 1507359, 0, 65537, 1507360, 0, 65537, 1507361, 0, 65537, 1507362, 0, 65537, 1507363, 0, 65537, 1507364, 0, 65537, 1507365, 0, 65537, 1507366, 0, 65537, 1507367, 0, 65537, 1507368, 0, 65537, 1507369, 0, 65537, 1507370, 0, 65537, 1507371, 0, 65537, 1507372, 0, 65537, 1507373, 0, 65537, 1507374, 0, 65537, 1507375, 0, 65537, 1507376, 0, 65537, 1507377, 0, 65537, 1507378, 0, 65537, 1507379, 0, 65537, 1507380, 0, 65537, 1507381, 0, 65537, 1507382, 0, 65537, 1507383, 0, 65537, 1507384, 0, 65537, 1507385, 0, 65537, 1507386, 0, 65537, 1507387, 0, 65537, 1507388, 0, 65537, 1507389, 0, 65537, 1507390, 0, 65537, 1507391, 0, 65537, 1507392, 0, 65537, 1507393, 0, 65537, 1507394, 0, 65537, 1507395, 0, 65537, 1507396, 0, 65537, 1507397, 0, 65537, 1507398, 0, 65537, 1507399, 0, 65537, 1507400, 0, 65537, 1507401, 0, 65537, 1507402, 0, 65537, 1507403, 0, 65537, 1507404, 0, 65537, 1507405, 0, 65537, 1507406, 0, 65537, 1507407, 0, 65537, 1507408, 0, 65537, 1507409, 0, 65537, 1507410, 0, 65537, 1507411, 0, 65537, 1507412, 0, 65537, 1507413, 0, 65537, 1507414, 0, 65537, 1507415, 0, 65537, 1507416, 0, 65537, 1507417, 0, 65537, 1507418, 0, 65537, 1507419, 0, 65537, 1507420, 0, 65537, 1507421, 0, 65537, 1507422, 0, 65537, 1507423, 0, 65537 ) +tile_data = PoolIntArray( 196664, 0, 65537, 196665, 0, 65537, 196666, 0, 65537, 196667, 0, 65537, 196668, 0, 65537, 196669, 0, 65537, 196670, 0, 65537, 196671, 0, 65537, 196672, 0, 65537, 196673, 0, 65537, 196674, 0, 65537, 196675, 0, 65537, 262161, 0, 65537, 262162, 0, 65537, 262163, 0, 65537, 262164, 0, 65537, 262165, 0, 65537, 262166, 0, 65537, 262167, 0, 65537, 262168, 0, 65537, 262169, 0, 65537, 262170, 0, 65537, 262171, 0, 65537, 262172, 0, 65537, 262173, 0, 65537, 262174, 0, 65537, 262175, 0, 65537, 262176, 0, 65537, 327715, 0, 65537, 327725, 0, 65537, 327726, 0, 65537, 327727, 0, 65537, 327728, 0, 65537, 327729, 0, 65537, 327730, 0, 65537, 327731, 0, 65537, 327732, 0, 65537, 327733, 0, 65537, 393251, 0, 65537, 393252, 0, 65537, 393253, 0, 65537, 393254, 0, 65537, 393255, 0, 65537, 393256, 0, 65537, 393257, 0, 65537, 393306, 0, 65537, 393307, 0, 65537, 393308, 0, 65537, 393309, 0, 65537, 393310, 0, 65537, 393311, 0, 65537, 458752, 0, 65537, 458753, 0, 65537, 458754, 0, 65537, 458755, 0, 65537, 458756, 0, 65537, 458757, 0, 65537, 458774, 0, 65537, 458775, 0, 65537, 458776, 0, 65537, 458777, 0, 65537, 458778, 0, 65537, 458779, 0, 65537, 458780, 0, 65537, 458781, 0, 65537, 458782, 0, 65537, 458783, 0, 65537, 458826, 0, 65537, 458827, 0, 65537, 458828, 0, 65537, 458829, 0, 65537, 458830, 0, 65537, 458831, 0, 65537, 458832, 0, 65537, 458833, 0, 65537, 458842, 0, 65537, 524297, 0, 65537, 524298, 0, 65537, 524299, 0, 65537, 524300, 0, 65537, 524361, 0, 65537, 524362, 0, 65537, 524369, 0, 65537, 524378, 0, 65537, 589836, 0, 65537, 589870, 0, 65537, 589871, 0, 65537, 589872, 0, 65537, 589873, 0, 65537, 589874, 0, 65537, 589875, 0, 65537, 589876, 0, 65537, 589877, 0, 65537, 589878, 0, 65537, 589879, 0, 65537, 589880, 0, 65537, 589881, 0, 65537, 589889, 0, 65537, 589890, 0, 65537, 589891, 0, 65537, 589897, 0, 65537, 589905, 0, 65537, 589906, 0, 65537, 589907, 0, 65537, 589914, 0, 65537, 655372, 0, 65537, 655373, 0, 65537, 655374, 0, 65537, 655406, 0, 65537, 655423, 0, 65537, 655424, 0, 65537, 655425, 0, 65537, 655427, 0, 65537, 655428, 0, 65537, 655429, 0, 65537, 655430, 0, 65537, 655431, 0, 65537, 655432, 0, 65537, 655433, 0, 65537, 655443, 0, 65537, 655450, 0, 65537, 720942, 0, 65537, 720958, 0, 65537, 720959, 0, 65537, 720979, 0, 65537, 720986, 0, 65537, 786433, 0, 65537, 786434, 0, 65537, 786435, 0, 65538, 786450, 0, 65537, 786451, 0, 65537, 786452, 0, 65537, 786453, 0, 65537, 786454, 0, 65537, 786455, 0, 65537, 786456, 0, 65537, 786457, 0, 65537, 786458, 0, 65537, 786459, 0, 65537, 786460, 0, 65537, 786461, 0, 65537, 786462, 0, 65537, 786463, 0, 65537, 786464, 0, 65537, 786465, 0, 65537, 786466, 0, 65537, 786467, 0, 65537, 786468, 0, 65537, 786469, 0, 65537, 786470, 0, 65537, 786471, 0, 65537, 786472, 0, 65537, 786478, 0, 65537, 786480, 0, 65537, 786481, 0, 65537, 786482, 0, 65537, 786483, 0, 65537, 786484, 0, 65537, 786485, 0, 65537, 786486, 0, 65537, 786487, 0, 65537, 786488, 0, 65537, 786489, 0, 65537, 786490, 0, 65537, 786493, 0, 65537, 786494, 0, 65537, 786515, 0, 65537, 786516, 0, 65537, 786517, 0, 65537, 786522, 0, 65537, 852008, 0, 65537, 852009, 0, 65537, 852010, 0, 65537, 852011, 0, 65537, 852012, 0, 65537, 852013, 0, 65537, 852014, 0, 65537, 852058, 0, 65537, 917593, 0, 65537, 917594, 0, 65537, 983107, 0, 65537, 983108, 0, 65537, 983109, 0, 65537, 983110, 0, 65537, 983111, 0, 65537, 983112, 0, 65537, 983113, 0, 65537, 983114, 0, 65537, 983115, 0, 65537, 983116, 0, 65537, 983117, 0, 65537, 983118, 0, 65537, 983119, 0, 65537, 983120, 0, 65537, 983121, 0, 65537, 983122, 0, 65537, 983123, 0, 65537, 1048586, -1610612736, 65536, 1048601, 0, 65537, 1048602, 0, 65537, 1048603, 0, 65537, 1048604, 0, 65538, 1048606, 0, 65537, 1048607, 0, 65537, 1048608, 0, 65537, 1048609, 0, 65537, 1048610, 0, 65537, 1048611, 0, 65537, 1048612, 0, 65537, 1048613, 0, 65537, 1048635, 0, 65537, 1048636, 0, 65537, 1048637, 0, 65537, 1048638, 0, 65537, 1048639, 0, 65537, 1048640, 0, 65537, 1048641, 0, 65537, 1048642, 0, 65537, 1048643, 0, 65537, 1114112, 0, 65537, 1114113, 0, 65537, 1114114, 0, 65537, 1114115, 0, 65537, 1114116, 0, 65537, 1114117, 0, 65537, 1114118, 0, 65537, 1114119, 0, 65537, 1114120, 0, 65537, 1114121, 0, 65537, 1114122, 536870912, 2, 1114137, 0, 65537, 1114142, 0, 65537, 1114165, 0, 65537, 1114166, 0, 65537, 1179662, 0, 65536, 1179663, 0, 65537, 1179664, 0, 65537, 1179665, 0, 65537, 1179666, 0, 65537, 1179667, 0, 65537, 1179668, 0, 65537, 1179672, 0, 65537, 1179673, 0, 65537, 1179678, 0, 65537, 1179692, 0, 65537, 1179693, 0, 65537, 1179694, 0, 65537, 1179695, 0, 65537, 1179702, 0, 65537, 1179717, 0, 65537, 1179718, 0, 65537, 1179719, 0, 65537, 1179720, 0, 65537, 1179721, 0, 65537, 1179722, 0, 65537, 1179723, 0, 65537, 1179724, 0, 65537, 1179725, 0, 65537, 1179726, 0, 65537, 1179727, 0, 65537, 1179728, 0, 65537, 1179729, 0, 65537, 1179730, 0, 65537, 1179731, 0, 65537, 1245238, 0, 65537, 1245239, 0, 65537, 1245240, 0, 65537, 1245241, 0, 65537, 1245242, 0, 65537, 1245243, 0, 65537, 1245244, 0, 65537, 1245245, 0, 65537, 1245246, 0, 65537, 1245247, 0, 65537, 1245248, 0, 65537, 1245249, 0, 65537, 1245252, 0, 65537, 1245253, 0, 65537, 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, 0, 1441808, 0, 0, 1441809, 0, 0, 1441810, 0, 0, 1441811, 0, 0, 1441812, 0, 0, 1441813, 0, 0, 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, 1441836, 0, 0, 1441837, 0, 0, 1441838, 0, 0, 1441839, 0, 0, 1441840, 0, 0, 1441841, 0, 0, 1441842, 0, 0, 1441843, 0, 0, 1441844, 0, 0, 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, 1441867, 0, 0, 1441868, 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, 1507328, 0, 65537, 1507329, 0, 65537, 1507330, 0, 65537, 1507331, 0, 65537, 1507332, 0, 65537, 1507333, 0, 65537, 1507334, 0, 65537, 1507335, 0, 65537, 1507336, 0, 65537, 1507337, 0, 65537, 1507338, 0, 65537, 1507339, 0, 65537, 1507340, 0, 65537, 1507341, 0, 65537, 1507342, 0, 65537, 1507343, 0, 65537, 1507344, 0, 65537, 1507345, 0, 65537, 1507346, 0, 65537, 1507347, 0, 65537, 1507348, 0, 65537, 1507349, 0, 65537, 1507350, 0, 65537, 1507351, 0, 65537, 1507352, 0, 65537, 1507353, 0, 65537, 1507354, 0, 65537, 1507355, 0, 65537, 1507356, 0, 65537, 1507357, 0, 65537, 1507358, 0, 65537, 1507359, 0, 65537, 1507360, 0, 65537, 1507361, 0, 65537, 1507362, 0, 65537, 1507363, 0, 65537, 1507372, 0, 65537, 1507373, 0, 65537, 1507374, 0, 65537, 1507375, 0, 65537, 1507376, 0, 65537, 1507377, 0, 65537, 1507378, 0, 65537, 1507379, 0, 65537, 1507380, 0, 65537, 1507381, 0, 65537, 1507382, 0, 65537, 1507383, 0, 65537, 1507384, 0, 65537, 1507385, 0, 65537, 1507386, 0, 65537, 1507387, 0, 65537, 1507388, 0, 65537, 1507389, 0, 65537, 1507390, 0, 65537, 1507391, 0, 65537, 1507392, 0, 65537, 1507393, 0, 65537, 1507394, 0, 65537, 1507395, 0, 65537, 1507396, 0, 65537, 1507397, 0, 65537, 1507398, 0, 65537, 1507399, 0, 65537, 1507403, 0, 65537, 1507404, 0, 65537, 1507408, 0, 65537, 1507409, 0, 65537, 1507410, 0, 65537, 1507411, 0, 65537, 1507412, 0, 65537, 1507413, 0, 65537, 1507414, 0, 65537, 1507415, 0, 65537, 1507416, 0, 65537, 1507417, 0, 65537, 1507418, 0, 65537 ) [node name="Player" parent="." instance=ExtResource( 6 )] position = Vector2( 24, 166 ) @@ -58,7 +58,7 @@ tile_data = PoolIntArray( 131123, 0, 196608, 196659, 0, 196608, 262195, 0, 19660 tile_set = ExtResource( 18 ) cell_size = Vector2( 8, 8 ) format = 1 -tile_data = PoolIntArray( 589892, 1, 0, 589893, 1, 0, 589894, 1, 0, 589895, 1, 0, 589896, 1, 0, 720916, 1, 0, 720932, 1, 0, 786473, 1, 0, 786474, 1, 0, 786475, 1, 0, 786476, 1, 0, 786477, 1, 0 ) +tile_data = PoolIntArray( 589892, 1, 0, 589893, 1, 0, 589894, 1, 0, 589895, 1, 0, 589896, 1, 0, 720916, 1, 0, 720932, 1, 0, 786473, 1, 0, 786474, 1, 0, 786475, 1, 0, 786476, 1, 0, 786477, 1, 0, 1441828, 0, 0, 1441829, 0, 0, 1441830, 0, 0, 1441831, 0, 0, 1441832, 0, 0, 1441833, 0, 0, 1441834, 0, 0, 1441835, 0, 0, 1441864, 0, 0, 1441865, 0, 0, 1441866, 0, 0, 1441869, 0, 0, 1441870, 0, 0, 1441871, 0, 0, 1441883, 0, 0, 1441884, 0, 0, 1441885, 0, 0, 1441886, 0, 0, 1441887, 0, 0, 1507364, 3, 0, 1507365, 3, 0, 1507366, 3, 0, 1507367, 3, 0, 1507368, 3, 0, 1507369, 3, 0, 1507370, 3, 0, 1507371, 3, 0, 1507400, 3, 0, 1507401, 3, 0, 1507402, 3, 0, 1507405, 3, 0, 1507406, 3, 0, 1507407, 3, 0, 1507419, 3, 0, 1507420, 3, 0, 1507421, 3, 0, 1507422, 3, 0, 1507423, 3, 0 ) [node name="Platforms" type="Node2D" parent="."] @@ -95,6 +95,30 @@ position = Vector2( 72, 104 ) [node name="Turniwood5" parent="Platforms" instance=ExtResource( 13 )] position = Vector2( 344, 80 ) +[node name="Turniwood12" parent="Platforms" instance=ExtResource( 13 )] +position = Vector2( 544, 24 ) +time = 30.0 + +[node name="Turniwood13" parent="Platforms" instance=ExtResource( 13 )] +position = Vector2( 552, 24 ) +time = 30.0 + +[node name="Turniwood14" parent="Platforms" instance=ExtResource( 13 )] +position = Vector2( 560, 24 ) +time = 30.0 + +[node name="Turniwood15" parent="Platforms" instance=ExtResource( 13 )] +position = Vector2( 568, 24 ) +time = 30.0 + +[node name="Turniwood16" parent="Platforms" instance=ExtResource( 13 )] +position = Vector2( 576, 24 ) +time = 30.0 + +[node name="Turniwood17" parent="Platforms" instance=ExtResource( 13 )] +position = Vector2( 584, 24 ) +time = 30.0 + [node name="Turniwood10" parent="Platforms" instance=ExtResource( 13 )] position = Vector2( 448, 128 ) @@ -126,7 +150,11 @@ position = Vector2( 164, 152 ) scale = Vector2( 1, 24 ) [node name="Barrier3" parent="Platforms" instance=ExtResource( 15 )] -position = Vector2( 250, 152 ) +position = Vector2( 242, 152 ) +scale = Vector2( 1, 24 ) + +[node name="Barrier4" parent="Platforms" instance=ExtResource( 15 )] +position = Vector2( 488, 104 ) scale = Vector2( 1, 24 ) [node name="Barrier2" parent="Platforms" instance=ExtResource( 15 )] @@ -151,6 +179,15 @@ position = Vector2( 176, 24 ) left_boundary = 4 right_boundary = 4 +[node name="JumpingSpider6" parent="Enemies" instance=ExtResource( 10 )] +position = Vector2( 672, 168 ) +right_boundary = 3 + +[node name="JumpingSpider5" parent="Enemies" instance=ExtResource( 10 )] +position = Vector2( 16, 48 ) +left_boundary = 2 +right_boundary = 3 + [node name="JumpingSpider4" parent="Enemies" instance=ExtResource( 10 )] position = Vector2( 208, 88 ) left_boundary = 2 @@ -162,6 +199,12 @@ scale = Vector2( -1, 1 ) shoot_time = 2.0 arrow_speed = 80.0 +[node name="Skelarcher10" parent="Enemies" instance=ExtResource( 5 )] +position = Vector2( 456, 64 ) +scale = Vector2( -1, 1 ) +shoot_time = 2.0 +arrow_speed = 80.0 + [node name="Skelarcher8" parent="Enemies" instance=ExtResource( 5 )] position = Vector2( 240, 24 ) scale = Vector2( -1, 1 ) @@ -232,6 +275,21 @@ position = Vector2( 584, 88 ) speed = 40.0 down_boundary = 3 +[node name="Spider10" parent="Enemies" instance=ExtResource( 9 )] +position = Vector2( 624, 152 ) +speed = 40.0 +down_boundary = 3 + +[node name="Spider11" parent="Enemies" instance=ExtResource( 9 )] +position = Vector2( 584, 152 ) +speed = 40.0 +down_boundary = 3 + +[node name="Spider8" parent="Enemies" instance=ExtResource( 9 )] +position = Vector2( 560, 0 ) +speed = 40.0 +down_boundary = 7 + [node name="Spider6" parent="Enemies" instance=ExtResource( 9 )] position = Vector2( 624, 64 ) speed = 50.0 @@ -242,6 +300,11 @@ position = Vector2( 320, 112 ) speed = 50.0 down_boundary = 7 +[node name="Spider9" parent="Enemies" instance=ExtResource( 9 )] +position = Vector2( 424, 104 ) +speed = 50.0 +down_boundary = 3 + [node name="Collectibles" type="Node2D" parent="."] [node name="Gold" parent="Collectibles" instance=ExtResource( 11 )] @@ -268,6 +331,39 @@ position = Vector2( 232, 144 ) [node name="Gold6" parent="Collectibles" instance=ExtResource( 11 )] position = Vector2( 72, 96 ) +[node name="Gold12" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 32, 48 ) + +[node name="Gold14" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 152, 24 ) + +[node name="Gold15" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 184, 24 ) + +[node name="Gold16" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 216, 24 ) + +[node name="Gold17" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 208, 48 ) + +[node name="Gold18" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 232, 48 ) + +[node name="Gold19" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 560, 96 ) + +[node name="Gold20" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 616, 112 ) + +[node name="Gold21" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 584, 112 ) + +[node name="Gold22" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 536, 112 ) + +[node name="Gold13" parent="Collectibles" instance=ExtResource( 11 )] +position = Vector2( 8, 48 ) + [node name="Gold2" parent="Collectibles" instance=ExtResource( 11 )] position = Vector2( 48, 128 ) @@ -343,3 +439,6 @@ position = Vector2( 160, 88 ) [node name="Shard" parent="." instance=ExtResource( 20 )] position = Vector2( 651, 112 ) + +[node name="Shard2" parent="." instance=ExtResource( 20 )] +position = Vector2( 600, 16 ) diff --git a/maps/test_room.tscn b/maps/test_room.tscn index 1c34341..2767171 100644 --- a/maps/test_room.tscn +++ b/maps/test_room.tscn @@ -36,7 +36,7 @@ tile_set = ExtResource( 3 ) cell_size = Vector2( 8, 8 ) collision_layer = 9 format = 1 -tile_data = PoolIntArray( 786454, 0, 65537, 786455, 0, 65537, 851990, 0, 65537, 917526, 0, 65537, 983061, 0, 65537, 983062, 0, 65537, 1048591, 0, 65537, 1048592, 0, 65537, 1048593, 0, 65537, 1048594, 0, 65537, 1114127, 0, 65537, 1179663, 0, 65537, 1245199, 0, 65537, 1310732, 0, 65537, 1310733, 0, 65537, 1310734, 0, 65537, 1310735, 0, 65537, 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, 0, 1441808, 0, 0, 1441809, 0, 0, 1441810, 0, 0, 1441811, 0, 0, 1441812, 0, 0, 1441813, 0, 0, 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, 1507328, 0, 65537, 1507329, 0, 65537, 1507330, 0, 65537, 1507331, 0, 65537, 1507332, 0, 65537, 1507333, 0, 65537, 1507334, 0, 65537, 1507335, 0, 65537, 1507336, 0, 65537, 1507337, 0, 65537, 1507338, 0, 65537, 1507339, 0, 65537, 1507340, 0, 65537, 1507341, 0, 65537, 1507342, 0, 65537, 1507343, 0, 65537, 1507344, 0, 65537, 1507345, 0, 65537, 1507346, 0, 65537, 1507347, 0, 65537, 1507348, 0, 65537, 1507349, 0, 65537, 1507350, 0, 65537, 1507351, 0, 65537, 1507352, 0, 65537, 1507353, 0, 65537, 1507354, 0, 65537, 1507355, 0, 65537, 1507356, 0, 65537, 1507357, 0, 65537, 1507358, 0, 65537, 1507359, 0, 65537 ) +tile_data = PoolIntArray( 786454, 0, 65537, 786455, 0, 65537, 851990, 0, 65537, 917526, 0, 65537, 983052, 0, 65537, 983053, 0, 65537, 983061, 0, 65537, 983062, 0, 65537, 1048591, 0, 65537, 1048592, 0, 65537, 1048593, 0, 65537, 1048594, 0, 65537, 1114127, 0, 65537, 1179663, 0, 65537, 1245199, 0, 65537, 1310732, 0, 65537, 1310733, 0, 65537, 1310734, 0, 65537, 1310735, 0, 65537, 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, 0, 1441808, 0, 0, 1441809, 0, 0, 1441810, 0, 0, 1441811, 0, 0, 1441812, 0, 0, 1441813, 0, 0, 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, 1507328, 0, 65537, 1507329, 0, 65537, 1507330, 0, 65537, 1507331, 0, 65537, 1507332, 0, 65537, 1507333, 0, 65537, 1507334, 0, 65537, 1507335, 0, 65537, 1507336, 0, 65537, 1507337, 0, 65537, 1507338, 0, 65537, 1507339, 0, 65537, 1507340, 0, 65537, 1507341, 0, 65537, 1507342, 0, 65537, 1507343, 0, 65537, 1507344, 0, 65537, 1507345, 0, 65537, 1507346, 0, 65537, 1507347, 0, 65537, 1507348, 0, 65537, 1507349, 0, 65537, 1507350, 0, 65537, 1507351, 0, 65537, 1507352, 0, 65537, 1507353, 0, 65537, 1507354, 0, 65537, 1507355, 0, 65537, 1507356, 0, 65537, 1507357, 0, 65537, 1507358, 0, 65537, 1507359, 0, 65537 ) [node name="Rock" parent="." instance=ExtResource( 9 )] position = Vector2( 120, 120 ) @@ -48,7 +48,7 @@ position = Vector2( 84, -7 ) position = Vector2( 184, 163 ) [node name="Player" parent="." instance=ExtResource( 1 )] -position = Vector2( 72, 160 ) +position = Vector2( 104, 96 ) [node name="Ladder3" parent="." instance=ExtResource( 8 )] position = Vector2( 40, 136 ) @@ -68,4 +68,20 @@ cell_size = Vector2( 8, 8 ) format = 1 [node name="Turniwood5" parent="." instance=ExtResource( 12 )] -position = Vector2( 88, 136 ) +position = Vector2( 80, 120 ) + +[node name="Turniwood6" parent="." instance=ExtResource( 12 )] +position = Vector2( 72, 112 ) +delay = 0.5 + +[node name="Turniwood8" parent="." instance=ExtResource( 12 )] +position = Vector2( 64, 104 ) +delay = 1.0 + +[node name="Turniwood7" parent="." instance=ExtResource( 12 )] +position = Vector2( 56, 96 ) +delay = 1.5 + +[node name="Turniwood9" parent="." instance=ExtResource( 12 )] +position = Vector2( 48, 88 ) +delay = 2.0 diff --git a/objects/environment/turniwood/turniwood.gd b/objects/environment/turniwood/turniwood.gd index 612d0b1..a884f50 100644 --- a/objects/environment/turniwood/turniwood.gd +++ b/objects/environment/turniwood/turniwood.gd @@ -1,25 +1,33 @@ extends Node2D onready var anims = $AnimationPlayer -onready var timer = $Timer +onready var flip_timer = $FlipTimer +onready var delay_timer = $DelayTimer export var time:float = 60 +export var delay = 0.0 export(int, "Wood", "Yellow") var color onready var time_ms = time * 0.0166666666666667 # Time is converted from frames @ 60fps to ms func _ready(): - #Autostart animationplayer - anims.play("idle") - timer.start(time_ms) - -func _physics_process(delta): - pass - #Debug.print(timer.) + #Auto start if delay variable is zero + if delay == 0.0: + anims.play("idle") + flip_timer.start(time_ms) + else: + delay_timer.start(delay) func _on_AnimationPlayer_animation_finished(anim_name): #Return to idle after turn animation if anim_name == "turn": anims.play("idle") - timer.start(time_ms) + flip_timer.start(time_ms) +func _physics_process(delta): + Debug.print(delay_timer.get_time_left()) -func _on_Timer_timeout(): +func _on_FlipTimer_timeout(): anims.play("turn") + + +func _on_DelayTimer_timeout(): + anims.play("idle") + flip_timer.start(time_ms) diff --git a/objects/environment/turniwood/turniwood.tscn b/objects/environment/turniwood/turniwood.tscn index 444bc3c..73b0de0 100644 --- a/objects/environment/turniwood/turniwood.tscn +++ b/objects/environment/turniwood/turniwood.tscn @@ -119,7 +119,11 @@ shape = SubResource( 1 ) anims/idle = SubResource( 2 ) anims/turn = SubResource( 3 ) -[node name="Timer" type="Timer" parent="."] +[node name="FlipTimer" type="Timer" parent="."] + +[node name="DelayTimer" type="Timer" parent="."] +one_shot = true [connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"] -[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"] +[connection signal="timeout" from="FlipTimer" to="." method="_on_FlipTimer_timeout"] +[connection signal="timeout" from="DelayTimer" to="." method="_on_DelayTimer_timeout"] diff --git a/objects/player/arrow_projectile.tscn b/objects/player/arrow_projectile.tscn index 54d3f9f..dd624ab 100644 --- a/objects/player/arrow_projectile.tscn +++ b/objects/player/arrow_projectile.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=9 format=2] +[gd_scene load_steps=13 format=2] [ext_resource path="res://scripts/1px_border.gdshader" type="Shader" id=1] [ext_resource path="res://graphics/player/arrow.png" type="Texture" id=2] @@ -13,12 +13,50 @@ shader_param/border_corners = true [sub_resource type="Curve" id=3] _data = [ Vector2( 0, 1 ), 0.0, -0.139481, 0, 0, Vector2( 1, 0 ), -2.82064, 0.0, 0, 0 ] +[sub_resource type="CurveTexture" id=4] +width = 32 +curve = SubResource( 3 ) + +[sub_resource type="ParticlesMaterial" id=5] +flag_disable_z = true +spread = 180.0 +gravity = Vector3( 0, 0, 0 ) +initial_velocity = 8.0 +initial_velocity_random = 0.18 +orbit_velocity = 0.0 +orbit_velocity_random = 0.0 +damping = 1.0 +angle = 720.0 +angle_random = 1.0 +scale = 0.25 +scale_random = 0.25 +scale_curve = SubResource( 4 ) + [sub_resource type="RectangleShape2D" id=2] extents = Vector2( 5.5, 3.5 ) [sub_resource type="Curve" id=6] _data = [ Vector2( 0, 1 ), 0.0, -1.45746, 0, 0, Vector2( 1, 0 ), 0.00323196, 0.0, 0, 0 ] +[sub_resource type="CurveTexture" id=7] +width = 32 +curve = SubResource( 6 ) + +[sub_resource type="ParticlesMaterial" id=8] +flag_disable_z = true +spread = 180.0 +gravity = Vector3( 0, 0, 0 ) +initial_velocity = 30.0 +initial_velocity_random = 0.5 +orbit_velocity = 0.0 +orbit_velocity_random = 0.0 +damping = 50.0 +angle = 720.0 +angle_random = 1.0 +scale = 0.3 +scale_curve = SubResource( 7 ) +color = Color( 1, 1, 0.290196, 1 ) + [node name="ArrowProjectile" type="Node2D"] script = ExtResource( 3 ) @@ -27,23 +65,14 @@ material = SubResource( 1 ) z_index = -1 texture = ExtResource( 2 ) -[node name="DustParticles" type="CPUParticles2D" parent="."] +[node name="DustParticles" type="Particles2D" parent="."] show_behind_parent = true position = Vector2( -4, 0 ) z_index = -1 amount = 24 local_coords = false +process_material = SubResource( 5 ) texture = ExtResource( 4 ) -spread = 180.0 -gravity = Vector2( 0, 0 ) -initial_velocity = 8.0 -initial_velocity_random = 0.18 -damping = 1.0 -angle = 720.0 -angle_random = 1.0 -scale_amount = 0.25 -scale_amount_random = 0.25 -scale_amount_curve = SubResource( 3 ) [node name="Hitbox" type="Area2D" parent="." groups=["arrow"]] @@ -51,24 +80,15 @@ scale_amount_curve = SubResource( 3 ) position = Vector2( -0.5, -0.5 ) shape = SubResource( 2 ) -[node name="SparkParticles" type="CPUParticles2D" parent="."] +[node name="SparkParticles" type="Particles2D" parent="."] position = Vector2( 4, 0 ) emitting = false amount = 16 lifetime = 0.5 one_shot = true explosiveness = 1.0 +process_material = SubResource( 8 ) texture = ExtResource( 4 ) -spread = 180.0 -gravity = Vector2( 0, 0 ) -initial_velocity = 30.0 -initial_velocity_random = 0.5 -damping = 50.0 -angle = 720.0 -angle_random = 1.0 -scale_amount = 0.3 -scale_amount_curve = SubResource( 6 ) -color = Color( 1, 1, 0.290196, 1 ) [connection signal="area_entered" from="Hitbox" to="." method="_on_Hitbox_area_entered"] [connection signal="body_entered" from="Hitbox" to="." method="_on_Hitbox_body_entered"]