bigger map
This commit is contained in:
parent
61a33c05c0
commit
dbfff61052
File diff suppressed because one or more lines are too long
@ -1,9 +1,9 @@
|
|||||||
extends Camera2D
|
extends Camera2D
|
||||||
|
|
||||||
# Lower cap for the `_zoom_level`.
|
# Lower cap for the `_zoom_level`.
|
||||||
export var min_zoom := 0.5
|
export var min_zoom := 2
|
||||||
# Upper cap for the `_zoom_level`.
|
# 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.
|
# Controls how much we increase or decrease the `_zoom_level` on every turn of the scroll wheel.
|
||||||
export var zoom_factor := 0.1
|
export var zoom_factor := 0.1
|
||||||
# Duration of the zoom's tween animation.
|
# Duration of the zoom's tween animation.
|
||||||
|
@ -15,8 +15,12 @@ const MOVEMENT_VECTORS = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
func _on_Timer_timeout():
|
func _on_Timer_timeout():
|
||||||
var spawner = dirttiles[ randi() % dirttiles.size() ]
|
var spawner = 0
|
||||||
var mossspawner = coast[ randi() % coast.size() ]
|
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
|
var random = randi() % 100
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user