ATARI 800 XL / 65 XE • 64 KB RAM • MOS 6502 @ 1.77 MHz (PAL) •
WERSJA: 0.5.1 GITHUB ↗

OŚ CZASU ROZWOJU (DEVELOPMENT TIMELINE)

Kronika inżynieryjna, kamienie milowe oraz techniczne zmiany w architekturze silnika gry (SSOT: HISTORY.md)

WPISÓW: 13
⌛ INŻYNIERIA OPROGRAMOWANIA NA 8-BITOWYM KRZEMIE

Projekt "Dziki Zgon" rozwija się w reżimie rygorystycznej dyscypliny inżynieryjnej: każdy moduł 6502 testowany jest w symulacji py65, zużycie pamięci weryfikowane jest przed i po asemblacji, a konwencjonalne commity (Conventional Commits) automatycznie determinują wersjonowanie SemVer.

Remove Unused ASAP and rmt2atasm Step from Release Workflow
DATA: 2026-11-08
KAMIENIE MILOWE #13
  • › Removed obsolete `Install ASAP and rmt2atasm` step from [.github/workflows/release.yml](.github/workflows/release.yml) that failed on `HTTP 504` when downloading `rmt2atasm.exe` from GitHub Releases.
  • › Removed unused `ASAPCONV` and `RMT2ATASM` variables from [Makefile](Makefile).
Ignore Generated Portal Data in Git & Harden CI Dependency Downloads
DATA: 2026-11-08
KAMIENIE MILOWE #12
  • › Added generated portal directories (`website/src/data/`, `website/public/download/`, `reports/portal/`) to [.gitignore](.gitignore) and untracked generated JSON files from Git.
  • › Updated `PortalDataPipeline._save_json` in [scripts/export_portal_data.py](scripts/export_portal_data.py) to mirror JSON files into `website/src/data/` (creating the directory if needed) only when exporting to the canonical `reports/portal/` directory rather than temporary test directories (`tmp_path`).
  • › Updated [tests/test_memory_integrity.py](tests/test_memory_integrity.py) to generate `memory.json` into `tmp_path` so unit tests pass on a clean clone without pre-existing untracked files in `reports/portal/`.
  • › Switched `atari-image-converter` (updated to `v0.7.0`) and `atari-music` (`v0.8.0`) in [requirements.txt](requirements.txt) to install via `git+https://` tag refs instead of GitHub Release binary URLs, avoiding `HTTP 504 Gateway Time-out` errors on `github.com/.../releases/download`.
  • › Added retry loops (`pip install --retries 5 --timeout 30`) and `curl --retry 5 --retry-all-errors --retry-delay 3` across [.github/workflows/release.yml](.github/workflows/release.yml) and [.github/workflows/portal-deploy.yml](.github/workflows/portal-deploy.yml).
Update README to Reflect Current Project State
DATA: 2026-11-08
KAMIENIE MILOWE #11
  • › Updated [README.md](README.md): ANTIC modes (E title, 2 text/status, 5 gameplay map), PMG hero/enemy layout, Zero Page range `$80–$D4`, memory validation note.
  • › Refreshed project tree: all `engine/` and `lib/` modules, `audio/` (title DSL, travel theme), `chars/`, `fonts/*.fnt`, `texts/`, `scripts/`, `website/`, `reports/`, `docs/`, `.github/workflows/`.
  • › Updated requirements table (Python 3.12+, Make, NumPy, pytest, `atari-music`, `atari-image-converter`, Node.js 22 for portal) and Windows setup (removed unused rmt2atasm / asapconv steps).
  • › Documented all Makefile targets (`texts`, `fonts`, `xex`, `test`, `check_memory`, `memory_map`, `smoke-test`, `portal_data`), portal build steps, and CI workflows.
Decouple Memory Integrity Unit Test from Volatile Binary Hash in Release Pipeline
DATA: 2026-11-03
KAMIENIE MILOWE #10
  • › Resolved failure in [.github/workflows/release.yml](.github/workflows/release.yml) during automated version bump: `release_helper.py --update-title` modified `texts/title.txt`, altering the SHA256 of newly built `dziki_zgon.xex`.
  • › Decoupled [tests/test_memory_integrity.py](tests/test_memory_integrity.py) from volatile on-disk binary hash during generic test runs (`pytest tests/`), focusing the unit test on architectural invariants, non-overlapping segments, Zero Page SSOT adherence, and internal JSON provenance consistency.
  • › Updated [scripts/verify_memory_integrity.py](scripts/verify_memory_integrity.py) with `require_binary_match` parameter and internal provenance validation (`binary.sha256 == binary_provenance.binary_sha256`).
  • › Preserved strict binary hash verification in [scripts/verify_memory_integrity.py](scripts/verify_memory_integrity.py) CLI when called as part of `make portal_data` and [.github/workflows/portal-deploy.yml](.github/workflows/portal-deploy.yml).
  • › Verified `make all` (191 tests, MADS assembly, memory validation), `make portal_data`, and `npm run build` all pass with exit code 0.
Implement Static Official Game Portal & Memory Provenance Pipeline
DATA: 2026-11-03
KAMIENIE MILOWE #9
  • › Created build-time Python data exporter in [scripts/export_portal_data.py](scripts/export_portal_data.py) extracting verified data from single-source-of-truth files into [reports/portal/](reports/portal/) (`game.json`, `world.json`, `objects.json`, `sprites.json`, `assets.json`, `music.json`, `memory.json`, `releases.json`, `latest.json`).
  • › Added rigorous memory integrity validation in [scripts/verify_memory_integrity.py](scripts/verify_memory_integrity.py) and [tests/test_memory_integrity.py](tests/test_memory_integrity.py): asserts non-overlapping runtime segments, disjoint free gaps, exact 48 KB user RAM arithmetic ($0000–$BFFF = 49,152 B), Zero Page SSOT match against [zeropage.asm](zeropage.asm), and binary SHA256 provenance tracking.
  • › Clearly partitioned free headroom into Safe Usable Free Space (1,426 B) and Reserved Alignment Buffers (172 B), classifying sub-32B gaps and hardware page padding as unverified/reserved.
  • › Added `portal_data` phony target to [Makefile](Makefile) to regenerate and validate all reports and memory integrity without altering existing build steps.
  • › Created static Astro & Tailwind CSS portal in [website/](website/) with base URL `/dziki-zgon/`, crisp pixel art rendering (`image-rendering: pixelated`), and toggleable CRT scanlines.
  • › Implemented 10 content pages: Homepage (`/`), Game Story & Controls (`/game/`), World Explorer with 40x12 screen maps and exits (`/world/`), Objects Catalogue (`/objects/`), Graphics & Sprites Gallery (`/gallery/`), POKEY Music Catalogue (`/music/`), 64 KB Memory Map & Zero Page (`/memory/`), Engine Architecture (`/technical/`), Releases & Downloads (`/releases/`), and Development Timeline (`/history/`).
  • › Configured independent GitHub Actions deployment workflow in [.github/workflows/portal-deploy.yml](.github/workflows/portal-deploy.yml): builds `dziki_zgon.xex` from current source on `push`, `workflow_dispatch`, and PR validation via MADS Linux x86_64, uses published release assets on `release`, and preserves [.github/workflows/release.yml](.github/workflows/release.yml).
  • › All 191 unit and integration tests pass cleanly with exit code 0.
Add Rapid Damage Flicker for Dual-Player Hero (P0 + P1)
DATA: 2026-11-03
KAMIENIE MILOWE #8
  • › Enhanced damage flash in [engine/render.asm](engine/render.asm) to rapidly flicker between `HERO_COLOR_DAMAGE` ($34) and standard hero colors (`HERO_COLOR_0` / `HERO_COLOR_1`) during active collisions.
  • › Used `FrameCounter & #$02` to alternate colors every 2 frames (12.5 Hz on 50 Hz PAL), producing a distinct retro damage flicker across both `Player 0` and `Player 1`.
Switch Title Screen Music to Music DSL Format
DATA: 2026-11-02
KAMIENIE MILOWE #7
  • › Configured title screen audio to use [audio/dziki-zgon-title.dsl](audio/dziki-zgon-title.dsl) as the source of truth for the title theme ("Vaults of Nhyrmeth", 90 BPM, D minor, 16-bit bass).
  • › Updated [scripts/compile_music.py](scripts/compile_music.py) to support both `.dsl` and `.json` files via `atari_music.ai.dsl.parse_music_dsl`.
  • › Updated [Makefile](Makefile) `MUSIC_TITLE_DSL` and target dependency to build `gen/music_title.asm` from [audio/dziki-zgon-title.dsl](audio/dziki-zgon-title.dsl).
  • › Updated [requirements.txt](requirements.txt) to `atari-music` v0.8.0.
  • › Regenerated memory map and validated memory layout in [MEMORY_USAGE.md](MEMORY_USAGE.md). All 189 unit/integration tests and smoke test passed.
Decouple Footstep SFX Cadence from Animation Speed
DATA: 2026-11-01
KAMIENIE MILOWE #6
  • › Introduced `HERO_STEP_SFX_INTERVAL = 6` in [hardware.asm](hardware.asm) to maintain standard footstep audio frequency (every 6 frames) independently of the hero's visual sprite animation speed.
  • › Added `player_step_timer` in [engine/player.asm](engine/player.asm) to track footstep intervals, decoupling `Request_SFX_Step` from `ACTOR_ANIM_FRAME` increments.
  • › Reset `player_step_timer` to 0 on direction change (`set_player_dir`), when stationary (`@move`), and during stage init in [scenes/game/game.asm](scenes/game/game.asm).
  • › Updated mock equates in [tests/actor_test.asm](tests/actor_test.asm) and [tests/real_collision_test.asm](tests/real_collision_test.asm).
  • › Added `test_player_step_sfx_independent_cadence` to [tests/test_actor_system.py](tests/test_actor_system.py) verifying 6-frame audio cadence during 4-frame sprite animation.
Increase Hero Left/Right Animation Speed by ~50%
DATA: 2026-11-01
KAMIENIE MILOWE #5
  • › Added equates HERO_ANIM_SPEED_HORIZ = 4 (~50% faster, 4 frames/step) and HERO_ANIM_SPEED_VERT = 6 (standard, 6 frames/step) in [hardware.asm](hardware.asm).
  • › Updated set_player_dir in [engine/player.asm](engine/player.asm) to dynamically set ACTOR_ANIM_SPEED,x to HERO_ANIM_SPEED_HORIZ for horizontal directions (RIGHT, LEFT) and HERO_ANIM_SPEED_VERT for vertical directions (UP, DOWN).
  • › Updated animation step condition in [engine/player.asm](engine/player.asm) to cmp ACTOR_ANIM_SPEED,x; bcc @done for robust threshold comparison on speed changes.
  • › Set initial hero speed in [scenes/game/game.asm](scenes/game/game.asm) to HERO_ANIM_SPEED_HORIZ matching initial facing direction (RIGHT).
  • › Added HERO_ANIM_SPEED_HORIZ and HERO_ANIM_SPEED_VERT mock equates to [tests/actor_test.asm](tests/actor_test.asm) and [tests/real_collision_test.asm](tests/real_collision_test.asm).
Implement 4-Color Hero (P0+P1) and 5th-Player Enemies (P2, P3, M0-M3)
DATA: 2026-11-01
KAMIENIE MILOWE #4
  • › Migrated Gerwalt hero sprite to 4-color mode defined in [sprites/gerwalt-color.sprite.json](sprites/gerwalt-color.sprite.json) with Color 1 `$F4` (`PCOLR0`), Color 2 `$18` (`PCOLR1`), and hardware GTIA OR-color mix `$FC`.
  • › Updated [scripts/sprite2asm.py](scripts/sprite2asm.py) with label fallback to `description` when `id` is numeric, generating `{sid}_P0_PTRS`, `{sid}_P1_PTRS`, and backward-compatible alias `{sid}_PTRS`.
  • › Updated [hardware.asm](hardware.asm) with `PRIOR_HERO_4C_5TH = $31` (enabling GTIA bit 5 color OR-mix, bit 4 fifth-player mode, and bit 0 PMG priority over playfield), alongside hero color equates `HERO_COLOR_0 = $F4`, `HERO_COLOR_1 = $18`, `HERO_COLOR_MIX = $FC`, and `HERO_COLOR_DAMAGE = $34`.
  • › Updated [engine/engine_frame.asm](engine/engine_frame.asm) to copy `GPRIOR` to `PRIOR` at VBLANK every frame, preserving the 4-color overlap and 5th-player modes across mid-frame DLI changes.
  • › Redesigned PMG rendering engine in [engine/render.asm](engine/render.asm):
  • › Actor 0 (Hero): Renders Layer 0 to `PLAYER0` ($A400) and Layer 1 to `PLAYER1` ($A500) simultaneously with damage flash on `PCOLR0`.
  • › Actors 1 & 2 (Enemies 1 & 2): Unified into an indexed loop rendering to `PLAYER2` ($A600) and `PLAYER3` ($A700) with independent colors `PCOLR2` and `PCOLR3`.
  • › Actor 3 (Enemy 3): Rendered as the 5th player using all 4 missiles in `MISSILES` ($A300) with positions `HPOSM3..0` spaced by 2 color clocks to form a seamless 8px sprite inheriting `COLPF3`.
  • › Updated [scenes/game/game.asm](scenes/game/game.asm): configured `SIZEM = $00` (normal 1x missile width), initialized `PRIOR_HERO_4C_5TH`, removed obsolete `init_game_missiles`, hid missiles in `game_dli` status bar interrupt (`HPOSM0..3 = 0`), and updated `update_stage_colors` and `get_collision_damage` to maintain hero colors.
  • › Relocated [lib/text_headers.asm](lib/text_headers.asm) to `$9D20` in [main.asm](main.asm), freeing 220 bytes in the lower code arena to resolve XEX segment bounds and ensure 179 bytes of headroom before the Display List at `$3E80`.
  • › Updated test harnesses [tests/actor_test.asm](tests/actor_test.asm) and [engine/world.asm](engine/world.asm) to support multi-player equates and pointer tables; all 188 unit and integration tests pass.
Add Memory Checker and Vector Memory Map Generator
DATA: 2026-11-01
KAMIENIE MILOWE #3
  • › Modernized [scripts/check_memory.py](scripts/check_memory.py) to parse Atari XEX DOS 2 binaries directly, validate hardware constraints ($BFFF OS ROM boundary, $D000-$DFFF hardware registers, non-overlapping segments with INITAD support, 1 KB Display List crossings), verify runtime arena isolation, and automatically update [MEMORY_USAGE.md](MEMORY_USAGE.md).
  • › Created [scripts/generate_memory_map.py](scripts/generate_memory_map.py) providing terminal memory reports, detailed Zero Page allocations, top free memory headroom regions, and vector PDF diagrams (`memory_map.pdf`).
  • › Updated [tests/test_memory_map.py](tests/test_memory_map.py) with unit and integration tests covering binary segment parsing, overlap validation, Display List boundary checks, memory map continuity, and PDF generation.
  • › Added `check_memory`, `memory_map`, and `map` targets to [Makefile](Makefile), running automated memory validation on every build.
Add 2-Color and 4-Color Auto-Detection and Thresholding to Image Import
DATA: 2026-11-01
KAMIENIE MILOWE #2
  • › Added `detect_image_color_mode` in [sprite_studio/image_import.py](sprite_studio/image_import.py) to automatically recognize whether an image is indexed 2-color or indexed 4-color based on palette entries and unique colors.
  • › Implemented `convert_frame_to_pixels` in [sprite_studio/image_import.py](sprite_studio/image_import.py) supporting direct pixel-perfect palette extraction for indexed images, and multi-level thresholding (distributing luminance across 4 color levels `0`..`3`) in 4-color mode alongside classic 2-color binarization.
  • › Extended [sprite_studio/widgets/import_dialog.py](sprite_studio/widgets/import_dialog.py) with automatic format detection display, `Color Mode` selector (2-color vs 4-color), 4-color thresholding sensitivity, and multi-color frame canvas preview.
  • › Updated [sprite_studio/main.py](sprite_studio/main.py) to pass target sprite color context to import dialog and auto-upgrade sprites to 4-color mode when importing 4-color frames.
  • › Added comprehensive unit tests in [tests/test_image_import_4color.py](tests/test_image_import_4color.py).
Add 4-Color PMG Sprite Support to Sprite Studio
DATA: 2026-11-01
KAMIENIE MILOWE #1
  • › Created [sprite_studio/palette.py](sprite_studio/palette.py) with standard 256 Atari GTIA color palette lookup (`get_atari_rgb`), GTIA hardware OR-color mixing simulation (`mix_atari_colors`), and interactive `AtariColorDialog` picker.
  • › Extended [sprite_studio/models.py](sprite_studio/models.py) with `color_mode` (2 or 4), `color2` (Layer 1 color), helper methods `is_4color()`, `get_layer_pixels(idx, layer)`, and static method `combine_layer_frames(p0, p1)`.
  • › Updated [sprite_studio/validation.py](sprite_studio/validation.py) to validate `color_mode` (2 or 4), `color2` (0..255), frame pixel characters (`'0'..'3'` in 4-color mode, `'0'..'1'` in 2-color mode), and alphanumeric string or integer IDs.
  • › Updated [sprite_studio/io.py](sprite_studio/io.py) to serialize and deserialize `color_mode` and `color2`, with auto-detection for multi-color pixel data and full backward compatibility for existing 2-color sprite files.
  • › Extended [sprite_studio/widgets/pixel_editor.py](sprite_studio/widgets/pixel_editor.py) with `PaletteBar` (color swatches for pens 0..3 with Atari RGB colors), 4-color canvas rendering, numeric key shortcuts (`0`, `1`, `2`, `3`), and Layer View filtering (`Combined`, `Layer P0`, `Layer P1`).
  • › Updated [sprite_studio/widgets/preview.py](sprite_studio/widgets/preview.py) to animate and render all 4 colors (transparent, color1, color2, overlap mix).
  • › Updated [sprite_studio/widgets/properties.py](sprite_studio/widgets/properties.py) with a Color Mode selector, Atari color pickers for Color 1 and Color 2, and real-time computed overlap mix preview.
  • › Updated [sprite_studio/widgets/sprite_list.py](sprite_studio/widgets/sprite_list.py) to display `[4C]` or `[2C]` indicators next to sprite IDs.
  • › Added Tools menu in [sprite_studio/main.py](sprite_studio/main.py) with "Combine Two Sprites into 4-Color Sprite..." dialog and "Split 4-Color Sprite into Two 2-Color Sprites" actions, complete with Undo/Redo integration.
  • › Updated [scripts/sprite2asm.py](scripts/sprite2asm.py) to generate dual-layer PMG bitplanes (`{id}_P0_FRAME_{n}`, `{id}_P1_FRAME_{n}`, `{id}_P0_PTRS`, `{id}_P1_PTRS`, `_IS_4COLOR = 1`, `_COLOR0`, `_COLOR1`, `_COLOR_MIX`) for 4-color sprites, while keeping 2-color output intact.
  • › Updated [scripts/png2sprite.py](scripts/png2sprite.py) to support `--colors 4` and `--color2` arguments for converting 4-color PNGs.
  • › Updated specification [.sdd/sprite-studio.md](.sdd/sprite-studio.md) to version 2.0 and documentation [SPRITES.md](SPRITES.md).
  • › Added test suites in [tests/test_sprite_studio_models.py](tests/test_sprite_studio_models.py), [tests/test_sprite_studio_validation_io.py](tests/test_sprite_studio_validation_io.py), and [tests/test_sprite2asm_4color.py](tests/test_sprite2asm_4color.py).