Show HN: demake – one source project compiles to any retro game console ROM

32 pointsposted 5 hours ago
by gste

8 Comments

andai

2 hours ago

I saw this cool article yesterday about edge aware pixelation. That might give better results when pixelizing AI generated pixel art.

https://yogthos.net/posts/2025-12-11-edge-aware-pixelation.h...

More broadly I often find pixel art that has been upscaled and I'm wondering if anyone knows a good way to convert that back into the original?

In theory you just need to sample the middle of each blob, but I haven't found traditional image editors to be very helpful in this process.

bensyverson

3 hours ago

This is super cool! I like the idea of expressing the game declaratively, with a language that an LLM can easily understand. Do you have any other demos of what the language is capable of? I'm wondering if this could do a platformer or adventure style game.

Are there any device capability guards, so more capable systems within a tier (like SNES vs NES) could attempt more complex graphics, sounds or interactions? What works on the Game Boy is different enough from what's possible on the SNES that you may want some way to express that. Or to make it dynamic, like "make the number of enemies the number of supported sprites - 2"

gste

3 hours ago

There are more examples on the bottom bar of the screen. I figured it wouldn't be obvious enough.

Yeah, there's the potential for that. I have a concept of a "Demakefile" for implementation specific differences, if you want the art demaker to target specific art styles on specific platforms, etc.

But yeah a future enhancement could be, e.g. display more enemies or more sprites for more powerful systems. That's a grey area as I suppose it has to go in the declarative script (Demotic) and I'd have to make a distinction between more and less powerful consoles. Right now it's one script for everything

Dwedit

2 hours ago

There seems to be a bug in the code for handling input, certain combinations of pressing or releasing left and right can cause the paddle to get stuck moving to the left or right, especially when Left and Right are held down simultaneously.

gste

an hour ago

Thanks, I did notice the same, I will roll out a bugfix shortly

anthk

an hour ago

You can map this syntax to a Lisp (be Common Lisp or Scheme) with ease. Macros will do the 90% of the job for this.

There's some Common Lisp package to code for the web:

https://github.com/rabbibotton/clog

No AI gen would be needed if the game can be structured enough a la GB Studio.

benj111

2 hours ago

Interesting. How do you prevent rounding errors etc for different screen sizes? Some things could be 1 pixel in one version and 2x2 or 1x2 in another version.

And why does it play top to bottom when the 'net' suggests it should be side to side?

anthk

an hour ago

Also I'd love an Alan Wake PSX demake with the Resident Evil portview engine/graphics (easier, it has a WIP port for Scummvm) or the Parasite Eve one, which are really close. PE 1 used the FFVIII one I guess. Alan Wake in that style would be perfectly playable. On FX, the PS1 had torchlight effects since Alone in the Dark: The New Nightmare. The playability it's there, the scenaries mapped to single cameras would perfectly capture the environment. And, well, as for the in game audio/video... just use WAV/MPEG videos.