bigger map

This commit is contained in:
fram3d committed 2024-07-03 11:38:14 +02:00
1 parent 61a33c05c0
commit dbfff61052
3 files changed
+13 -26

No files matched your search

+5 -22
View File
@@ -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, 65Line truncated
[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
+2 -2
View File
@@ -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.
+6 -2
View File
@@ -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