Repository navigation
Releases
v1.5.1
v1.5.1 — HD performance fix: HD art now runs smoothly
Everything in v1.5.0, plus a fix for the HD lag (about 1 FPS):
- The game was re-reading and re-decoding every HD sheet from disk on every frame. The built-in PNG decoder took 100-900 ms per sheet, so each frame cost seconds. Decoded images are now cached and shared, so a sheet is decoded once and reused for every frame.
- The PNG decoder itself is faster: a buffered canonical-Huffman decoder instead of a bit-by-bit reader with a linear code scan. First loads are 7-25x faster (a full HD scene render went from about 8 seconds to about 0.3 seconds).
- The tile and sprite blits no longer divide per pixel (Bresenham stepping instead), and the window's bilinear fit is integer fixed-point with precomputed axis maps instead of float math per pixel.
- The rendered output is pixel-identical to v1.5.0 — same art, same layout, just fast. 173/173 tests pass.
How to use the HD art: the HD art pack is NOT in this release (it is upscaled game art, generated from your own jar). Place an hd folder with the upscaled sheets next to the RP packs and the game enables HD automatically. Without it the game plays exactly as before.
The port requires your own legally obtained copy of the original game jar (God of War: Betrayal J2ME) — extract it next to the exe as the extracted folder. Port code is MIT; the game assets remain the property of their owners.
v1.5.0
v1.5.0 — HD art: AI-upscaled sprites, 960x1280 render, fullscreen
Everything in v1.4.1, plus:
- Every sprite the game loads (34 sheets + 8 palette variants) AI-upscaled 4x with Real-ESRGAN (x4plus-anime model). The port renders at 960x1280 from an hd folder next to the RP packs, and falls back to the original sprites when it is not there.
- F11 toggles borderless fullscreen; the frame is fitted to the window preserving the 3:4 aspect (crisp integer scaling for the original art, smooth bilinear for HD).
- RGBA PNG decoding for the HD sheets, and a scale-aware renderer (destination-driven drawRegion, scale-aware tile drawing).
- The tileset was upscaled tile-by-tile with edge padding, so the level background has no grid seams.
- 173/173 tests pass; Windows cross-build verified.
How to use the HD art: the HD art pack is NOT in this release (it is upscaled game art, generated from your own jar). Place an hd folder with the upscaled sheets next to the RP packs and the game enables HD automatically. Without it the game plays exactly as before.
The port requires your own legally obtained copy of the original game jar (God of War: Betrayal J2ME) — extract it next to the exe as the extracted folder. Port code is MIT; the game assets remain the property of their owners.
v1.4.1
v1.4.1 — two bugfixes found while playing v1.4.0
- No sound: the MIDI parser never consumed the first data byte in the running-status branch, so the track desynchronised after the first such note. The background music parsed as 38 note-ons and 2363 note-offs instead of 867 and 867 — effectively silent. One-line fix; the corrected parse matches an independent parser exactly.
- Screen shaking up and down: the base camera measured its movement from the final camera position instead of the base camera, a misreading of the original's camera code. The vertical camera zones then flickered on and off at the edge of the viewport, pumping the camera offset up and down on an 8-tick cycle. Fixed to match the original; the camera is now stable with the zone offset at its snap value.
168/168 tests passing. Windows cross-build verified.
The zip contains gow-betrayal-pc.exe and README.md in a folder named gow-betrayal-pc-v1.4.1-windows. SHA-256 of the zip: dfc60f1f9fff046ba5cb7832e54088687e9b4ef7d5d8384fa354c6d0434bd150.
This is a fan-made Rust port of God of War: Betrayal (J2ME, Glu Mobile). It needs the user's own legally obtained copy of the original jar at runtime (place the extracted folder next to the exe); no Glu assets are included or redistributed.
v1.4.0
v1.4.0 — dS enemy special attacks, ported whole
Everything in v1.3.0, plus the enemy special attacks under the dS state machine:
- The full i() action setter: dS maintained per kind class, ei/eh flags, and the grapple freeze guard (other enemies go idle during a grapple).
- dM/dN special enemies: health quadrupled at load (9217's elite 25 to 100, 27648's dN 2000 to 8000), and dM deals half damage.
- The special-attack trigger: an airborne enemy, not ei/eh, with dS != 1, starts its special attack (action 11 kind 11, 8 kind 12, 10 kind 13).
- The dive: the anim's own downward root motion plus the accelerating dJ, contact damage once, ending on landing with the landing stagger (7/9/8 by kind) or when the anim ends.
165/165 tests passing. Windows cross-build verified.
The zip contains gow-betrayal-pc.exe and README.md in a folder named gow-betrayal-pc-v1.4.0-windows. SHA-256 of the zip: b664b316d9fa80f21b1637b548b6029c97dd0d165989a650ff2a13ef4367d438.
This is a fan-made Rust port of God of War: Betrayal (J2ME, Glu Mobile). It needs the user's own legally obtained copy of the original jar at runtime (place the extracted folder next to the exe); no Glu assets are included or redistributed.
v1.3.0 — Phase 8: grapple, presentation & loose ends
Phase 8 complete — grapple, presentation & loose ends. 156/156 tests.
What's in:
- Grapple: Down on a weakened enemy starts the fR/fS/fQ button-mashing mini-game, with the slot-131 prompt bar above the enemy's head. Kind-specific branches (kind 11 finisher, kind 12 throw/grapple, kind 13 throw/grapple). Correct key advances the prompt, wrong key breaks it; success kills and drops orbs, failure plays the miss anim.
- Artemis anim variants: actions map 27→29, 3→4, 97→98, 5→6, 8→9, 100→101, 38→39 while the logical action stays unchanged.
- Collectible drawing: item icons now render at their positions (anim set 5120, sprite set 5123).
- Stagger-13 variant: a kind-13 enemy hit while playing action 12 staggers with 13 and drops a health orb.
- Spawn-in anims: respawns now play 27 (kind 11), 14 (kind 12), 18 (kind 13) before going idle.
- Type-7 camera zones: horizontal-only zones (fj enable, fk negative).
- Flag-2 enemy tiles: grounded walking enemies turn at flag-2 tiles instead of walking through.
- Sound slot 3: verified a no-op in the original; nothing to port.
Investigated, deliberately not ported: the dS enemy special attacks (needs the full AI decision tree), state-79 flame / cs=266/243, walk/attack-from-block, and the untraced remainder (3GP video, other MIDI chunks, boot cases, hs gold cap).
Windows build: gow-betrayal-pc.exe (2,536,475 bytes), cross-built with the window feature. Zip SHA-256: eae34d97b0277c6304b6d7cc583ecd1398b2bfe97ea521751804ab1dece64916.
Usage: unzip, place your own legally obtained copy of God-of-War-Betrayal_J2ME_EN_v148.jar in a folder named extracted next to the exe (the port never ships Glu assets), then run gow-betrayal-pc.exe extracted --play-window 9217.
v1.2.0
v1.2.0 — Phase 7: death, Arena completion & the full playthrough
Everything in v1.1.0, plus:
- Death screen (state 108): grounded death plays action 52, airborne death falls first, then 52. When the animation ends, "You Are Dead" shows. Select respawns at the checkpoint in levels; in the Arena it does nothing, as in the original. Exit goes to the main menu.
- Checkpoint respawn: flag-1024 tiles set the respawn point (starting at the spawn). Respawn refills health and magic and recentres the camera.
- Arena best score:
hzupdates to your kills on death, with "New Record!" or "Record: N" on the screen. - Arena wave respawn: dead enemies count down and respawn at their spawn point, gated on respawn count (ignored in the Arena), fewer than 10 orbs, distance from you, and a clear tile above the spawn. They return idle — the spawn-in animations are a later phase.
- State-104 upgrade interstitial: collecting an upgrade opens the framed box with the slot-136 icon and the "Gorgon Eye / Phoenix Feather Found" lines; the max grows 3/tick for 64 ticks instead of jumping at once.
- Save sync fix: upgrade levels, the
hebits, and gold now sync to the save before every persist — previously an upgrade was lost on the next save. - Enemy damage now clamps health at 0, as in the original.
Corrections from the research: magic regeneration does not exist in the original (the only magic gains are state 104 and MAGIC orbs), and pit death does not exist either (out of bounds is solid).
Requires your own legally obtained copy of God of War: Betrayal (J2ME, Glu Mobile v1.4.8). No game assets are included. Extract the jar yourself, then run:
gow-betrayal-pc.exe extracted --window
148/148 tests pass. Windows cross-build verified (exe 2,518,501 bytes); a run on a real Windows PC is the final test.
v1.1.0
v1.1.0 — Phase 6: combat polish
Everything in v1.0.0, plus:
- Hurt reactions (actions 5/7/100): damage over 50 turns the player to face the attacker; facing the attacker plays 5, otherwise 100.
- Block poses: Down enters the block (27), holds (3), releases to the exit pose (28); Up while blocking exits to idle with no jump.
- Death/stagger root-motion slide: hits push the player and enemies by the original's dx values.
- Heavy stagger variants (7/9/8) on finishers against weakened enemies.
- dX cooldown: mode-2 hits build dX; swings are gated while dX > 500; the slot-137 indicator shows the stagger state.
- HUD weapon icon now follows the equipped mode.
- Fire-while-grabbing: attacking while holding a box (21) releases the grab instead of swinging.
Requires your own legally obtained copy of God of War: Betrayal (J2ME, Glu Mobile v1.4.8). No game assets are included. Extract the jar yourself, then run:
gow-betrayal-pc.exe extracted --window
136/136 tests pass. Windows cross-build verified (exe 2,507,688 bytes); a run on a real Windows PC is the final test.
v1.0.0 — Phase 5 complete
v1.0.0 — Phase 5 complete
Phase 5 (menus & meta) is now complete. Everything in v0.9.0, plus:
- Pause menu (state 102) — pressing Escape during gameplay opens the in-game menu (Exit / Main menu / Help / Sound) with confirm prompts on the two quit options. Exit quits the game after saving; Main menu returns to the main menu; Help shows the help screen; Sound toggles audio on/off.
- Settings store "-9" — the sound setting now persists across runs in its own record store (one byte, 1 = on, 0 = off), read at boot and written on toggle.
- Arena kills HUD — "Kills: N" shows in Arena mode, counting every enemy death.
- Level-complete interstitial (state 109) — completing a level shows "Level Complete" with your kills; Select continues to the next level (with save), Exit goes to the main menu.
Verification: 128/128 tests pass; Windows cross-build OK (exe 2,502,842 bytes).
Known gaps: Arena wave respawn is untraced (the 15 enemies in level 9216 do not respawn); there is no "You Are Dead" screen yet, so the best-score display waits on that; the state-104 upgrade interstitial is not ported.
How to run
Extract the zip, then run the exe with your own legally obtained jar of God of War: Betrayal (J2ME, v1.4.8) in a folder next to it:
gow-betrayal-pc.exe <extracted-dir> --play-window
The port is std-only Rust by default; the OS window is feature-gated (winit 0.30 + softbuffer 0.4). See README.md in the zip for all modes (--decode-all, --game, --play, --window, and more).
v0.9.0
v0.9.0 — Phase 5, partial: lever pull animations, rectangle door triggers, collectibles.
Pulling a lever now plays the pull animation (action 15, or 17 to un-pull) while its doors toggle, instead of snapping instantly.
Rectangle door triggers (type-28): standing on a flag-32 tile inside a rect toggles its door, up to its count, with a 2-second cooldown. Level 1 has two: one toggles door 4 up to 7 times, the other toggles door 5 once.
Level-placed collectibles (type-4): the gold/health/magic orb bundles in each level now grant their orbs when touched, and the ho/hp upgrades from level 2 on raise max health or magic by 192 and refill it. The pickup pose (action 31) plays on collection.
Tests: 119/119. Windows cross-build (MinGW, window feature).
This release contains only the port executable — no game assets. Supply your own legally obtained God-of-War-Betrayal_J2ME_EN_v148.jar, extract it, and run: gow-betrayal-pc.exe --play-window
v0.8.0
v0.8.0 — Phase 4 enemy AI depth + cutscenes + respawn.
The eu idle-to-walk timer: enemies in chase range now pause a random 0-511 ms before walking toward the player, then re-randomise — instead of charging immediately.
Real '!' cutscene playback (state 105): the type-6 aY/aZ action tables now play with the world frozen. The spawn tutorial opens with action 96, then the dialog continues. ba/bb persist across cutscenes within a level.
Flag-4 enemy respawn (type-14): crossing a flag-4 tile updates off-screen enemies to new spawn points and respawns them there at full health, so cleared areas repopulate as you progress.
Tests: 112/112. Windows cross-build (MinGW, window feature).
This release contains only the port executable — no game assets. Supply your own legally obtained God-of-War-Betrayal_J2ME_EN_v148.jar, extract it, and run: gow-betrayal-pc.exe --play-window