ajhahn.de
← the-way-out commits

Commit

the-way-out

v0.2.5

ajhahnde · May 2026 · d4a81decd2eab0f4b7f90129106c20f82e399151 · parent: ae78528 · view on GitHub →

added VERSION
@@ -0,0 +1 @@
v0.2.5
modified menu.py
@@ -4,6 +4,7 @@ import level_catalog
import save
import audio
import theme
from version import VERSION
# Palette, font cache and the shared title / back-hint / hover
# primitives. Bound to module-private aliases to match the internal
# naming used by the screens below.
@@ -113,6 +114,11 @@ class MainMenu:
screen.blit(tip, tip.get_rect(
center=(self.width // 2, self.height - 58)))
if VERSION:
ver = theme.text_surface(self.small_font, VERSION, MUTED)
screen.blit(ver, ver.get_rect(
bottomleft=(16, self.height - 12)))
def handle_input(self, event):
if event.type == pygame.MOUSEBUTTONDOWN and event.button == 1:
mouse_pos = pygame.mouse.get_pos()
added version.py
@@ -0,0 +1,15 @@
"""Runtime version string. Reads VERSION (sibling text file) once on
import. Bump VERSION in the release commit; updater + bundled seed
both ship the file as-is, so this works in dev and the packaged .app."""
from pathlib import Path
def _read():
try:
return (Path(__file__).resolve().parent
/ "VERSION").read_text().strip()
except OSError:
return ""
VERSION = _read()