Repository navigation
HardDaysEngine v0.7.0
HardDaysEngine v0.7.0 introduces opt-in External HD Asset Packs and an OpenGL 3.3 GPU HD Compositor across all playable gameplay scenes, a ready-to-paint --hd-template exporter with authentic mog palettes and automatic recolor masks, live Classic ↔ HD (F7) switching, and artist QA tooling in both the Asset Inspector and visual audit harness. Classic Amiga presentation remains the default, and the deterministic 50 Hz simulation and replay hashes are completely unchanged.
What's New
External HD Asset Packs & Validator (ADR-071, docs/ARCHITECTURE.md §14)
- Added a headless HD pack loader (
harddaysengine.assets.HdPack) supporting 2×–8× external PNG packs organized under canonical lowercase keys (pictures/<name>.png,arenas/<name>.png,cels/<name>/frame_NNN.png) with strictpack.tomland per-assetmeta.tomlschemas. - Supports three asset color modes plus automatic 1× Amiga fallback for partial packs:
indexed: 8-bit paletted (0..31) HD art resolved through the live 50 Hz Amiga palette.rgba: true-color RGBA HD art with optional per-knight (__blue,__yellow,__green,__red,__black) and per-region (__glen,__forest,__swamp,__wasteland) variant overrides, plus smooth GPU fade and hit/lightning flash tinting.masked: true-color RGBA paired with an 8-bit.mask.png(0..31) for luminance-preserving GPU recoloring so one painted sprite or background adapts seamlessly to all player classes, combat regions, and live overworld water cycling.
- Supports explicit sprite bleed
padding,anchor_offset(mirrored symmetrically when facing left), and animatedcycle_framessequences (such as animated overworld maps). - Added
harddaysengine --validate-hd-pack <DIR>to validate manifests, dimensions, color modes, mask bounds, and optional real-disk cross-checks (exit0on valid packs,1with actionable diagnostics).
Ready-to-Paint HD Template Exporter (harddaysengine-extract --hd-template)
- Added
--hd-templatetoharddaysengine-extractto export a deterministic 1× HD pack scaffold directly from the user's own.adfdisks intobuild/(with starterpack.tomland#-commentedmeta.tomlreference metadata including originalwidth,height,hot_x,hurt_tight_box, andcollide.hitattack points). - Uses authentic runtime palettes decoded from
mogandprogramfor every cel and arena. - Automatically generates 8-bit
.mask.pngrecolor masks for combat knights (kn*.obslots6..8,he*.obslots6..11), non-combat class-recolored knight cels (ki.cel,dice.celthrower frames,hen1.c,wi1.c), all.tcombat arenas (region palette slots1..4,16..28), and the overworld map (pictures/test_8.mask.pngwater-cycling and highlight indices).
OpenGL 3.3 GPU HD Compositor & Full Gameplay Scene Coverage
- Added
HdCompositor(harddaysengine.render.HdCompositor) with 6 GLSL 330 core shaders, bounded LRU GPU texture caching (256textures /256 MiBdefault),nearestor edge-directedsmooth1× fallback filtering, and retained GPU background stamping (hd_bg_fbo→hd_fight_fbo) preserving exact 2.5D painter's order, screen shake, and permanent corpses/blood without double-blending. - Wired HD compositing across all playable gameplay scenes:
- Real-time combat arenas (all nine creatures, duels, Practice, Valley Guardian, Dragon intercepts) with un-recolored template
base_paletteseparated from steadyfade_referencefor exact Classic brightness across all 5 knight colors and 4 regions. - Overworld map (
test_8masked GPU water cycling orcycle_framessequences, orderedmi.csprites, flying map dragon, and node menu). - Towns (
HighWood.PIV,WaterDeep.PIV, welcome prologues, hardware pointer), shared sheets (ki.cel,po.cel), healer/mystic services, Tavern dice house, Stonehenge ritual, Wizard's tower, Valley of the Gods, knight meetings, Next Day, Game Over, and main menu / knight select. - Multi-buffer
programintro (TITLE) andENDINGcinematics fall back cleanly to Classic mode.
- Real-time combat arenas (all nine creatures, duels, Practice, Valley Guardian, Dragon intercepts) with un-recolored template
- Integrated HD presentation with
faithful,scanlines,crt(with scanline beam rows locked to logical source height),surround(off,blur,solid),crop, andaspectmodes (smoothandscalefxautomatically bypass tofaithfulwhen an HD pack is active).
Live Toggling, Configuration & Artist QA Tooling
- Configure HD packs via
--hd-pack <DIR>/--hd-mode off|auto|on,HARDDAYSENGINE_HD_PACK_DIR, or[display] hd_pack_dir/hd_modeinconfig.toml(CLI > env > config). - Press
F7at any time during gameplay or in the inspector to toggle Classic ↔ HD instantaneously without resetting combat stamps or affecting replay recordings (also available as an HD mode row in theF10live display preview). - Extended
harddaysengine-inspect/--inspect-assetswith--hd-pack,--hd-mode, liveF7toggling, headless HD PNG--screenshot, and scaledcollide.hithurtbox/hitbox wireframes drawn directly over the HD canvas for artist alignment QA. - Extended
scripts/audit_shots.pywith--hd-pack <DIR>and--hitboxesto generate side-by-side Classic | HD comparison contact sheets underbuild/audit/. - Verified full 1,952-tick real-disk campaign replay hash invariance across Classic, 2× HD, and live mid-campaign
F7toggles with zero leaked GPU textures.
Development & CI Improvements (ADR-072)
- Parallelized
scripts/quality_gate.pyusing concurrent static checks (ThreadPoolExecutor),pytest-xdist(-n auto --dist worksteal), and Python 3.12sysmoncoverage, cutting full local quality-gate runtime by ~5× without weakening any check.
Downloads & Installation
- Windows Portable (recommended on Windows): Download
HardDaysEngine-Windows-x64.zip(orHardDaysEngine-Windows-x86.zipfor 32-bit Windows), extract it, copy your three original Moonstone.adfdisk images into thedisks/folder, and runHardDaysEngine.exe. - Python / PyPI (Python 3.12+, OpenGL 3.3):
python -m pip install --upgrade harddaysengine==0.7.0
Full Changelog: v0.6.1...v0.7.0
HardDaysEngine includes no game data. You must supply your own three original Amiga .adf disk images of Moonstone: A Hard Days Knight (1991).