Skip to content

About

Deep Trip (Cordof Games, 2012) rescued from a dead Android 2.1 APK and ported to Kotlin Multiplatform: Android, desktop and iOS. Software archaeology + AI-driven reverse engineering.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Deep Trip (OrangeEel)

English · Español

Deep Trip running on desktop

A software archaeology project. Deep Trip (Cordof Games, 2012) was an Android 2.1 (API 7) game that vanished from every store. This project makes it playable again on modern Android, desktop and iOS, using Kotlin Multiplatform and Compose Multiplatform.

You are an orange eel swimming through an endless underwater cave. Hold to swim up, release to swim down. Dodge the rocks and grab the bubbles: the first gives you a rock-smashing helmet, the second puts you in rage mode. Along the way there are 61 tasks and 15 ranks, from SEAHORSE to NESSY.


Highlights

  • Lost-media hunt. The game was delisted and I couldn't remember its name. I tracked it down with an AI-generated image of my memory and a reverse image search.
  • AI-driven reverse engineering. A native ARMv5 C++ library was decompiled with Ghidra and rebuilt in Kotlin. The port came from a single prompt, in an experiment I set up to measure how far an AI agent (Claude Code) can get on its own.
  • One codebase, three platforms. Android, desktop (Windows / macOS / Linux) and iOS share all the game code, with rendering, input and GUI in Compose Multiplatform. Only audio, storage and the low-level draw call are platform-specific.
  • A small game engine in Kotlin. A batched textured-triangle renderer on top of Skia / Android drawVertices replaces the original OpenGL ES 1.x one. It also has a GUI system that reads the original GUI.xml, BMFont text, a tweening/action system and a particle system.
  • Platform audio. SoundPool on Android, AVAudioPlayer on iOS, and a custom software mixer with an MP3 decoder on the JVM.
  • Faithful to the original. Every asset is the original file, and the physics, level generation, colours and timings use the constants recovered from the binary.
  • Verified automatically. A headless snapshot mode plays scripted sessions and renders PNGs. Unit tests cover the game logic.

The story

Finding the game was half the job

Deep Trip was delisted years ago and there was no trace of it on any store. All I had was the memory of playing a game about an eel in a cave, without knowing its name.

  • I asked an AI and it couldn't find it.
  • Nothing turned up on Reddit either.
  • In the end I asked ChatGPT to draw what I remembered and ran that picture through Google Lens. Lens found a screenshot of the real game on an old-APK website, with its name. From there I could look for the APK.

ChatGPT's recreation of my memory
The image ChatGPT drew from my memory. Google Lens led from it to the real game.

Not a clean room: an experiment

This is not a clean-room reimplementation. It is an experiment to see how far an AI can get on its own:

  1. I found the APK on a third-party APK site and decompiled it with an online decompiler. The result is deep-trip.apk_Decompiler.com.zip, included in the repo.
  2. I created an empty Kotlin Multiplatform template project.
  3. I gave the AI (Claude Code) a single prompt: recover the app and make it KMP, so it can be played on modern Android and on PC.

From that one prompt, the AI did the whole port:

  • It found that there was almost no logic in Java. The whole game lived in a native ARMv5 C++ library (libABCProject.so, Cordof's "ABC" engine), which cannot load on current 64-bit phones or on PC.
  • It unpacked the custom resource format. resources.mp3 was really an index plus data holding 96 files: textures, BMFont fonts, levels, rock meshes, GUI.xml and texts in 6 languages.
  • It installed Ghidra and decompiled the library (about 2,400 soft-float functions). It then split the analysis across several sub-agents. Each wrote an exact spec of one subsystem with its constants: eel physics, rocks and levels, backgrounds and particles, menus, and achievements.
  • It reimplemented everything in Kotlin: a small engine that replaces the original OpenGL ES, and the full game on top of it.
  • It verified the result headlessly with automated screenshots of scripted sessions, and by playing it on the Android emulator.

After that there were only small follow-ups: making the commit, fixing the iOS app build (a Kotlin class name clashed with SwiftUI, and the app was not locked to landscape), and writing this README.

All assets (graphics, sounds, levels, texts) are the originals. The code is new, written from the decompilation. Services that no longer exist were removed: ads, Flurry, Heyzap, Papaya (leaderboards) and the Facebook button.

Deep Trip and all of its assets belong to their authors, Cordof Games. This is a non-commercial preservation project, made out of nostalgia and as an experiment. If you are one of the authors and want it taken down, please open an issue.


Screenshots

Main menu Help screen Lime level
Main menu (the world keeps moving behind it) First-run tutorial 700 m: lime cave and wooden rocks
Temple Teal level Rage mode
2700 m: temple rocks 4200 m 7200 m: rage mode with the rank's face
UFO Rank Task completed
9200 m: the cave fades to white and the UFO shows up Current rank and task Task completed: the star lands and the next task slides in

Deep Trip on the Android emulator
On the Android emulator (a foldable): crashing into a rock, with the death particles.

The screenshots are in Spanish because they were taken on a machine set to Spanish. The game picks English, Spanish, French, Italian, German or Russian from the device language.


Build and play

You need JDK 17 or newer. Gradle downloads the JDK 21 toolchain the project uses by itself. Run every command from the repository root.

Desktop (Windows, macOS, Linux)

./gradlew :desktopApp:run

To build a native installer (.dmg, .msi or .deb, depending on your OS):

./gradlew :desktopApp:packageDistributionForCurrentOS

The installer ends up in desktopApp/build/compose/binaries/main/.

Controls: click or Space / ↑ to swim up, release to swim down, Esc to pause or go back.

Android (Android 12 or newer)

You need the Android SDK. Point to it with sdk.dir=... in local.properties or with ANDROID_HOME.

To install on a connected phone or emulator:

./gradlew :androidApp:installDebug

To build just the APK:

./gradlew :androidApp:assembleDebug

The APK ends up in androidApp/build/outputs/apk/debug/androidApp-debug.apk.

The Android back button pauses the game or goes back in the menus.

iOS (Mac with Xcode only)

Open iosApp/iosApp.xcodeproj in Xcode, pick a simulator and press Run. To install on a real iPhone, set your TEAM_ID in iosApp/Configuration/Config.xcconfig.

From the terminal:

xcodebuild -project iosApp/iosApp.xcodeproj -scheme iosApp -destination 'platform=iOS Simulator,name=iPhone 17 Pro' build

iOS starts on the simulator, but it is less tested than Android and desktop.

Tests

./gradlew :shared:jvmTest

Progress and settings are saved under the same abcGame keys the original used. On desktop they go to Java Preferences.


How it's built

The whole game lives in shared/src/commonMain/kotlin/com/braiso22/orangeeel. Each file ports one part of the original:

file port of
engine/SpriteBatch.kt, TriangleDrawer*.kt the OpenGL ES 1.x renderer: batched textured triangles, drawn with Skia or Android drawVertices
engine/Gui.kt, Actions.kt, BitmapFont.kt ABCWindowsPack, ABCView, ABCButton and ABCLabel, the action and easing system, and BMFont text
engine/GameHost.kt ABCSurfaceView: the frame loop, touch and keyboard input, pause and resume
engine/Platform*.kt, jvmMain/.../SoftwareMixer.kt ABCSoundPlayer, ABCMusicPlayer and ABCUserSettings. Audio uses SoundPool on Android, JLayer with a software mixer on desktop, and AVAudioPlayer on iOS
game/DeepTripGame.kt CSGame and CSGameManager: game states, main loop, input, HUD and menu transitions
game/Snake.kt CSSnakeCurve and CSSnakeSprite: the eel as a trail of points along its own path
game/Obstacles.kt, Level.kt CSRockObstacle, CSBonusObject, the level chunks and distance milestones
game/Achievements.kt, AchievementWindowAnimator.kt CSAchivmentsManager, the 25 task types and CSWindowAnimator
game/DeepTripEnvironment.kt, Particles.kt parallax backgrounds, décor, smokers, algae, bubbles, plankton, depth colours and CSParticlesFactory

The original resources are in shared/src/commonMain/composeResources/files.

Debug snapshots (desktop)

./gradlew :desktopApp:run --args="--snapshot <dir> [--long|--flows]"

This plays a scripted session without a window and saves PNG snapshots; the screenshots in this README came from it. It uses its own preferences node, so it doesn't touch your saved game.

  • --long: an invincible autopilot run through every environment.
  • --flows: walks through the menus, completes the first task and replays.

Differences from the original

  • The buttons for services that no longer exist are not shown. Their slots stay empty.
  • The low-performance mode ("Optimizate") is not ported. The game always runs with full detail.
  • The algae used Box2D in the original. Here they are a simple verlet chain with the same parameters.
  • On screens wider than 3:2, the eel waiting in the menu is pushed further left so it doesn't peek in.
  • A couple of quirks of the original are kept: the "WOW" for a near miss is tinted red, and the underwater ambience plays once instead of looping.

Author

Made by Brais, an Android and Kotlin Multiplatform developer. The project covers the search for the game, the idea and setup of the AI experiment, the choice of the KMP stack, and testing it across platforms.

About

Deep Trip (Cordof Games, 2012) rescued from a dead Android 2.1 APK and ported to Kotlin Multiplatform: Android, desktop and iOS. Software archaeology + AI-driven reverse engineering.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages