ld-56/src/zone.gd
2024-10-07 13:07:46 -04:00

33 lines
917 B
GDScript

extends Window
var key
@onready var data = Data.data.zones[key]
@onready var image = Data.data.images[key]
@onready var sprite_2d: Sprite2D = $Sprite2D
const CREATURE = preload("res://src/Creature.tscn")
func _ready() -> void:
var window_size = get_tree().root.get_window().size
get_window().position = Vector2i(randi_range(250, window_size.x - 250 - 200), randi_range(250, window_size.y - 250 - 200)) + DisplayServer.screen_get_position(0)
title = data.name
sprite_2d.texture = image
sprite_2d.position = Vector2(int(data.size[0]) * 12 / 2, int(data.size[1]) * 12 / 2)
#
#New Zones
#
#- Get More Customers
#- Creatures drop resources more often
#- Resources randomly spawn more often
#- More wild creatures spawn
#- Closing time is 10 minutes later
#- More chance for creatures to drop a large amount at once
#- Customers are willing to pay more
#- Less chance of thieves
#- Chance for rich customer