Refactor game scripts and update vault scene structure. Enhanced organization of game logic by separating data and rendering responsibilities across multiple scripts. Removed unused background assets and updated vault scene to include new game clock and weather system functionalities.
This commit is contained in:
@@ -10,6 +10,8 @@ const MIN_ZOOM := 0.45
|
||||
const MAX_ZOOM := 2.2
|
||||
const KEY_PAN_SPEED := 900.0
|
||||
const EDGE_MARGIN := 420.0
|
||||
## Сверху запас больше: там небо со светилами, и на него хочется смотреть.
|
||||
const SKY_MARGIN := 900.0
|
||||
|
||||
var _dragging := false
|
||||
|
||||
@@ -20,7 +22,7 @@ func _ready() -> void:
|
||||
limit_right = int(bounds.end.x + EDGE_MARGIN)
|
||||
# Сверху отмеряем от поверхности, а не от бункера: над землёй стоит будка
|
||||
# входа, и до неё нужно доезжать.
|
||||
limit_top = int(-EDGE_MARGIN)
|
||||
limit_top = int(-SKY_MARGIN)
|
||||
limit_bottom = int(bounds.end.y + EDGE_MARGIN)
|
||||
# Открываемся на верхних этажах — оттуда видно и вход, и застройку.
|
||||
position = Vector2(bounds.get_center().x, bounds.position.y + VaultGrid.CELL.y)
|
||||
|
||||
Reference in New Issue
Block a user