Skip to content

v0.6.0

Choose a tag to compare

@khasinski khasinski released this 23 Mar 22:08
· 150 commits to main since this release

What's New in v0.6.0

Monster AI

  • Monsters chase the player using DOOM's 8-direction P_NewChaseDir algorithm
  • Line-of-sight activation (768 unit range, 180-degree forward arc)
  • Correct per-monster movement speeds (zombieman 8, demon 10, etc.)
  • Walking animation with correct sprite rotation
  • Wall collision and pathfinding around obstacles

Combat Improvements

  • Rocket launcher with visible projectiles and splash damage
  • Hitscan weapons (pistol, shotgun, chaingun) with wall-blocked ray tracing
  • Monster death animations with correct frame sequences
  • Sprite rotation fix (+PI offset matching DOOM's R_ProjectSprite)

Performance

  • Uncapped framerate (removed Gosu's 60 FPS cap)
  • FPS counter in debug overlay (Z key)
  • YJIT live toggle (Y key) -- enable/disable YJIT mid-game to see the difference
  • Start with --no-yjit for interpreter mode, press Y to enable

Benchmarks (Apple Silicon)

Runtime FPS Speedup
Ruby 3.3 interpreter 31.8 1.0x
Ruby 4.0 ZJIT 34.7 1.1x
Ruby 4.1dev ZJIT 41.1 1.3x
Ruby 4.0 YJIT 79.3 2.5x
TruffleRuby 33 (headless) 152.0 4.8x

Other

  • Environmental hazards (nukage/lava damage)
  • Damage flash using DOOM's PLAYPAL pain palettes
  • Player death with red tint and respawn
  • Fullscreen mode (--fullscreen or -f)
  • Solid thing collision (barrels, pillars, monsters)
  • Item pickup system (weapons, ammo, health, armor, keys)
  • Complete HUD with weapon selector and ammo counts

Acknowledgements

  • Thanks to @havenwood for the YJIT disable/re-enable Fiddle technique that powers the live toggle