GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ppeltriaux/rtype-neo: R-Type Neo: the 1987 arcade R-Type translated to the Neo Geo, built from your own ROMs (co-op, stage select, Armour, Boss Rush). No ROMs included.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
src
src
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
build.sh
build.sh
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

R-Type Neo 1.1 (0e40c82)

The 1987 arcade R-Type (Irem, M72 board) on the Neo Geo MVS: the original game's own program, translated from its V30 CPU to the Neo Geo's 68000, built from your own copy of the arcade ROMs. It plays as the original does (its stages, enemies, music and sound, its attract mode and ranking), with four things the original never had:

  • Two players at once. A 2P start begins co-op; either player can join a game later with a coin and their start button. Player 2 flies a crimson R-9 with a Force of its own, the beam gauge splits while both play, and a lost ship flies in again where the game is while the partner plays.
  • A stage select. On the start screen, left and right pick the stage (STAGE n on the credit line).
  • Armour. Up and down on the start screen pick CLASSIC, ARMOUR or BOSS RUSH. In Armour an enemy's hit with ships to spare costs a ship and a laser level, and the game goes on where it is (a wall still destroys the ship).
  • Boss Rush. The seven bosses back to back, every ship fully armed, against a run timer, with a ranking table of its own. Both rankings are kept in the MVS cabinet's backup RAM.

The Neo Geo's 320-pixel screen is narrower than the arcade's 384: a view camera follows the action, keeping the ship whole and leaning towards where the enemies are.

This repository is the port's source and build. It holds none of the game: the build reads the program, graphics, maps and sound from your own ROM set, translates and converts them on your machine, and writes a Neo Geo cart for MAME.

What you need

  • Your own copy of the game: MAME's rtype set (R-Type, World), as a zip or a folder (extract a .7z set first). Files are matched by their contents, whatever their names; a merged set with the clones in it is fine. Only the World set works: the port is a translation of that program, and rtypej, rtypeu and the bootlegs differ. These 22 files (the three PALs MAME lists are not needed):
File Bytes SHA1
m72_a-8l-.ic66 256 00e20cf754b6fd5138ee4d2f6ec28dff9e292fe6
m72_a-9l-.ic75 256 f13b0a4b52dcc6704063b676f09d83dcba170133
rt_b-a0.3c 32768 687061ecade2ebd0bd1343c9c4a831791853f79c
rt_b-a1.3d 32768 130bf6af521f13247a739a95eab4bdaa24b2ac10
rt_b-a2.3a 32768 95c3b64f50e6f673b2bf9b40642c152da5009d25
rt_b-a3.3e 32768 9529ecdedd30e2a0400fb1083117992cc18b5158
rt_b-b0.3j 32768 5b390770e56ba2d35e108534d7eda8dca996fdf7
rt_b-b1.3k 32768 700905a3e9661e0874939f54da2909e1396ce596
rt_b-b2.3h 32768 14222eaa3e67e5a7f80eafcf22bac4eb2d485a9a
rt_b-b3.3f 32768 e2683d0e7415f3abd147e518bf6c87e44744cd4f
rt_r-00.1h 65536 1e3bc498861946278a0b1fe24259f5d224e265d7
rt_r-01.1j 32768 6741eb7f2d9d985b5a89eefc73ea44c3e38de6f7
rt_r-10.1k 65536 d2873d05aa3b257e7699c188880ac3daad672fa5
rt_r-11.1l 32768 5239a97222212ac9c019177771cb2b5096b7bc17
rt_r-20.3h 65536 01cf0a60f47fa5e2ed430a3f075e69e6cb762a48
rt_r-21.3j 32768 7e55a9a11fcd989db39bce6be48821b747c7d97f
rt_r-30.3k 65536 60a394ab53afdcbbf9e88083b8dbe8c897170d77
rt_r-31.3l 32768 b5467d1f22f6e5f90c5d8a8ac2d55974f287d589
rt_r-h0-b.1b 65536 0b9d5474bc5963224923126cf84d74a39b8270cc
rt_r-h1-b.1c 65536 008d1dc289df2ae2ba8f93d319c2b2c108cb9b89
rt_r-l0-b.3b 65536 3001c1b87cd1d441ba1226fb5b9dd6268458c0e8
rt_r-l1-b.3c 65536 0144c846fd0bdb3e4d790f6cb7bb64829e931b76
  • The Neo Geo BIOS set (neogeo.zip), to run the cart in MAME.
  • Tools: python3 (3.9+), make, vasmm68k_mot, GNU z80asm, nasm and mame (0.289 tested). On macOS: brew install python3 z80asm nasm mame; on Debian or Ubuntu: sudo apt install python3 python3-venv make z80asm nasm mame. vasm is built from its source, http://sun.hasenbraten.de/vasm/ (make CPU=m68k SYNTAX=mot, then put vasmm68k_mot on your PATH). The build script checks them all and says what is missing; it installs its Python packages (requirements.txt) in .venv.
  • Platforms: macOS, Linux, and Windows through WSL2 (follow the Linux steps inside it).

How to build it

./build.sh path/to/rtype.zip            # the co-op build: dist/mame/nrtype.zip + dist/mame/hash/
./build.sh path/to/rtype.zip --solo     # the 1-player build
./build.sh path/to/rtype.zip --logo-from <a Neo Geo set you own>.zip --bios neogeo.zip
                                        # with the Neo Geo boot logo and jingle

The first build takes about 30 minutes on a recent Mac: the script copies and checks your ROMs into orig-rtype/, plays the original in MAME for a few minutes to log its sprites and spawns, then translates the program, which runs the original in MAME a few more times to find its code and record its sounds. Later builds reuse those recordings (in build/) and take seconds. With the same MAME version, two builds come out byte-identical. Other MAME versions build too, but they play the original a little differently while the build records it, so a few background tiles may go unfound and show blank: use 0.289.

The boot logo is optional: the Neo Geo eye-catcher and its jingle are taken from another Neo Geo game's set you own, recorded with the BIOS set. Without one, the cart skips the eye-catcher.

How to play it

mame neogeo -rompath "dist/mame;<the folder with neogeo.zip>" -hashpath dist/mame/hash -cart1 nrtype

Coin: 5, start: 1 (player 2: 6, 2). A fires (hold it to charge the beam), B launches and recalls the Force. On the start screen (after a coin), left and right pick the stage, up and down the mode.

Everything the build writes (orig-rtype/, assets/orig/, build/, dist/) contains Irem's data: it is gitignored, and the results are for your own use only. Please don't share them.

How it works

tools/v30to68k.py translates the original's V30 program to 68000 code, routine by routine, from the entry points the build finds by running the original in MAME (tools/v30game.py). The translated game runs on a small runtime (src/m68k/v30rt.asm) that stands in for the M72 board: its tilemaps become the Neo Geo's sprites, its sprite list is redrawn as Neo Geo sprite chains, and its sound cues play on the Neo Geo's YM2610 (src/z80/sample_driver.asm, with samples recorded from the original in MAME). The co-op mode, Armour, Boss Rush and the view camera are 68000 code of their own (src/m68k/origgame.asm, bossrush.asm, brsave.asm) hooked into the translated program.

What the repository holds about the original: the addresses of the routines and data the port hooks or patches, with a description of what they do, and src/m68k/v30native.asm, 68000 code written to give the same results as some of the original's shared routines and the interrupt handler's object loops. Those are the hottest code: translated, the game is too slow for the 68000. The sprite piece writers and the palette fade are written from a description of their data and effect, the hit tests batch the original's record-by-record work, and the clears, copies and gauge redraw only what changes. None of it is copied from the ROMs. src/m68k/header.asm holds the Neo Geo cartridge header and the standard security routine every Neo Geo game carries.

More about the port, with videos and screenshots: https://rtypeneo.com/

Legal

This is an unofficial, free fan project, not affiliated with or endorsed by Irem, SNK or any rights holder. R-Type and its program, graphics, music and sound are Irem's, and R-Type is their trademark, named here only to say which game the port is of; Neo Geo and its boot logo are SNK's. This repository is not the game and cannot make it without the original: it holds none of the game's program, graphics, maps or sound, and you need your own lawfully obtained copy of the original ROMs. None are included here, none are linked to, and none are sent on request: please do not ask. Nor are built carts: what the build writes contains Irem's data and is for your own use. The code here is under the MIT licence (LICENSE), which covers only the files in this repository and grants nothing for Irem's or SNK's work. If you hold rights in R-Type or the Neo Geo and object to this repository, write to [email protected] and it will be taken down.

The arcade original with the same co-op mode, stage select, Armour and Boss Rush, as a patch: R-Type Plus, https://github.com/ppeltriaux/rtype-plus

Contact

[email protected], or an issue on this repository.

About

R-Type Neo: the 1987 arcade R-Type translated to the Neo Geo, built from your own ROMs (co-op, stage select, Armour, Boss Rush). No ROMs included.

rtypeneo.com/

Topics

68000arcadeassemblyco-opiremm68kmameneo-geoneogeoportr-typeretrogamingshmup

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.