DOOM Over DNS Is Wild — Now Generate DOOM-Style Game Art via API ($0.003/image)
If you've been on HackerNews in the last few days, you've seen it: DOOM Over DNS — a project that compresses the entirety of shareware DOOM into ~1,964 DNS TXT records and plays it back using nothing but a PowerShell script and public DNS queries. 335 points, 88 comments, pure developer chaos.
The tradition is sacred: DOOM runs on everything. Pregnancy tests. ATMs. Calculators. And now, apparently, the most boring protocol on the internet.
"It was always DNS."
But here's the thing — if someone can run a 1993 first-person shooter over DNS records, you can generate DOOM-style game art with 3 lines of Python.
The AI Angle: DOOM Runs Everywhere. Your Game Art Generator Should Too.
The DOOM Over DNS project works by splitting the WAD file into chunks, encoding them as DNS TXT records, and reassembling them at runtime. It's technically impressive, completely absurd, and deeply lovable.
What if you could generate DOOM-style pixel art, retro dungeon maps, monster sprites, and weapon designs just as easily?
That's exactly what NexaAPI lets you do — 56+ AI models, $0.003 per image, no GPU required, no setup, just an API key.
Python Tutorial: Generate Retro Game Assets in 3 Lines
# pip install nexaapi
from nexaapi import NexaAPI
client = NexaAPI(api_key="YOUR_API_KEY")
# Generate DOOM-style retro game assets
response = client.images.generate(
model="flux", # or stable-diffusion-xl
prompt="retro pixel art DOOM-style demon monster, 16-bit game sprite, dark dungeon, red eyes, classic FPS game aesthetic",
width=512,
height=512,
num_images=1
)
print(response.images[0].url)
# Cost: $0.003 per image
Want to go further? Here's a full game asset generator:
# pip install nexaapi
from nexaapi import NexaAPI
import time
client = NexaAPI(api_key="YOUR_API_KEY")
DOOM_ASSET_PROMPTS = [
"retro pixel art DOOM-style demon monster, 16-bit game sprite, dark dungeon, red eyes, classic FPS game aesthetic",
"pixel art dungeon corridor, dark stone walls, torchlight, DOOM-style FPS perspective, 16-bit retro game",
"retro game sprite shotgun weapon, DOOM-style pixel art, 16-bit, classic FPS HUD element",
"pixel art boss monster, DOOM cyberdemon style, massive horns, rocket launcher arm, 16-bit retro game",
"retro pixel art health pack, DOOM-style powerup, glowing green cross, 16-bit game item",
]
print("🎮 Generating DOOM-style game assets via NexaAPI...")
print(f"Total assets: {len(DOOM_ASSET_PROMPTS)}")
print(f"Estimated cost: ${len(DOOM_ASSET_PROMPTS) * 0.003:.3f}\n")
for i, prompt in enumerate(DOOM_ASSET_PROMPTS, 1):
response = client.images.generate(
model="flux",
prompt=prompt,
width=512,
height=512,
num_images=1
)
asset_url = response.images[0].url
print(f"Asset {i}/{len(DOOM_ASSET_PROMPTS)}: {asset_url}")
time.sleep(0.5) # Rate limiting
print(f"\n✅ Done! Total cost: ${len(DOOM_ASSET_PROMPTS) * 0.003:.3f}")
print("DOOM runs everywhere. Your game art generator does too.")
JavaScript Tutorial: Same Pipeline in Node.js
// npm install nexaapi
import NexaAPI from 'nexaapi';
const client = new NexaAPI({ apiKey: 'YOUR_API_KEY' });
// Generate DOOM-style retro game assets
const response = await client.images.generate({
model: 'flux',
prompt: 'retro pixel art DOOM-style demon monster, 16-bit game sprite, dark dungeon, red eyes, classic FPS game aesthetic',
width: 512,
height: 512,
numImages: 1
});
console.log(response.images[0].url);
// Cost: $0.003 per image
Full asset pipeline in JavaScript:
// npm install nexaapi
import NexaAPI from 'nexaapi';
const client = new NexaAPI({ apiKey: 'YOUR_API_KEY' });
const DOOM_ASSETS = [
'retro pixel art DOOM-style demon monster, 16-bit game sprite, dark dungeon',
'pixel art dungeon corridor, DOOM-style FPS perspective, 16-bit retro game',
'retro game sprite shotgun weapon, DOOM-style pixel art, 16-bit HUD element',
];
async function generateDoomAssets() {
console.log('🎮 Generating DOOM-style game assets...');
const results = await Promise.all(
DOOM_ASSETS.map(async (prompt, i) => {
const response = await client.images.generate({
model: 'flux',
prompt,
width: 512,
height: 512,
numImages: 1
});
console.log(`Asset ${i + 1}: ${response.images[0].url}`);
return response.images[0].url;
})
);
console.log(`\n✅ Generated ${results.length} assets`);
console.log(`💰 Total cost: $${(results.length * 0.003).toFixed(3)}`);
return results;
}
generateDoomAssets();
Use Cases: Where This Actually Matters
🎮 Indie Game Development
Game jams move fast. You need assets NOW. At $0.003/image, you can generate 333 unique sprites for $1.00. That's your entire game's art budget for the price of a coffee.
🎲 Procedural Content Generation
Generate dungeon rooms, enemy variants, weapon skins, and environmental textures on-the-fly. Every playthrough looks different.
🕹️ Retro Aesthetic Projects
Building something with that classic 80s/90s game feel? NexaAPI's image models excel at pixel art, sprite sheets, and retro aesthetics.
🛠️ Rapid Prototyping
Stop using placeholder art. Generate real-looking assets during prototyping so your demo actually looks like a game.
Pricing: Why This Matters When Your Agent Loops 1,000 Times
| Operation | Quantity | Cost with NexaAPI |
|---|---|---|
| Game sprite generation | 100 sprites | $0.30 |
| Dungeon map generation | 50 maps | $0.15 |
| Full game asset pack | 500 images | $1.50 |
| Procedural generation loop | 1,000 calls | $3.00 |
NexaAPI is the cheapest AI inference API on the market — critical when your game generates assets dynamically or your pipeline runs thousands of calls per day.
Compare that to DALL-E 3 at $0.04/image (13x more expensive) or Midjourney subscriptions at $10-30/month with usage caps.
Get Started
- Sign up free: nexa-api.com
- Or via RapidAPI: rapidapi.com/user/nexaquency
-
Python SDK:
pip install nexaapi| PyPI -
Node.js SDK:
npm install nexaapi| npm
The DOOM Tradition Lives On
The DOOM Over DNS project is a love letter to hacker culture — the idea that any sufficiently determined developer can make anything run on anything. DNS TXT records weren't designed for this. They were designed to store text. And yet here we are.
The spirit is the same with AI image generation: these models weren't designed to generate retro game sprites. They were designed to generate images. And yet here we are, making DOOM-style pixel art for $0.003 each.
It was always DNS. And now it's always NexaAPI.
Source: DOOM Over DNS GitHub | HackerNews Discussion
NexaAPI: nexa-api.com | RapidAPI | Python SDK | Node SDK
Top comments (0)