Skip to content

Releases

v0.0.3: OpenSosaria SMS: Reduce the flicker when moving.

Choose a tag to compare

@haroldo-ok haroldo-ok released this 11 Oct 10:18

Full Changelog: v0.0.2...v0.0.3

🛠️ What’s Fixed in Version 0.0.3

This update completely eliminates the map flickering and sideways jumping that occurred whenever your character moved or took a turn on the overworld map!


🐛 The Flicker Bug & Fix Breakdown

The Cause

To keep the bottom status/console panel stationary while the map scrolls, a line interrupt at scanline 159 sets the horizontal scroll to 0. Previously, resetting the scroll back for the top map area was handled solely by the main game loop.

When processing complex steps—such as monster turns or formatting console text—the game logic occasionally exceeded a single hardware frame. During those delayed frames, the video hardware rendered the top map with horizontal scroll 0, resulting in a jarring sideways screen jump on almost every step.

The Fix

  • Interrupt-Driven Scroll Restoration: The VBlank interrupt routine (src/main.c and src/overworld.c) now automatically restores the map's horizontal scroll offset every single frame, regardless of how long the main loop spends processing game logic or combat.
  • Vertical Stability Preserved: Vertical scrolling remains perfectly stable during VBlank updates without mid-frame splits.

🧪 Testing & Verification

  • Beam-Accurate Emulator Probes: Updated the headless emulator harness (smstest-patches.patch) with scanline-beam accurate rendering simulation to catch line-by-line raster timing bugs.
  • Zero Frame Jumps: Automated test suite (tests/walk_frames.txt) verified every individual frame during 4-directional walking—reducing map position jumps from 43 down to 0.
  • Pixel Accuracy: All 8 test suites pass, with town screens continuing to match original Apple II disk pictures pixel-for-pixel.

v0.0.2: OpenSosaria SMS: Add status panel, monster combat and messages.

Choose a tag to compare

@haroldo-ok haroldo-ok released this 11 Oct 09:55

Full Changelog: v0.0.1...v0.0.2

image image image

🎮 What's New in Open Sosaria SMS v0.0.2

This update adds the bottom status panel, in-game messages, and active monster combat on the overworld map!

⚔️ New Features & Gameplay Updates

  • Classic HUD & Console Display:

    • The overworld map now takes up the top 10 rows.

    • The bottom area displays the classic 4-line message log alongside live stats: H.P., FOOD, EXP., and GOLD.

    • A raster line interrupt (at line 159) locks the bottom HUD in place so it stays stationary while the map scrolls smoothly.

  • Original Text & Story Messages:

    • Place names, combat alerts, and dialogue are now loaded directly from your converted disk files using original string references.
  • Overworld Monster Combat:

    • Terrain Encounters: Random monster encounters now trigger based on terrain type, with enemy sprites loaded from OUT.SHAPES.

    • Turn-Based Combat: Monsters strike after each move. Press Button 1 to attack back---defeating enemies earns Gold and Experience points!

    • Survival Mechanics: Food decreases with every step taken. Standing still for 5 seconds automatically passes a turn.

    • Resurrection: Running out of Health Points now properly triggers the resurrection flow.

🛠️ Performance Notes & Fixes

  • Screen Flicker: Overworld exploration now features a split-screen status bar. If you notice screen flicker while walking around, it is caused by the VDP line-interrupt timing needed to keep the HUD locked while the map scrolls.

  • Default Character Stats: Character creation is not yet ported; new games currently start with a default profile named "STRANGER".

  • Wrapped Text: Because the Master System screen width fits 21 text columns in this layout, longer original messages now wrap onto a second line.

  • Pending Features: Vehicles, magic spells, town/dungeon console overlays, and a multi-action command menu (to handle Board, Cast, Ztats, etc., via the 2-button controller) are scheduled for future updates.

v0.0.1: Begin porting OpenSosaria to Sega Master System using Arena.

Choose a tag to compare

@haroldo-ok haroldo-ok released this 10 Oct 11:21

Full Changelog: https://github.com/haroldo-ok/opensosaria-sms/commits/v0.0.1

image image image image image

Here is a clear, player-friendly summary of the current progress and technical status of the Open Sosaria Sega Master System port:

🗺️ What is Open Sosaria SMS?

Open Sosaria SMS is an unofficial homebrew project porting Open Sosaria (a C-based open-source recreation of Richard Garriott's classic 1981 RPG Ultima I: The First Age of Darkness) to the Sega Master System.

Important Note on Game Data: To build and play the cartridge ROM (opensosaria.sms), users must extract data from their own legal Apple II DOS 3.3 disk images of Ultima I. The repository contains no proprietary game assets.

🎮 Current Feature Status

Game Area / System Current Porting Status
Title Screen & Menus Working --- Fully functional menu flow, input handling, and state transitions.
Overworld Map Working --- Smooth terrain movement, tile scrolling, and collision bounds.
Towns & Castles Working --- Full horizontal scrolling for town and castle pictures. (Shops, NPC dialogue, and guard AI are not yet implemented.)
3D First-Person Dungeons Working --- Wireframe 3D rendering (scaled from 280 px to 256 px), 4-way turning, ladder climbing, and trapdoors. (Monsters, combat, and console text overlay are pending.)
Dungeon Generation Working --- Uses a deterministic generator seeded by map location and depth (differing slightly from the original's clock-based RNG).
Sound & Music Not Started
Combat & Space Stage Not Started
SRAM Save System Not Started

🕹️ Controls

Screen Input Action
Title Screen Any Button Start Game
Overworld & Towns

D-Pad

Button 2
|

Move character

Enter town, castle, or dungeon entrance
|
| Dungeon Exploration |

D-Pad Up

D-Pad Left / Right

D-Pad Down

Button 2
|

Move 1 tile forward

Turn 90° left or right

Turn 180° around

Climb ladders (Ladder 8 = Up, 7/9 = Down)
|

🛠️ Known Technical Limits & Engineering Focus

  • Dungeon Render Speed: Redrawing a 3D wireframe step currently takes ~0.8 seconds (43 to 49 TV frames) on the Master System. Full pre-rendering isn't viable because the game contains over 873,000 potential perspective views.

  • Input Latching: Rapid inputs made during 3D dungeon redraws are latched so commands aren't dropped.