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:
Leonid Pershin
2026-08-11 10:18:30 +03:00
parent 709776116b
commit a81747781d
48 changed files with 979 additions and 4509 deletions
+3 -1
View File
@@ -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)