diff options
Diffstat (limited to '')
-rw-r--r-- | Nodes/game.tscn | 4 | ||||
-rw-r--r-- | Scripts/scene_control.gd | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Nodes/game.tscn b/Nodes/game.tscn index eef9d0c..e0f2063 100644 --- a/Nodes/game.tscn +++ b/Nodes/game.tscn @@ -96,9 +96,9 @@ layer_1/y_sort_origin = 0 layer_1/z_index = 0 layer_1/tile_data = PackedInt32Array(2424836, 131072, 8, 2424837, 131072, 8, 2424838, 131072, 8, 2424839, 196608, 8, 2359304, 131072, 8, 2359305, 131072, 8, 2359306, 131072, 8, 2359307, 131072, 8, 2359308, 131072, 8, 2424844, 0, 6, 2424845, 65536, 8, 2424846, 131072, 8, 2490382, 0, 6, 2490383, 65536, 8, 2490384, 131072, 8, 2490385, 131072, 8, 2490386, 131072, 8, 2490387, 131072, 8, 2490388, 131072, 8, 2490389, 131072, 8, 2490390, 131072, 8, 2490391, 131072, 8, 2490392, 131072, 8, 2490393, 131072, 8, 2490394, 131072, 8, 2490395, 131072, 8, 2490396, 196608, 8, 2424861, 131072, 8, 2424862, 131072, 8, 2424863, 131072, 8, 2424864, 131072, 8, 2424865, 131072, 8, 2424866, 131072, 8, 2424867, 131072, 8, 2490404, 65536, 8, 2490405, 131072, 8, 2490406, 131072, 8, 2490407, 131072, 8, 2490408, 131072, 8, 2490409, 131072, 8, 2490410, 131072, 8, 2490411, 131072, 8, 2490412, 131072, 8, 2490413, 131072, 8, 2490414, 196608, 8, 2424879, 196608, 8, 2359344, 131072, 8, 2359345, 131072, 8, 2359346, 131072, 8, 2359347, 131072, 8, 2359348, 196608, 8, 2293813, 131072, 8, 2293814, 131072, 8, 2293815, 131072, 8, 2293816, 131072, 8, 2293817, 131072, 8, 2293818, 131072, 8, 2293819, 131072, 8, 2359355, 0, 6, 2359356, 65536, 8, 2359357, 131072, 8, 2424894, 65536, 8, 2424895, 131072, 8, 2424896, 131072, 8, 2424897, 131072, 8, 2424898, 196608, 8, 2424835, 131072, 8, 2424834, 65536, 8, 2359297, 0, 6, 2293760, 0, 7, 2228224, 0, 7, 1966080, 0, 6, 2359303, 262144, 6, 2424860, 262144, 6, 2424878, 262144, 6, 2359343, 262144, 6, 2293812, 262144, 6, 2293820, 327680, 6, 2359358, 327680, 6, 2424868, 327680, 6, 2424847, 327680, 6, 2359309, 327680, 6, 2359298, 65536, 7, 2293761, 65536, 8, 2424840, 0, 6, 2424841, 0, 7, 2424842, 0, 7, 2424843, 0, 7, 2490368, 0, 6, 2555904, 0, 6, 2490369, 0, 6, 2555905, 0, 7, 2490370, 0, 6, 2555906, 0, 7, 2490371, 0, 6, 2555907, 0, 6, 2490372, 0, 6, 2555908, 0, 6, 2490373, 0, 6, 2555909, 0, 6, 2490374, 0, 6, 2555910, 0, 6, 2490375, 0, 8, 2555911, 0, 6, 2490376, 0, 6, 2555912, 0, 8, 2490377, 0, 6, 2555913, 0, 6, 2490378, 0, 6, 2555914, 0, 6, 2490379, 0, 6, 2555915, 0, 6, 2490380, 0, 6, 2555916, 0, 7, 2490381, 0, 8, 2555917, 0, 6, 2555918, 0, 6, 2555919, 0, 6, 2555920, 0, 6, 2555921, 0, 6, 2555922, 0, 6, 2555923, 0, 8, 2555924, 0, 6, 2555925, 0, 6, 2555926, 0, 6, 2555927, 0, 6, 2555928, 0, 7, 2555929, 0, 7, 2555930, 0, 6, 2555931, 0, 6, 2555932, 0, 6, 2555933, 0, 7, 2555934, 0, 6, 2555935, 0, 6, 2555936, 0, 6, 2555937, 0, 6, 2555938, 0, 6, 2555939, 0, 6, 2555940, 0, 6, 2490397, 0, 6, 2490398, 0, 7, 2490399, 0, 7, 2490400, 0, 7, 2490401, 0, 6, 2490402, 0, 8, 2490403, 0, 6, 2555941, 0, 6, 2555942, 0, 7, 2555943, 0, 6, 2555944, 0, 6, 2555945, 0, 8, 2555946, 0, 7, 2555947, 0, 6, 2555948, 0, 6, 2555949, 0, 6, 2555950, 0, 6, 2555951, 0, 6, 2555952, 0, 8, 2555953, 0, 7, 2555954, 0, 6, 2555955, 0, 6, 2555956, 0, 7, 2555957, 0, 6, 2555958, 0, 7, 2555959, 0, 6, 2555960, 0, 7, 2555961, 0, 6, 2555962, 0, 7, 2555963, 0, 6, 2555964, 0, 8, 2555965, 0, 7, 2555966, 0, 6, 2555967, 0, 6, 2424880, 0, 6, 2490416, 0, 6, 2424881, 0, 6, 2490417, 0, 6, 2424882, 0, 6, 2490418, 0, 6, 2424883, 0, 6, 2490419, 0, 6, 2424884, 0, 7, 2490420, 0, 6, 2424885, 0, 6, 2490421, 0, 8, 2424886, 0, 6, 2490422, 0, 6, 2424887, 0, 6, 2490423, 0, 6, 2424888, 0, 7, 2490424, 0, 6, 2424889, 0, 6, 2490425, 0, 6, 2424890, 0, 7, 2490426, 0, 6, 2424891, 0, 7, 2490427, 0, 6, 2424892, 0, 6, 2490428, 0, 8, 2424893, 0, 6, 2490429, 0, 6, 2359349, 0, 8, 2359350, 0, 6, 2359351, 0, 8, 2359352, 0, 8, 2359353, 0, 6, 2359354, 0, 8, 2490415, 0, 7, 2490430, 0, 6, 2490431, 0, 8, 2490432, 0, 6, 2555968, 0, 6, 2490433, 0, 6, 2555969, 0, 7, 2555970, 0, 6, 2555971, 0, 6, 2555972, 0, 8, 2555973, 0, 6, 2555974, 0, 6, 2555975, 0, 8, 2424833, 0, 7, 2424832, 0, 8, 2228225, 65536, 7, 2162689, 65536, 6, 2162690, 327680, 7, 2097154, 65536, 7, 2031618, 65536, 6, 2031619, 327680, 7, 1966083, 65536, 7, 1900547, 65536, 7, 1835011, 65536, 7, 1769475, 65536, 7, 1703939, 65536, 7, 1638403, 65536, 7, 1572867, 65536, 7, 1507331, 65536, 7, 1441795, 327680, 6, 1441794, 65536, 8, 1376258, 65536, 7, 1310722, 65536, 7, 1245186, 327680, 6, 1245185, 65536, 8, 1179649, 65536, 7, 1114113, 65536, 6, 1114114, 327680, 7, 1048578, 65536, 7, 983042, 65536, 7, 917506, 65536, 7, 851970, 65536, 7, 786434, 65536, 7, 720898, 65536, 7, 655362, 327680, 6, 589825, 65536, 7, 524289, 65536, 7, 458754, 327680, 7, 393218, 65536, 6, 393219, 327680, 7, 327683, 65536, 7, 262147, 65536, 7, 2293762, 327680, 6, 655361, 65536, 8, 458753, 65536, 6, 2359296, 0, 6, 2162688, 0, 6, 2097152, 0, 7, 1310720, 0, 6, 1376256, 0, 6, 1441792, 0, 6, 1507328, 0, 6, 1572864, 0, 6, 1638400, 0, 7, 1703936, 0, 6, 1769472, 0, 6, 1835008, 0, 6, 1900544, 0, 7, 2031616, 0, 6, 1310721, 0, 6, 1376257, 0, 6, 1441793, 0, 8, 1507329, 0, 6, 1572865, 0, 6, 1638401, 0, 7, 1703937, 0, 6, 1769473, 0, 8, 1835009, 0, 7, 1900545, 0, 6, 1966081, 0, 8, 2031617, 0, 6, 2097153, 0, 6, 1507330, 0, 6, 1572866, 0, 6, 1638402, 0, 8, 1703938, 0, 6, 1769474, 0, 6, 1835010, 0, 6, 1900546, 0, 6, 1966082, 0, 6, 1245184, 0, 6, 1179648, 0, 6, 1114112, 0, 8, 720896, 0, 7, 786432, 0, 6, 851968, 0, 6, 917504, 0, 6, 983040, 0, 6, 1048576, 0, 8, 720897, 0, 6, 786433, 0, 6, 851969, 0, 6, 917505, 0, 7, 983041, 0, 6, 1048577, 0, 6, 655360, 0, 8, 589824, 0, 6, 524288, 0, 6, 458752, 0, 7, 0, 0, 6, 65536, 0, 6, 131072, 0, 6, 196608, 0, 6, 262144, 0, 7, 327680, 0, 6, 393216, 0, 6, 1, 0, 6, 65537, 0, 6, 131073, 0, 6, 196609, 0, 6, 262145, 0, 6, 327681, 0, 8, 393217, 0, 6, 327682, 0, 6, 262146, 0, 6, 196610, 0, 7, 131074, 0, 6, 65538, 0, 7, 2, 0, 6, 196611, 65536, 6, 196612, 131072, 6, 196613, 327680, 7, 131077, 65536, 6, 131078, 131072, 6, 131079, 131072, 6, 131080, 131072, 6, 131081, 131072, 6, 131082, 131072, 6, 131083, 131072, 6, 196620, 262144, 7, 196621, 131072, 6, 196622, 131072, 6, 196623, 131072, 6, 196624, 131072, 6, 262161, 262144, 7, 262162, 131072, 6, 262163, 131072, 6, 262164, 131072, 6, 262165, 131072, 6, 262166, 131072, 6, 262167, 131072, 6, 262168, 131072, 6, 262169, 131072, 6, 262170, 131072, 6, 262171, 131072, 6, 262172, 327680, 7, 196636, 65536, 6, 196637, 131072, 6, 196638, 327680, 7, 131102, 65536, 6, 131103, 131072, 6, 131104, 131072, 6, 131105, 131072, 6, 131106, 131072, 6, 131107, 131072, 6, 131108, 196608, 6, 196645, 131072, 6, 196646, 131072, 6, 196647, 131072, 6, 196648, 131072, 6, 196649, 196608, 6, 196650, 0, 7, 262186, 131072, 6, 262187, 131072, 6, 262188, 131072, 6, 262189, 327680, 7, 196653, 65536, 6, 196654, 131072, 6, 196655, 327680, 7, 131120, 131072, 6, 131121, 131072, 6, 131122, 196608, 6, 196658, 262144, 7, 131123, 65536, 6, 131124, 131072, 6, 131125, 131072, 6, 131126, 131072, 6, 131127, 131072, 6, 131128, 196608, 6, 196664, 262144, 7, 196665, 196608, 6, 262201, 262144, 7, 262202, 131072, 6, 262203, 131072, 6, 262204, 131072, 6, 327741, 262144, 7, 327742, 131072, 6, 327743, 131072, 6, 327744, 131072, 6, 327745, 131072, 6, 327746, 131072, 6, 393283, 262144, 7, 393284, 196608, 6, 458820, 262144, 7, 458821, 196608, 6, 524357, 196608, 7, 589893, 262144, 7, 589894, 196608, 6, 655430, 196608, 7, 196644, 262144, 7, 262185, 262144, 7, 196659, 327680, 7, 131119, 65536, 6, 196625, 196608, 6, 131084, 196608, 6, 262205, 196608, 6, 327747, 196608, 6, 393285, 0, 6, 327750, 0, 8, 69, 0, 7, 65605, 0, 6, 131141, 0, 6, 196677, 0, 8, 262213, 0, 6, 327749, 0, 6, 70, 0, 6, 65606, 0, 6, 131142, 0, 6, 196678, 0, 6, 262214, 0, 7, 393286, 0, 7, 71, 0, 8, 65607, 0, 7, 131143, 0, 7, 196679, 0, 7, 262215, 0, 7, 327751, 0, 7, 393287, 0, 6, 62, 0, 6, 65598, 0, 7, 131134, 0, 6, 196670, 0, 7, 262206, 0, 6, 63, 0, 6, 65599, 0, 6, 131135, 0, 8, 196671, 0, 8, 262207, 0, 7, 64, 0, 7, 65600, 0, 7, 131136, 0, 8, 196672, 0, 6, 262208, 0, 7, 65, 0, 6, 65601, 0, 6, 131137, 0, 8, 196673, 0, 6, 262209, 0, 7, 66, 0, 6, 65602, 0, 6, 131138, 0, 6, 196674, 0, 8, 262210, 0, 8, 67, 0, 8, 65603, 0, 7, 131139, 0, 6, 196675, 0, 8, 262211, 0, 7, 68, 0, 8, 65604, 0, 7, 131140, 0, 7, 196676, 0, 8, 262212, 0, 8, 327748, 0, 6, 58, 0, 7, 65594, 0, 6, 131130, 0, 8, 196666, 0, 8, 59, 0, 8, 65595, 0, 8, 131131, 0, 7, 196667, 0, 8, 60, 0, 6, 65596, 0, 8, 131132, 0, 6, 196668, 0, 6, 61, 0, 8, 65597, 0, 6, 131133, 0, 6, 196669, 0, 7, 131129, 0, 7, 65593, 0, 6, 57, 0, 6, 3, 0, 6, 65539, 0, 8, 4, 0, 8, 65540, 0, 7, 5, 0, 6, 65541, 0, 7, 6, 0, 7, 65542, 0, 6, 7, 0, 6, 65543, 0, 6, 8, 0, 6, 65544, 0, 7, 9, 0, 7, 65545, 0, 8, 10, 0, 7, 65546, 0, 8, 11, 0, 6, 65547, 0, 8, 12, 0, 6, 65548, 0, 6, 13, 0, 7, 65549, 0, 7, 14, 0, 6, 65550, 0, 6, 15, 0, 7, 65551, 0, 6, 16, 0, 6, 65552, 0, 7, 17, 0, 6, 65553, 0, 8, 18, 0, 6, 65554, 0, 8, 19, 0, 7, 65555, 0, 6, 20, 0, 6, 65556, 0, 8, 21, 0, 6, 65557, 0, 7, 22, 0, 6, 65558, 0, 7, 23, 0, 6, 65559, 0, 8, 24, 0, 6, 65560, 0, 6, 25, 0, 8, 65561, 0, 6, 26, 0, 7, 65562, 0, 7, 27, 0, 8, 65563, 0, 7, 28, 0, 7, 65564, 0, 7, 29, 0, 8, 65565, 0, 8, 30, 0, 6, 65566, 0, 6, 31, 0, 6, 65567, 0, 7, 32, 0, 7, 65568, 0, 6, 33, 0, 7, 65569, 0, 7, 34, 0, 6, 65570, 0, 7, 35, 0, 6, 65571, 0, 6, 36, 0, 7, 65572, 0, 6, 37, 0, 7, 65573, 0, 6, 38, 0, 6, 65574, 0, 7, 39, 0, 7, 65575, 0, 7, 40, 0, 7, 65576, 0, 7, 41, 0, 6, 65577, 0, 6, 42, 0, 6, 65578, 0, 6, 43, 0, 8, 65579, 0, 6, 44, 0, 6, 65580, 0, 7, 45, 0, 7, 65581, 0, 6, 46, 0, 7, 65582, 0, 8, 47, 0, 7, 65583, 0, 6, 48, 0, 7, 65584, 0, 6, 49, 0, 6, 65585, 0, 7, 50, 0, 6, 65586, 0, 6, 51, 0, 6, 65587, 0, 7, 52, 0, 7, 65588, 0, 8, 53, 0, 7, 65589, 0, 6, 54, 0, 6, 65590, 0, 6, 55, 0, 8, 65591, 0, 6, 56, 0, 8, 65592, 0, 8, 131076, 0, 6, 131075, 0, 6, 131085, 0, 7, 131086, 0, 7, 131087, 0, 6, 131088, 0, 8, 131089, 0, 8, 131090, 0, 7, 131091, 0, 7, 131092, 0, 8, 131093, 0, 6, 131094, 0, 7, 131095, 0, 8, 131096, 0, 8, 131097, 0, 7, 131098, 0, 6, 131099, 0, 7, 131100, 0, 6, 131101, 0, 6, 131109, 0, 8, 131110, 0, 6, 131111, 0, 6, 131112, 0, 6, 131113, 0, 6, 131114, 0, 6, 131115, 0, 8, 131116, 0, 6, 131117, 0, 7, 131118, 0, 6, 196651, 0, 6, 196652, 0, 7, 196635, 0, 6, 196634, 0, 6, 196633, 0, 6, 196632, 0, 6, 196631, 0, 6, 196630, 0, 6, 196629, 0, 6, 196628, 0, 6, 196627, 0, 6, 196626, 0, 6, 720966, 196608, 7, 786502, 196608, 7, 852038, 196608, 8, 852037, 262144, 6, 917573, 196608, 7, 983109, 196608, 7, 1048645, 196608, 8, 1114180, 196608, 7, 1179716, 196608, 7, 1245252, 196608, 7, 1310788, 262144, 7, 1310789, 196608, 6, 1376325, 196608, 7, 1441861, 196608, 7, 1507397, 196608, 7, 1572933, 196608, 8, 1704005, 196608, 6, 1769541, 196608, 7, 1835077, 196608, 7, 1900613, 196608, 7, 1966149, 196608, 8, 1966148, 262144, 6, 2031684, 196608, 7, 2097220, 196608, 7, 2162756, 196608, 7, 2359363, 131072, 8, 1048644, 262144, 6, 2359364, 196608, 8, 2293828, 196608, 7, 2228292, 196608, 7, 2359362, 262144, 6, 1704004, 262144, 7, 1572932, 262144, 6, 1638468, 196608, 7, 458822, 0, 6, 458823, 0, 8, 524359, 0, 8, 524358, 0, 8, 589895, 0, 7, 917575, 0, 7, 983111, 0, 7, 1114183, 0, 6, 1376327, 0, 7, 1441863, 0, 8, 1507399, 0, 7, 655431, 0, 7, 720967, 0, 6, 786503, 0, 7, 852039, 0, 8, 1048647, 0, 8, 1179719, 0, 7, 1245255, 0, 7, 1310791, 0, 7, 917574, 0, 7, 983110, 0, 6, 1048646, 0, 6, 1114182, 0, 7, 1179718, 0, 8, 1245254, 0, 7, 1310790, 0, 7, 1376326, 0, 8, 1441862, 0, 6, 1507398, 0, 6, 1245253, 0, 8, 1179717, 0, 8, 1114181, 0, 6, 1572934, 0, 6, 1638470, 0, 6, 1704006, 0, 7, 1769542, 0, 7, 1835078, 0, 7, 1900614, 0, 6, 1966150, 0, 7, 2031686, 0, 6, 2097222, 0, 7, 2162758, 0, 7, 2228294, 0, 6, 2293830, 0, 6, 2359366, 0, 7, 2424902, 0, 8, 2490438, 0, 8, 1572935, 0, 8, 1638471, 0, 6, 1704007, 0, 6, 1769543, 0, 7, 1835079, 0, 8, 1900615, 0, 6, 1966151, 0, 6, 2031687, 0, 6, 2097223, 0, 7, 2162759, 0, 8, 2228295, 0, 8, 2293831, 0, 8, 2359367, 0, 8, 2424903, 0, 8, 2490439, 0, 6, 2424899, 0, 8, 2490435, 0, 6, 2424900, 0, 6, 2490436, 0, 8, 2424901, 0, 6, 2490437, 0, 8, 2031685, 0, 8, 2097221, 0, 8, 2162757, 0, 6, 2228293, 0, 8, 2293829, 0, 7, 2359365, 0, 7, 1638469, 0, 8, 2490434, 0, 8, 2621511, 0, 8, 2621510, 0, 7, 2621509, 0, 6, 2621508, 0, 7, 2621507, 0, 6, 2621506, 0, 8, 2621505, 0, 7, 2621504, 0, 8, 2621503, 0, 7, 2621502, 0, 7, 2621501, 0, 6, 2621500, 0, 7, 2621499, 0, 6, 2621498, 0, 7, 2621497, 0, 8, 2621496, 0, 8, 2621495, 0, 7, 2621494, 0, 7, 2621493, 0, 7, 2621492, 0, 7, 2621491, 0, 6, 2621490, 0, 8, 2621489, 0, 6, 2621488, 0, 8, 2621487, 0, 8, 2621486, 0, 6, 2621485, 0, 7, 2621484, 0, 6, 2621440, 0, 6, 2621441, 0, 7, 2621442, 0, 7, 2621443, 0, 7, 2621444, 0, 8, 2621445, 0, 7, 2621446, 0, 7, 2621447, 0, 7, 2621448, 0, 7, 2621449, 0, 8, 2621450, 0, 6, 2621451, 0, 8, 2621452, 0, 7, 2621453, 0, 6, 2621454, 0, 6, 2621455, 0, 7, 2621456, 0, 7, 2621457, 0, 6, 2621458, 0, 8, 2621459, 0, 7, 2621460, 0, 6, 2621461, 0, 8, 2621462, 0, 7, 2621463, 0, 6, 2621464, 0, 7, 2621465, 0, 8, 2621466, 0, 8, 2621467, 0, 7, 2621468, 0, 7, 2621469, 0, 6, 2621470, 0, 8, 2621471, 0, 6, 2621472, 0, 7, 2621473, 0, 6, 2621474, 0, 8, 2621475, 0, 7, 2621476, 0, 6, 2621477, 0, 6, 2621478, 0, 7, 2621479, 0, 6, 2621480, 0, 8, 2621481, 0, 6, 2621482, 0, 7, 2621483, 0, 8) -[node name="Area2D" type="Area2D" parent="TileMap"] +[node name="StaticBody2D" type="StaticBody2D" parent="TileMap"] -[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="TileMap/Area2D"] +[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="TileMap/StaticBody2D"] build_mode = 1 polygon = PackedVector2Array(964, 570, 845, 570, 835, 586, 765, 585, 740, 616, 594, 618, 580, 602, 462, 601, 449, 617, 257, 618, 244, 601, 225, 602, 211, 586, 124, 585, 115, 599, 49, 602, 40, 595, 38, 573, 24, 561, 23, 538, 38, 535, 39, 509, 54, 501, 54, 364, 39, 351, 38, 318, 23, 304, 22, 284, 36, 278, 38, 173, 24, 163, 23, 123, 35, 118, 44, 105, 57, 101, 54, 58, 68, 54, 82, 54, 92, 39, 196, 38, 203, 53, 277, 53, 283, 68, 454, 70, 460, 56, 484, 54, 494, 38, 581, 38, 586, 51, 660, 53, 667, 69, 724, 70, 732, 55, 756, 54, 763, 39, 801, 37, 815, 55, 828, 39, 897, 37, 922, 68, 980, 71, 987, 84, 1075, 86, 1111, 122, 1113, 148, 1129, 155, 1130, 205, 1115, 220, 1115, 256, 1099, 268, 1097, 322, 1111, 331, 1113, 385, 1096, 396, 1098, 419, 1113, 427, 1115, 481, 1099, 491, 1099, 571, 1089, 585, 1069, 583, 1059, 600, 1011, 603, 996, 585, 978, 585) diff --git a/Scripts/scene_control.gd b/Scripts/scene_control.gd index f9bc40a..ce3332f 100644 --- a/Scripts/scene_control.gd +++ b/Scripts/scene_control.gd @@ -61,6 +61,8 @@ func reset_level(): car.global_position = start.global_position car.global_rotation = start.rotation; + current_time = 0.0 + set_driving(false) func start_driving(): |