Skip to content

v0.2.0 — Linux and macOS

Latest

Choose a tag to compare

@sp00nznet sp00nznet released this 22 Oct 09:30
· 2 commits to main since this release

Added

  • Linux and macOS: a native build with SDL2 for the window, sound, keys,
    mouse and pad (host.c), and setup.sh, the same five steps as
    Setup.cmd. On Linux, conformance is 22/22 and 17/17, as on Windows, and
    a from-scratch setup.sh run (toolkit fetched, games lifted and built)
    takes about two minutes. Game files may be any case. macOS builds in CI but
    has not been run on a Mac.
  • An installer for Windows, Linux and macOS (recomp-launcher), attached to
    each release: point it at either game and it builds both from your copy.
  • CI builds and runs the selftest on Windows, Linux and macOS.
  • A longer conformance mission (Aliens of Gold): kill the first two guards,
    pick up the gun one drops, open the elevator and press its switch, which
    brings up the floor panel. It is steered by --route, a test autopilot that
    walks the player to waypoints by reading where it is each frame. AOG is now
    22/22. Development aids for writing routes: BSTONE_POS (position log and
    DGROUP dump), BSTONE_WARP, and BSTONE_CALLS (trace builds: the functions
    a key press reaches).
  • Widescreen: --widescreen 16:9 (default in a window; 21:9, off) widens
    the hi-res 3D view past the screen's edges. The extra rays and sprites come
    from the game's own WallRefresh and DrawScaleds, run again turned left and
    right with all memory, VGA state and time put back. The HUD stays 4:3 in the
    middle. F10 now cycles widescreen, original and hi-res 4:3. Conformance gains
    two checks, including a pixel-identical 4:3 middle: 18/18 and 17/17.
  • Hi-res sprites: actors, objects and the weapon are redrawn at the output
    resolution from their own posts and shading, fitted from the per-column
    routine the game already calls, and occluded by the hi-res walls.
  • The remaster: a hi-res 3D view (--hires N, default 4 in a window, F10
    toggles). Walls, floor and ceiling are redrawn at N x 320x200 from the games'
    own textures and lighting; the original raycaster and span drawer still run
    and are asked what each column and row shows, and the frame is composited by
    who drew each pixel, so sprites, HUD and logic are untouched. Everything it
    needs is found in each game's code at lift time (find_renderer). 1.4 ms a
    frame at 4x. Conformance gains two checks: 16/16 and 15/15.
  • Saving and loading are checked by the conformance harness: a mission saved
    from the in-game menu, then loaded in a fresh process. 14/14 and 13/13.
  • Gamepad: an XInput pad drives the games through the keys they already use
    (no in-game joystick calibration). Untested with real hardware.
  • --realtime, to put a headless run back on the wall clock.
  • Display modes, cycled with F11 or chosen with --display: sharp (4:3,
    as before), pixel (whole multiples, square pixels) and crt (4:3 with
    scanlines, each source row bright in the middle and dimmed at its edges).

Changed

  • Headless runs use deterministic time: each interrupt poll advances 300 µs,
    and DOS reports a fixed date. Runs are reproducible frame for frame and about
    13x faster than real time; the harness went from ~15 minutes to ~1. Before
    this, the menu scripts raced Planet Strike's title fade and failed at random.
  • The windowed build has now run (on an offstage virtual monitor): 4:3 window,
    real time, intro through gameplay.
  • Setup and CI pin pcrecomp to commit fc852e3 (its main with #35–#39
    merged) instead of the work/blakestone-integration branch. Lifting against
    it reproduces the same C byte for byte; conformance still 12/12 and 11/11.

Fixed

  • Hi-res sprites: the weapon vanished next to walls (it was tested against
    them, which the game never does), and sprites drawn into a page above 16 KB
    landed at the wrong x (a 16-bit overflow).

Download

Grab the installer for your system below (Windows, Linux, macOS). Point it at your copy of either game: it fetches the source and toolkit, builds both games from your own files, and gives you a Play button for each. Nothing from the games is in the download.