splitbrain.org

electronic brain surgery since 2001

Still Alive revived

Still Alive revived

Back in 2008, I blogged about a little homebrew game for the Nintendo DS named StillAliveDS and how much I liked the puzzle platformer.

StillAliveDS is a puzzle game inspired by Portal: The Flash Version, which is a 2D remake of Portal, developed by Valve Corporation.

Portal consists primarily of a series of puzzles that must be solved by teleporting the character and other simple objects using a Portal Gun. The unusual physics allowed by the Portal Gun are the emphasis of Portal.

A few weeks ago, I used my website's random button and landed on exactly that post. I wondered whatever became of the game. To my surprise, I learned that its developer, “t4ils,” had made a web version and released it under the AGPL.

Unfortunately, the website was no longer available, but the Wayback Machine still had parts of it. There was enough to recover all the client-side code.

It still worked in modern browsers, but it used an ancient version of jQuery, and the tiny DS-resolution graphics weren't great on modern systems.

So I spent quite some time “reviving” the game with the help of Claude. I wanted to keep the gameplay, look, and feel as close to the original as possible while thoroughly modernizing the game.

To nobody's surprise, Claude was able to make the game run again in no time. Refactoring the code and graphics into a modern architecture, on the other hand, took a lot of babysitting and reviewing. The current architecture is the result of many, many iterations.

Tiles and background graphics had to be redrawn from scratch while staying close to the original. Though I made the creative decision to drop a few “jokes” from the background images that I felt were a bit out of date – I don't think anyone misses jokes about Michael Jackson's looks in 2026.

Since the licensing of the original audio was a bit unclear, I decided to replace the sound effects and also extend them to cover more actions. Finding the right effects took quite a while – Claude helped me by building a “sound lab” where I could test and compare sound effects from different free sources until I found what I needed.

Even though the game now uses a modern ES module structure and web components for the UI, I decided not to use a bundler. Instead, it relies on modern browsers' module-loading support. A custom loader loads all assets into RAM once. This way, there are no external dependencies (neither libraries nor build tools), and the game can be restored from the Wayback Machine, just like the original could.

The game can be played right in your browser: Still Alive revived.

Currently, only mouse and keyboard are supported. If I feel like it, I might add controller support someday. I don't know if or how it could ever be made to support touch controls.

Tags:
game, portal, javascript, llm, ai

Comments