All hacks

3D shooter for old J2ME mobile phones built by Claude

A Duke Nukem 3D style shooter in a half-megabyte JAR that runs on 20-year-old J2ME phones, written by Claude from one prompt.

3D shooter for old J2ME mobile phones built by Claude
3D shooter for old J2ME mobile phones built by Claude, as posted by u/wollymonjac
Photo: u/wollymonjac, from the original post.

A Duke Nukem 3D style shooter now runs on a roughly 20-year-old J2ME phone, packed into a JAR of about half a megabyte. The builder says it feels on par with the Gameloft games they played on these handsets back then.

It all came from one prompt to Claude (Opus 5.5). The engine is a Wolfenstein-style raycaster in Java that uses only integer maths, with textured floors, a moonlit sky and fog. For art, Claude wrote its own 3D renderer in Python, modelled the monsters, guns and hero, and rendered them out as sprites. It also generated the textures in code, designed four maps, composed eight MIDI tracks and made voice lines with text-to-speech, cleaned up in ffmpeg.

The JAR worked first time when copied to the phone. You’ll need an old J2ME handset to play it. The source is on u/wollymonjac’s GitHub, linked from the original post.

All credit to u/wollymonjac. The full story is at the original source.

Cracked something open?

Send us your hack. Clever, useful or gloriously pointless, we want to see it.

Submit a hack