bigger map

This commit is contained in:
fram3d 2024-07-03 11:38:14 +02:00
parent 61a33c05c0
commit dbfff61052
Signed by: fram3d
GPG Key ID: 938920E709EEA32A
3 changed files with 13 additions and 26 deletions

File diff suppressed because one or more lines are too long

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.

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