(wip) settings menu almost works, just need to attach it to the button...

This commit is contained in:
2026-03-07 14:34:24 +01:00
parent 3c7e1a612d
commit a59255d9d6
3 changed files with 32 additions and 12 deletions

View File

@@ -16,6 +16,7 @@ var eps: float = 1e-4
var foodManager: FoodManager2D
# A world "current"
# TODO: This should be moved to a different "game manager" specific to the molecular stage
# polar
var flow_dir: float # [0, 2pi)
var flow_mag: float # [0, 1]
@@ -111,3 +112,9 @@ func calc_distance(one, two) -> float:
onedup.x += screen_size.x
candidate = min(candidate, onedup.distance_to(two))
return candidate
func change_window_size(width: int, height: int) -> void:
# Do NOT remove this Godot, ffs!!!
var newSize = Vector2i(width, height)