Kung-Fu Master EX

Two players at once, in co-op
Atari XL/XE 64 KB with VBXE

About the gamewhat it is and who made it

Kung-Fu Master EX is the only version of Kung-Fu Master where two players fight at the same time, in co-op. Thomas and Chuck Norris go up the temple together, side by side. The arcade and all the home versions let only one player fight at a time. We added co-op because the game is simply more fun with two: you cover each other's back, clear the floors together and beat the bosses as a team. No friend around? The computer can be your partner.

Thomas and Chuck Norris, the loading screen

The loading screen is a nod to The Way of the Dragon (1972), the film where Bruce Lee and Chuck Norris fought each other in the Colosseum. Here they fight side by side. Kung-Fu Master itself borrows from Bruce Lee's Game of Death: one floor after another, a boss on each.

The original Kung-Fu Master is an arcade game released by Irem in 1984, designed by Takashi Nishiyama. This version for Atari XL/XE with VBXE was made by the New Generation group in 2026. All five floors of the temple, the bosses, the intro and the attract mode are in. Enemy waves and boss behaviour follow the arcade code.

You can also play alone, or watch two computer players.

The game has been on our to-do list since 2020. In 2023 it was about two thirds done, then we put it aside to make the demos Rewind 2 and Unbound and a few smaller productions. The goals were the same from the start: 50 frames per second, the feel of the original, extra game modes, two difficulty levels, good control with a one-button or two-button joystick, and samples if we could fit them.

Credits

Code

SoloJarosław PadulaLaooWaldemar Pawlaszek

NGA assembler

LaooWaldemar Pawlaszek

Music, SFX

MikerMichał Szpilowski

Additional graphics

SoloJarosław Padula

RMT player

Raster/C.P.U.Radek Štěrba

Tests on real hardware

Jacques, Pin, SuN, tebe, Piguła, Piesiu, Larek, woj

Co-op for two

Two players on screen together, Thomas and Chuck Norris. Play with a friend or with the computer as your partner. More in Game modes.

Close to the arcade

Enemy spawns, knife throwers, the five bosses, harder laps and the dragon counter work as in the arcade. Timings were taken from the arcade code, frame by frame.

ANTIC + VBXE

The game works in a hybrid way. The floor is drawn by ANTIC, with a scrolling VBXE colour map on top. The sprites are drawn by the VBXE blitter, up to 24 per frame, double buffered, at 50 frames per second.

Sound

Music and effects by Miker. Voice samples from the arcade play during the game. With a second POKEY the sound is in stereo, with a short echo on the second chip.

Game modesall of this is new, no other version of the game has it

Game mode menu
The menu, after you press the button on the title screen
Pause
Space pauses the game

Options

Set them in the menu with left and right; the arrows show which way a value can still change. They stay until you change them.

Difficulty

ARCADE plays like the arcade. NORMAL is easier: enemies come in more gently, bosses attack less often and you get one extra life. Damage is the same. CHILLED is NORMAL for a relaxed evening: every hit takes half the energy, grabbers drain you half as fast and you start with five lives. INSANE starts with two dragons, that is the arcade's third loop from floor 1: more enemies, faster knives, tougher bosses.

Play as

THOMAS or CHUCK on joystick 1, in every mode. With two players (or a CPU partner) the other one gets the other hero.

CPU skill

How well the computer plays, in every mode with a CPU player: NORMAL or PRO.

Buttons

1: for a one-button joystick. Button with left or right punches that way, button alone kicks, down and button kicks low.
2: for a two-button joystick. First button kicks, second button punches.

Pause

Space pauses the game. From the pause you can continue or go back to the title. START or SELECT also take you back to the title.

Modes

Start

The classic game for one player.

2 players

Thomas on joystick 1 and Chuck Norris on joystick 2 (or the other way round with PLAY AS), at the same time. Both stay on one screen and go up the stairs together. When one player loses all lives, the other plays on.

1 player + CPU

You play the hero chosen in PLAY AS, the computer plays the other one as your partner.

CPU + CPU

The computer plays both. Sit back and watch.

CPU

The computer plays Thomas alone.

Training

Play the chosen floor again and again, without losing lives.

Boss training

Start just before the boss of the chosen floor, with no other enemies.

More info and technical specshow the game was made and what is inside

VBXE memory used

99.97%

524,128 B of 524,288 B (all 512 KB)

Free VBXE memory

160 B

out of 512 KB

Free Atari RAM

287 B

of 46,592 B for code and data, in a few places

Zero page

249 B

used, 7 B free

Sprite frames

256

of 256, the most a one-byte frame number allows

.xex

174.2 KB

178,352 B compressed

Numbers for the released kfmex.xex.

NGA assembler

The game is written in 6502 assembly for NGA, a new assembler by Laoo. NGA places code and data in memory by itself, also in banks and in VBXE memory, and checks memory banking at build time.

Frame timing

The game loop does not start at the vertical blank. It starts at scan line 156, while the bottom of the screen is still being drawn. Input, game logic and the new scroll position are ready before the vertical blank at line 248. At line 224 the blitter starts drawing the sprites into a second buffer that is not on screen, and the vertical blank switches to it only when the blitter is done. When the beam starts the next frame at the top, everything is already in place, so sprites do not flicker or tear.

Sprite Maker NG

Sprites were cut from graphic sheets in Sprite Maker NG, our own tool: frames, anchor points, hit boxes and export to the game.

Emulator and bridge

Tests ran in AltirraSDL by ilmenit, a fork of Altirra by phaeron (Avery Lee). Its bridge lets a script drive the emulator without a window: load the game, move the joystick, read memory, take screenshots. We made a few more forks of AltirraSDL for our needs, for example to record sound without a window and to log when the VBXE blitter is busy.

Profiling

Profiling and performance tests were run by an LLM (Claude) through that bridge. The game plays itself in the CPU modes and every frame is measured: how much time the 6502 spends on each part of the game and how long the blitter works. The final performance polish was done with these measurements.

Sprite Maker NG
Sprite Maker NG with the Thomas and boss sheet

Two CPU players, lap 3, until game over. Right: how much of each frame the 6502 spends on each part of the game, and how long the VBXE blitter works.

Downloadthe game and what you need to run it

Game - v1.06

kfmex.xex
Compressed, 175 KB. For floppy, SIO2PC and other SIO loaders. Unpacking takes about 30 seconds.

kfmex-raw.xex
Not compressed, 480 KB. For SIDE, hard disks and fast loaders.

kfmex.atr
Disk image, double density 180 KB, boots by itself (no DOS needed). For SIO2PC, SDrive, FujiNet, emulators and double-density drives. Loading at standard SIO speed takes about 3 minutes.

Requirements

  • Atari XL/XE, 64 KB
  • VBXE with FX core 1.26 or newer, at $D640 or $D740
  • PAL or NTSC (on NTSC the game runs faster, NTSC tuning is still in progress)
  • Joystick, one or two buttons
  • Optional: second POKEY for stereo
  • Emulator: Altirra 4.40 or newer, with VBXE enabled

Controls

  • Up: jump, down: crouch
  • One button: button with left or right = punch, button alone = kick
  • Two buttons: first = kick, second = punch
  • Space: pause
  • START or SELECT: back to the title

Version history

Version 1.06 (31.10.2026): new difficulty CHILLED (half damage, grabbers drain half as fast, five lives). Mr. X now waits between his attacks in the same pose as the arcade does, so his low kicks no longer flicker. Screen changes no longer show a frame of garbage on VBXE FX core 1.27. The menu shows the head of the hero chosen in PLAY AS, and Chuck has a deeper battle cry on the LET'S GO screen.

Version 1.05 (31.10.2026): new difficulty INSANE (start with two dragons, the arcade's third loop from floor 1). PLAY AS: THOMAS / CHUCK in every mode; with two players or a CPU partner the other one gets the other hero. Menu arrows show which way a value can change. New: the game as a bootable disk image (kfmex.atr).

Version 1.04 (internal): the floor 4 and floor 5 bosses play like the arcade (close attacks land again, Mr. X can no longer be skipped), floor 4 butterflies fly off the screen, no holes in the board after losing a life, Joy 2B+ second button works from the first game.

Version 1.03 (29.10.2026): fixes the background glitches on real hardware and MiSTer (single frames with wrong graphics in the background, mostly on the floor). The cause was a 6502 quirk: a display interrupt could get lost when it met the sample playback interrupt. Thanks to all testers for the reports and videos!

Version 1.02 (29.10.2026): fixes the flicker on VBXE FX core 1.27 (mostly on NTSC machines) and makes sprite drawing more robust on real hardware (leftovers of the pause box, single glitched frames when the game switches screens).

Version 1.01 (29.10.2026): second button fixed on Joy 2B+ joysticks. The game now detects the button wiring by itself; if kick doesn't work at first, hold punch once for about 3 seconds. The version number is shown on the loading screen.

ContactNew Generation

Pouet - our productions
Demozoo - our productions
Time Pilot for Atari XL/XE