From dbfff61052752c98e45f686852c23188286fddcb Mon Sep 17 00:00:00 2001 From: fram3d Date: Wed, 3 Jul 2024 11:38:14 +0200 Subject: [PATCH] bigger map --- src/World.tscn | 27 +++++---------------------- src/camera.gd | 4 ++-- src/spawn.gd | 8 ++++++-- 3 files changed, 13 insertions(+), 26 deletions(-) diff --git a/src/World.tscn b/src/World.tscn index 501af59..ddd0f70 100644 --- a/src/World.tscn +++ b/src/World.tscn @@ -1,14 +1,10 @@ -[gd_scene load_steps=27 format=2] +[gd_scene load_steps=23 format=2] [ext_resource path="res://Tilesets/stone.png" type="Texture" id=1] [ext_resource path="res://Tilesets/dirt.png" type="Texture" id=2] [ext_resource path="res://Tilesets/water.png" type="Texture" id=3] -[ext_resource path="res://NPCs/malegoblin.tscn" type="PackedScene" id=4] -[ext_resource path="res://NPCs/femalegoblin.tscn" type="PackedScene" id=5] -[ext_resource path="res://NPCs/moss.tscn" type="PackedScene" id=6] [ext_resource path="res://Audio/Background/cave.ogg" type="AudioStream" id=7] [ext_resource path="res://camera.gd" type="Script" id=8] -[ext_resource path="res://NPCs/big_ooze.tscn" type="PackedScene" id=9] [ext_resource path="res://spawn.gd" type="Script" id=10] [sub_resource type="ConvexPolygonShape2D" id=1] @@ -222,9 +218,11 @@ points = PoolVector2Array( 0, 0, 8, 0, 8, 8, 0, 8 ) [node name="World" type="Node2D"] [node name="Camera2D" type="Camera2D" parent="."] -position = Vector2( 40, 32 ) +position = Vector2( 132, 132 ) current = true +zoom = Vector2( 4, 4 ) script = ExtResource( 8 ) +max_zoom = 8.0 [node name="Tween" type="Tween" parent="Camera2D"] @@ -234,28 +232,13 @@ cell_size = Vector2( 8, 8 ) cell_quadrant_size = 8 cell_custom_transform = Transform2D( 8, 0, 0, 8, 0, 0 ) format = 1 -tile_data = PoolIntArray( 0, 1, 0, 1, 1, 0, 2, 1, 0, 3, 1, 0, 4, 1, 0, 5, 1, 0, 6, 1, 0, 7, 1, 0, 8, 1, 0, 9, 1, 0, 65536, 1, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 2, 65537, 65541, 2, 65537, 65542, 2, 65537, 65543, 1, 0, 65544, 1, 0, 65545, 1, 0, 131072, 1, 0, 131073, 0, 0, 131074, 1, 0, 131075, 0, 0, 131076, 0, 0, 131077, 1, 0, 131078, 2, 65537, 131079, 1, 0, 131080, 1, 0, 131081, 1, 0, 196608, 1, 0, 196609, 0, 0, 196610, 1, 0, 196611, 0, 0, 196612, 0, 0, 196613, 0, 0, 196614, 2, 65537, 196615, 2, 65537, 196616, 2, 2, 196617, 1, 0, 262144, 1, 0, 262145, 0, 0, 262146, 1, 0, 262147, 0, 0, 262148, 0, 0, 262149, 1, 0, 262150, 2, 65536, 262151, 2, 65537, 262152, 2, 65538, 262153, 1, 0, 327680, 1, 0, 327681, 0, 0, 327682, 1, 0, 327683, 0, 0, 327684, 0, 0, 327685, 0, 0, 327686, 2, 65536, 327687, 2, 65537, 327688, 2, 65538, 327689, 1, 0, 393216, 1, 0, 393217, 0, 0, 393218, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 2, 131072, 393223, 2, 131073, 393224, 2, 131074, 393225, 1, 0, 458752, 1, 0, 458753, 1, 0, 458754, 1, 0, 458755, 1, 0, 458756, 1, 0, 458757, 1, 0, 458758, 1, 0, 458759, 1, 0, 458760, 1, 0, 458761, 1, 0 ) +tile_data = PoolIntArray( 0, 1, 0, 1, 1, 0, 2, 1, 0, 3, 1, 0, 4, 1, 0, 5, 1, 0, 6, 1, 0, 7, 1, 0, 8, 1, 0, 9, 1, 0, 10, 1, 0, 11, 1, 0, 12, 1, 0, 13, 1, 0, 14, 1, 0, 15, 1, 0, 16, 1, 0, 17, 1, 0, 18, 1, 0, 19, 1, 0, 20, 1, 0, 21, 1, 0, 22, 1, 0, 23, 1, 0, 24, 1, 0, 25, 1, 0, 26, 1, 0, 27, 1, 0, 28, 1, 0, 29, 1, 0, 30, 1, 0, 31, 1, 0, 32, 1, 0, 65536, 1, 0, 65537, 0, 0, 65538, 0, 0, 65539, 0, 0, 65540, 0, 0, 65541, 0, 0, 65542, 0, 0, 65543, 0, 0, 65544, 0, 0, 65545, 0, 0, 65546, 0, 0, 65547, 0, 0, 65548, 0, 0, 65549, 0, 0, 65550, 0, 0, 65551, 0, 0, 65552, 0, 0, 65553, 0, 0, 65554, 0, 0, 65555, 0, 0, 65556, 0, 0, 65557, 0, 0, 65558, 0, 0, 65559, 0, 0, 65560, 0, 0, 65561, 0, 0, 65562, 0, 0, 65563, 0, 0, 65564, 0, 0, 65565, 0, 0, 65566, 0, 0, 65567, 0, 0, 65568, 1, 0, 131072, 1, 0, 131073, 0, 0, 131074, 0, 0, 131075, 0, 0, 131076, 0, 0, 131077, 0, 0, 131078, 0, 0, 131079, 0, 2, 131080, 0, 2, 131081, 0, 0, 131082, 1, 0, 131083, 1, 0, 131084, 1, 0, 131085, 1, 0, 131086, 1, 0, 131087, 1, 0, 131088, 1, 0, 131089, 1, 0, 131090, 2, 65537, 131091, 0, 0, 131092, 0, 0, 131093, 0, 2, 131094, 0, 0, 131095, 0, 0, 131096, 0, 0, 131097, 0, 0, 131098, 1, 0, 131099, 1, 0, 131100, 1, 0, 131101, 1, 0, 131102, 0, 0, 131103, 0, 0, 131104, 1, 0, 196608, 1, 0, 196609, 1, 0, 196610, 1, 0, 196611, 1, 0, 196612, 1, 0, 196613, 1, 0, 196614, 0, 0, 196615, 0, 1, 196616, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 196620, 0, 0, 196621, 0, 0, 196622, 0, 0, 196623, 0, 0, 196624, 0, 0, 196625, 0, 0, 196626, 2, 65537, 196627, 2, 65537, 196628, 0, 0, 196629, 0, 2, 196630, 0, 0, 196631, 1, 0, 196632, 0, 0, 196633, 0, 0, 196634, 0, 0, 196635, 0, 0, 196636, 0, 0, 196637, 1, 0, 196638, 0, 0, 196639, 0, 0, 196640, 1, 0, 262144, 1, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 1, 0, 262150, 0, 0, 262151, 0, 0, 262152, 0, 0, 262153, 0, 0, 262154, 0, 0, 262155, 0, 0, 262156, 0, 0, 262157, 0, 0, 262158, 2, 65537, 262159, 2, 65537, 262160, 2, 65537, 262161, 2, 65537, 262162, 2, 65537, 262163, 2, 65537, 262164, 0, 0, 262165, 0, 1, 262166, 0, 0, 262167, 1, 0, 262168, 0, 0, 262169, 0, 0, 262170, 0, 2, 262171, 0, 2, 262172, 0, 0, 262173, 1, 0, 262174, 0, 0, 262175, 0, 0, 262176, 1, 0, 327680, 1, 0, 327681, 0, 0, 327682, 0, 0, 327683, 0, 2, 327684, 0, 0, 327685, 1, 0, 327686, 1, 0, 327687, 1, 0, 327688, 1, 0, 327689, 1, 0, 327690, 1, 0, 327691, 0, 0, 327692, 0, 0, 327693, 0, 0, 327694, 0, 0, 327695, 0, 0, 327696, 0, 0, 327697, 2, 65537, 327698, 2, 65537, 327699, 0, 0, 327700, 0, 0, 327701, 0, 1, 327702, 0, 0, 327703, 1, 0, 327704, 0, 0, 327705, 0, 0, 327706, 0, 0, 327707, 0, 0, 327708, 0, 0, 327709, 0, 0, 327710, 0, 0, 327711, 0, 0, 327712, 1, 0, 393216, 1, 0, 393217, 0, 0, 393218, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 393223, 0, 0, 393224, 0, 0, 393225, 0, 0, 393226, 1, 0, 393227, 0, 0, 393228, 0, 2, 393229, 0, 2, 393230, 0, 0, 393231, 0, 0, 393232, 0, 0, 393233, 0, 0, 393234, 2, 65537, 393235, 2, 65537, 393236, 0, 0, 393237, 0, 1, 393238, 0, 0, 393239, 1, 0, 393240, 1, 0, 393241, 1, 0, 393242, 1, 0, 393243, 0, 0, 393244, 0, 0, 393245, 0, 0, 393246, 0, 2, 393247, 0, 0, 393248, 1, 0, 458752, 1, 0, 458753, 0, 0, 458754, 0, 0, 458755, 1, 0, 458756, 0, 0, 458757, 0, 1, 458758, 0, 0, 458759, 0, 1, 458760, 0, 2, 458761, 0, 0, 458762, 1, 0, 458763, 0, 0, 458764, 0, 2, 458765, 0, 0, 458766, 0, 0, 458767, 0, 0, 458768, 0, 0, 458769, 0, 0, 458770, 2, 65537, 458771, 2, 65537, 458772, 0, 0, 458773, 0, 0, 458774, 0, 0, 458775, 1, 0, 458776, 0, 0, 458777, 0, 0, 458778, 0, 0, 458779, 0, 0, 458780, 0, 0, 458781, 0, 0, 458782, 0, 0, 458783, 0, 0, 458784, 1, 0, 524288, 1, 0, 524289, 0, 0, 524290, 0, 0, 524291, 1, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524295, 0, 0, 524296, 0, 0, 524297, 0, 0, 524298, 1, 0, 524299, 0, 0, 524300, 0, 1, 524301, 0, 0, 524302, 1, 0, 524303, 1, 0, 524304, 1, 0, 524305, 0, 0, 524306, 2, 65537, 524307, 0, 0, 524308, 0, 0, 524309, 0, 0, 524310, 0, 0, 524311, 1, 0, 524312, 1, 0, 524313, 1, 0, 524314, 1, 0, 524315, 1, 0, 524316, 1, 0, 524317, 1, 0, 524318, 0, 0, 524319, 0, 0, 524320, 1, 0, 589824, 1, 0, 589825, 0, 0, 589826, 0, 0, 589827, 1, 0, 589828, 1, 0, 589829, 1, 0, 589830, 1, 0, 589831, 1, 0, 589832, 1, 0, 589833, 1, 0, 589834, 1, 0, 589835, 0, 0, 589836, 0, 2, 589837, 0, 0, 589838, 0, 0, 589839, 0, 0, 589840, 0, 0, 589841, 0, 0, 589842, 2, 65537, 589843, 2, 65537, 589844, 2, 1, 589845, 2, 1, 589846, 2, 2, 589847, 0, 0, 589848, 0, 0, 589849, 0, 0, 589850, 0, 0, 589851, 0, 0, 589852, 0, 0, 589853, 0, 0, 589854, 0, 0, 589855, 0, 0, 589856, 1, 0, 655360, 1, 0, 655361, 0, 0, 655362, 0, 0, 655363, 0, 0, 655364, 0, 0, 655365, 0, 0, 655366, 0, 0, 655367, 0, 0, 655368, 0, 0, 655369, 0, 0, 655370, 1, 0, 655371, 0, 0, 655372, 0, 1, 655373, 0, 0, 655374, 0, 0, 655375, 0, 2, 655376, 0, 1, 655377, 0, 0, 655378, 2, 65536, 655379, 2, 65537, 655380, 2, 65537, 655381, 2, 65537, 655382, 2, 65538, 655383, 0, 0, 655384, 0, 1, 655385, 0, 0, 655386, 0, 0, 655387, 0, 2, 655388, 0, 1, 655389, 0, 0, 655390, 0, 2, 655391, 0, 0, 655392, 1, 0, 720896, 1, 0, 720897, 0, 0, 720898, 0, 0, 720899, 0, 0, 720900, 0, 0, 720901, 0, 2, 720902, 0, 0, 720903, 0, 0, 720904, 0, 0, 720905, 0, 0, 720906, 1, 0, 720907, 0, 0, 720908, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 720914, 2, 65537, 720915, 2, 65537, 720916, 2, 65537, 720917, 2, 65537, 720918, 2, 65538, 720919, 0, 0, 720920, 0, 0, 720921, 0, 0, 720922, 0, 0, 720923, 0, 0, 720924, 0, 0, 720925, 0, 0, 720926, 0, 0, 720927, 0, 0, 720928, 1, 0, 786432, 1, 0, 786433, 0, 0, 786434, 0, 0, 786435, 1, 0, 786436, 0, 0, 786437, 0, 2, 786438, 0, 2, 786439, 0, 0, 786440, 0, 1, 786441, 0, 0, 786442, 1, 0, 786443, 0, 0, 786444, 0, 0, 786445, 2, 65537, 786446, 2, 65537, 786447, 2, 65537, 786448, 2, 65537, 786449, 2, 65537, 786450, 2, 65537, 786451, 2, 65537, 786452, 2, 65537, 786453, 2, 65537, 786454, 2, 65537, 786455, 0, 0, 786456, 0, 0, 786457, 0, 0, 786458, 1, 0, 786459, 1, 0, 786460, 1, 0, 786461, 1, 0, 786462, 0, 0, 786463, 0, 0, 786464, 1, 0, 851968, 1, 0, 851969, 0, 0, 851970, 0, 0, 851971, 1, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 851979, 0, 0, 851980, 2, 65537, 851981, 2, 65537, 851982, 1, 0, 851983, 0, 0, 851984, 0, 0, 851985, 0, 0, 851986, 2, 65537, 851987, 2, 131073, 851988, 2, 131073, 851989, 2, 65537, 851990, 2, 65537, 851991, 2, 65537, 851992, 0, 0, 851993, 0, 0, 851994, 0, 0, 851995, 0, 0, 851996, 1, 0, 851997, 1, 0, 851998, 0, 0, 851999, 0, 0, 852000, 1, 0, 917504, 1, 0, 917505, 0, 0, 917506, 0, 0, 917507, 1, 0, 917508, 1, 0, 917509, 1, 0, 917510, 1, 0, 917511, 1, 0, 917512, 1, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 917516, 2, 65537, 917517, 0, 0, 917518, 1, 0, 917519, 0, 0, 917520, 0, 2, 917521, 0, 0, 917522, 0, 0, 917523, 0, 0, 917524, 0, 0, 917525, 0, 0, 917526, 2, 65537, 917527, 0, 0, 917528, 0, 0, 917529, 0, 2, 917530, 0, 1, 917531, 0, 0, 917532, 1, 0, 917533, 1, 0, 917534, 0, 0, 917535, 0, 0, 917536, 1, 0, 983040, 1, 0, 983041, 0, 0, 983042, 0, 0, 983043, 1, 0, 983044, 0, 0, 983045, 0, 0, 983046, 0, 0, 983047, 0, 0, 983048, 1, 0, 983049, 1, 0, 983050, 1, 0, 983051, 0, 0, 983052, 2, 65537, 983053, 0, 0, 983054, 1, 0, 983055, 0, 0, 983056, 0, 2, 983057, 0, 2, 983058, 0, 2, 983059, 0, 0, 983060, 0, 0, 983061, 0, 0, 983062, 2, 65537, 983063, 0, 0, 983064, 0, 0, 983065, 0, 0, 983066, 0, 0, 983067, 0, 0, 983068, 0, 0, 983069, 0, 0, 983070, 0, 0, 983071, 0, 0, 983072, 1, 0, 1048576, 1, 0, 1048577, 0, 0, 1048578, 0, 0, 1048579, 1, 0, 1048580, 0, 0, 1048581, 0, 1, 1048582, 0, 2, 1048583, 0, 0, 1048584, 0, 0, 1048585, 0, 0, 1048586, 0, 0, 1048587, 0, 0, 1048588, 2, 65537, 1048589, 0, 0, 1048590, 1, 0, 1048591, 0, 0, 1048592, 0, 0, 1048593, 0, 0, 1048594, 0, 0, 1048595, 0, 0, 1048596, 1, 0, 1048597, 1, 0, 1048598, 2, 65537, 1048599, 1, 0, 1048600, 1, 0, 1048601, 1, 0, 1048602, 0, 0, 1048603, 0, 1, 1048604, 0, 1, 1048605, 0, 0, 1048606, 0, 1, 1048607, 0, 0, 1048608, 1, 0, 1114112, 1, 0, 1114113, 0, 0, 1114114, 0, 0, 1114115, 0, 0, 1114116, 0, 0, 1114117, 0, 0, 1114118, 0, 0, 1114119, 0, 2, 1114120, 0, 1, 1114121, 0, 0, 1114122, 0, 1, 1114123, 0, 0, 1114124, 2, 65537, 1114125, 0, 0, 1114126, 1, 0, 1114127, 1, 0, 1114128, 1, 0, 1114129, 0, 0, 1114130, 0, 0, 1114131, 1, 0, 1114132, 1, 0, 1114133, 0, 0, 1114134, 2, 65537, 1114135, 0, 0, 1114136, 0, 0, 1114137, 0, 0, 1114138, 0, 0, 1114139, 0, 0, 1114140, 0, 0, 1114141, 0, 0, 1114142, 0, 0, 1114143, 0, 0, 1114144, 1, 0, 1179648, 1, 0, 1179649, 0, 0, 1179650, 0, 2, 1179651, 0, 2, 1179652, 0, 1, 1179653, 0, 2, 1179654, 0, 0, 1179655, 0, 0, 1179656, 0, 0, 1179657, 0, 0, 1179658, 0, 0, 1179659, 0, 0, 1179660, 2, 65537, 1179661, 0, 0, 1179662, 0, 0, 1179663, 0, 0, 1179664, 1, 0, 1179665, 0, 0, 1179666, 0, 0, 1179667, 1, 0, 1179668, 0, 0, 1179669, 0, 0, 1179670, 2, 65537, 1179671, 0, 0, 1179672, 0, 2, 1179673, 0, 0, 1179674, 0, 2, 1179675, 0, 0, 1179676, 1, 0, 1179677, 1, 0, 1179678, 0, 0, 1179679, 0, 0, 1179680, 1, 0, 1245184, 1, 0, 1245185, 0, 0, 1245186, 0, 0, 1245187, 0, 0, 1245188, 0, 0, 1245189, 0, 0, 1245190, 0, 0, 1245191, 2, 65537, 1245192, 2, 65537, 1245193, 2, 65537, 1245194, 2, 65537, 1245195, 2, 65537, 1245196, 2, 65537, 1245197, 0, 0, 1245198, 0, 2, 1245199, 0, 0, 1245200, 1, 0, 1245201, 0, 0, 1245202, 0, 0, 1245203, 1, 0, 1245204, 0, 0, 1245205, 0, 0, 1245206, 2, 65537, 1245207, 0, 0, 1245208, 0, 0, 1245209, 0, 2, 1245210, 0, 2, 1245211, 0, 0, 1245212, 1, 0, 1245213, 1, 0, 1245214, 0, 0, 1245215, 0, 0, 1245216, 1, 0, 1310720, 1, 0, 1310721, 0, 0, 1310722, 0, 1, 1310723, 0, 0, 1310724, 2, 65537, 1310725, 2, 65537, 1310726, 2, 65537, 1310727, 2, 65537, 1310728, 0, 0, 1310729, 0, 0, 1310730, 1, 0, 1310731, 0, 0, 1310732, 2, 65537, 1310733, 0, 0, 1310734, 0, 0, 1310735, 0, 0, 1310736, 1, 0, 1310737, 0, 0, 1310738, 0, 0, 1310739, 0, 0, 1310740, 0, 0, 1310741, 0, 0, 1310742, 2, 65537, 1310743, 0, 0, 1310744, 0, 0, 1310745, 0, 0, 1310746, 0, 0, 1310747, 0, 0, 1310748, 1, 0, 1310749, 1, 0, 1310750, 0, 0, 1310751, 0, 0, 1310752, 1, 0, 1376256, 1, 0, 1376257, 0, 0, 1376258, 0, 0, 1376259, 0, 0, 1376260, 0, 0, 1376261, 0, 0, 1376262, 0, 0, 1376263, 1, 0, 1376264, 0, 0, 1376265, 0, 0, 1376266, 1, 0, 1376267, 0, 0, 1376268, 2, 65537, 1376269, 2, 65537, 1376270, 0, 0, 1376271, 0, 0, 1376272, 0, 0, 1376273, 0, 0, 1376274, 0, 2, 1376275, 0, 1, 1376276, 0, 0, 1376277, 0, 0, 1376278, 2, 65537, 1376279, 2, 65537, 1376280, 2, 65537, 1376281, 2, 65537, 1376282, 2, 65537, 1376283, 2, 65537, 1376284, 2, 65537, 1376285, 2, 65537, 1376286, 0, 0, 1376287, 0, 0, 1376288, 1, 0, 1441792, 1, 0, 1441793, 0, 0, 1441794, 0, 0, 1441795, 0, 0, 1441796, 0, 0, 1441797, 0, 2, 1441798, 0, 0, 1441799, 1, 0, 1441800, 0, 0, 1441801, 0, 0, 1441802, 1, 0, 1441803, 0, 0, 1441804, 0, 0, 1441805, 2, 65537, 1441806, 0, 0, 1441807, 0, 2, 1441808, 0, 0, 1441809, 0, 1, 1441810, 0, 0, 1441811, 0, 1, 1441812, 0, 0, 1441813, 2, 65537, 1441814, 2, 65537, 1441815, 0, 0, 1441816, 0, 0, 1441817, 2, 65537, 1441818, 0, 0, 1441819, 0, 0, 1441820, 2, 65537, 1441821, 0, 0, 1441822, 0, 0, 1441823, 0, 0, 1441824, 1, 0, 1507328, 1, 0, 1507329, 0, 0, 1507330, 0, 0, 1507331, 1, 0, 1507332, 0, 0, 1507333, 0, 2, 1507334, 0, 0, 1507335, 1, 0, 1507336, 0, 0, 1507337, 0, 0, 1507338, 1, 0, 1507339, 0, 0, 1507340, 0, 0, 1507341, 2, 65537, 1507342, 0, 0, 1507343, 0, 0, 1507344, 0, 0, 1507345, 0, 0, 1507346, 0, 0, 1507347, 0, 0, 1507348, 0, 0, 1507349, 2, 65536, 1507350, 2, 65538, 1507351, 0, 0, 1507352, 0, 0, 1507353, 2, 65537, 1507354, 0, 0, 1507355, 0, 0, 1507356, 2, 65537, 1507357, 0, 0, 1507358, 0, 2, 1507359, 0, 0, 1507360, 1, 0, 1572864, 1, 0, 1572865, 0, 0, 1572866, 0, 0, 1572867, 1, 0, 1572868, 0, 0, 1572869, 0, 2, 1572870, 0, 0, 1572871, 1, 0, 1572872, 0, 0, 1572873, 0, 0, 1572874, 1, 0, 1572875, 0, 0, 1572876, 0, 0, 1572877, 2, 65537, 1572878, 1, 0, 1572879, 1, 0, 1572880, 1, 0, 1572881, 1, 0, 1572882, 1, 0, 1572883, 0, 0, 1572884, 0, 0, 1572885, 2, 65536, 1572886, 2, 65538, 1572887, 0, 0, 1572888, 0, 0, 1572889, 2, 65537, 1572890, 0, 0, 1572891, 0, 0, 1572892, 2, 65537, 1572893, 0, 0, 1572894, 0, 0, 1572895, 0, 0, 1572896, 1, 0, 1638400, 1, 0, 1638401, 0, 0, 1638402, 0, 0, 1638403, 1, 0, 1638404, 0, 0, 1638405, 0, 0, 1638406, 0, 0, 1638407, 1, 0, 1638408, 0, 0, 1638409, 0, 0, 1638410, 1, 0, 1638411, 0, 0, 1638412, 0, 0, 1638413, 2, 65537, 1638414, 0, 0, 1638415, 1, 0, 1638416, 0, 0, 1638417, 0, 0, 1638418, 1, 0, 1638419, 0, 0, 1638420, 0, 0, 1638421, 2, 65536, 1638422, 2, 65538, 1638423, 0, 0, 1638424, 0, 0, 1638425, 0, 0, 1638426, 0, 0, 1638427, 0, 0, 1638428, 2, 65537, 1638429, 1, 0, 1638430, 0, 0, 1638431, 0, 0, 1638432, 1, 0, 1703936, 1, 0, 1703937, 0, 0, 1703938, 0, 0, 1703939, 1, 0, 1703940, 0, 0, 1703941, 0, 0, 1703942, 0, 0, 1703943, 1, 0, 1703944, 0, 0, 1703945, 0, 0, 1703946, 0, 0, 1703947, 0, 0, 1703948, 0, 0, 1703949, 0, 0, 1703950, 0, 0, 1703951, 1, 0, 1703952, 0, 0, 1703953, 0, 0, 1703954, 0, 0, 1703955, 0, 0, 1703956, 0, 0, 1703957, 2, 131072, 1703958, 2, 131074, 1703959, 0, 0, 1703960, 0, 0, 1703961, 0, 0, 1703962, 0, 0, 1703963, 0, 0, 1703964, 2, 65537, 1703965, 0, 0, 1703966, 0, 0, 1703967, 0, 0, 1703968, 1, 0, 1769472, 1, 0, 1769473, 0, 0, 1769474, 0, 0, 1769475, 1, 0, 1769476, 1, 0, 1769477, 0, 0, 1769478, 0, 0, 1769479, 1, 0, 1769480, 0, 0, 1769481, 0, 1, 1769482, 0, 0, 1769483, 0, 0, 1769484, 0, 0, 1769485, 0, 0, 1769486, 0, 0, 1769487, 1, 0, 1769488, 0, 0, 1769489, 0, 0, 1769490, 0, 0, 1769491, 0, 0, 1769492, 0, 0, 1769493, 0, 0, 1769494, 0, 0, 1769495, 0, 0, 1769496, 0, 0, 1769497, 1, 0, 1769498, 1, 0, 1769499, 1, 0, 1769500, 2, 65537, 1769501, 0, 0, 1769502, 0, 0, 1769503, 0, 0, 1769504, 1, 0, 1835008, 1, 0, 1835009, 0, 0, 1835010, 0, 0, 1835011, 0, 0, 1835012, 1, 0, 1835013, 0, 0, 1835014, 0, 0, 1835015, 0, 0, 1835016, 0, 0, 1835017, 0, 1, 1835018, 0, 0, 1835019, 1, 0, 1835020, 1, 0, 1835021, 0, 0, 1835022, 0, 0, 1835023, 1, 0, 1835024, 0, 0, 1835025, 0, 1, 1835026, 0, 0, 1835027, 1, 0, 1835028, 1, 0, 1835029, 1, 0, 1835030, 1, 0, 1835031, 0, 0, 1835032, 0, 0, 1835033, 1, 0, 1835034, 0, 0, 1835035, 0, 0, 1835036, 2, 65537, 1835037, 0, 0, 1835038, 0, 2, 1835039, 0, 0, 1835040, 1, 0, 1900544, 1, 0, 1900545, 0, 0, 1900546, 0, 2, 1900547, 0, 0, 1900548, 1, 0, 1900549, 1, 0, 1900550, 1, 0, 1900551, 1, 0, 1900552, 0, 0, 1900553, 0, 0, 1900554, 0, 0, 1900555, 0, 0, 1900556, 1, 0, 1900557, 0, 0, 1900558, 0, 0, 1900559, 1, 0, 1900560, 0, 0, 1900561, 0, 0, 1900562, 0, 0, 1900563, 0, 0, 1900564, 0, 0, 1900565, 0, 0, 1900566, 0, 0, 1900567, 0, 0, 1900568, 0, 0, 1900569, 1, 0, 1900570, 0, 0, 1900571, 0, 0, 1900572, 2, 65537, 1900573, 0, 0, 1900574, 0, 1, 1900575, 0, 0, 1900576, 1, 0, 1966080, 1, 0, 1966081, 0, 0, 1966082, 0, 0, 1966083, 0, 0, 1966084, 0, 0, 1966085, 0, 0, 1966086, 0, 0, 1966087, 0, 0, 1966088, 0, 0, 1966089, 0, 1, 1966090, 0, 2, 1966091, 0, 0, 1966092, 1, 0, 1966093, 0, 0, 1966094, 0, 0, 1966095, 0, 0, 1966096, 0, 0, 1966097, 0, 0, 1966098, 0, 0, 1966099, 0, 1, 1966100, 0, 1, 1966101, 0, 1, 1966102, 0, 2, 1966103, 0, 1, 1966104, 0, 0, 1966105, 1, 0, 1966106, 0, 0, 1966107, 0, 0, 1966108, 0, 0, 1966109, 0, 0, 1966110, 0, 0, 1966111, 0, 0, 1966112, 1, 0, 2031616, 1, 0, 2031617, 0, 0, 2031618, 0, 0, 2031619, 0, 0, 2031620, 0, 0, 2031621, 0, 0, 2031622, 0, 0, 2031623, 0, 0, 2031624, 0, 0, 2031625, 0, 0, 2031626, 0, 0, 2031627, 0, 0, 2031628, 0, 0, 2031629, 0, 0, 2031630, 0, 0, 2031631, 0, 0, 2031632, 0, 0, 2031633, 0, 0, 2031634, 0, 0, 2031635, 0, 0, 2031636, 0, 0, 2031637, 0, 0, 2031638, 0, 0, 2031639, 0, 0, 2031640, 0, 0, 2031641, 0, 0, 2031642, 0, 0, 2031643, 0, 0, 2031644, 0, 0, 2031645, 0, 0, 2031646, 0, 0, 2031647, 0, 0, 2031648, 1, 0, 2097152, 1, 0, 2097153, 1, 0, 2097154, 1, 0, 2097155, 1, 0, 2097156, 1, 0, 2097157, 1, 0, 2097158, 1, 0, 2097159, 1, 0, 2097160, 1, 0, 2097161, 1, 0, 2097162, 1, 0, 2097163, 1, 0, 2097164, 1, 0, 2097165, 1, 0, 2097166, 1, 0, 2097167, 1, 0, 2097168, 1, 0, 2097169, 1, 0, 2097170, 1, 0, 2097171, 1, 0, 2097172, 1, 0, 2097173, 1, 0, 2097174, 1, 0, 2097175, 1, 0, 2097176, 1, 0, 2097177, 1, 0, 2097178, 1, 0, 2097179, 1, 0, 2097180, 1, 0, 2097181, 1, 0, 2097182, 1, 0, 2097183, 1, 0, 2097184, 1, 0 ) [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] position = Vector2( -4, 4 ) stream = ExtResource( 7 ) autoplay = true -[node name="moss" parent="." instance=ExtResource( 6 )] -position = Vector2( 44, 44 ) - -[node name="moss2" parent="." instance=ExtResource( 6 )] -position = Vector2( 36, 20 ) - -[node name="ooze" parent="." instance=ExtResource( 9 )] -position = Vector2( 36, 44 ) - -[node name="malegoblin" parent="." instance=ExtResource( 4 )] -position = Vector2( 12, 52 ) - -[node name="femalegoblin" parent="." instance=ExtResource( 5 )] -position = Vector2( 28, 52 ) - [node name="Timer" type="Timer" parent="."] process_mode = 0 wait_time = 10.0 diff --git a/src/camera.gd b/src/camera.gd index f6d8dfd..6dd45e8 100644 --- a/src/camera.gd +++ b/src/camera.gd @@ -1,9 +1,9 @@ extends Camera2D # Lower cap for the `_zoom_level`. -export var min_zoom := 0.5 +export var min_zoom := 2 # Upper cap for the `_zoom_level`. -export var max_zoom := 2.0 +export var max_zoom := 8.0 # Controls how much we increase or decrease the `_zoom_level` on every turn of the scroll wheel. export var zoom_factor := 0.1 # Duration of the zoom's tween animation. diff --git a/src/spawn.gd b/src/spawn.gd index a207db7..c9b93d0 100644 --- a/src/spawn.gd +++ b/src/spawn.gd @@ -15,8 +15,12 @@ const MOVEMENT_VECTORS = [ ] func _on_Timer_timeout(): - var spawner = dirttiles[ randi() % dirttiles.size() ] - var mossspawner = coast[ randi() % coast.size() ] + var spawner = 0 + var mossspawner = 0 + if dirttiles.size() != 0: + spawner = dirttiles[ randi() % dirttiles.size() ] + if coast.size() != 0: + mossspawner = coast[ randi() % coast.size() ] var random = randi() % 100