| name | super-claudio-brothers |
| description | Generate a unique themed Super Claudio Brothers platformer. Creates a custom level, colour palette, enemy look, and Claudio costume. Every run produces a different game. |
Super Claudio Brothers — Theme Generator
You generate unique themed versions of a platformer by injecting a THEME block into a template.
IMPORTANT: Do NOT read the template file. You never need to see it. Just write the theme and inject it with sed.
IMPORTANT: The template lives at ~/super-claudio-brothers/template.html. Use this path for all commands below.
Step 1: Theme Selection
Present 5 options. Option 1 is ALWAYS "Classic Claudio" — the original default theme. Options 2-5 are randomly picked from this pool (or invent your own):
Prehistoric, Deep Ocean, Outer Space, Candy Kingdom, Haunted Manor, Cyberpunk City, Wild West, Arctic Expedition, Jungle Temple, Steampunk Factory, Pirate Cove, Enchanted Forest, Retro Arcade, Samurai Garden, Volcano Core, Neon Synthwave, Ancient Egypt, Mushroom Forest, Crystal Caverns, Robot Factory
Format:
Pick a theme for your game (or type your own):
- ⛏️ Classic Claudio — the original theme (no generation, instant launch)
- 🌋 Prehistoric — dodge dino-gremlins across volcanic platforms
- 🍬 Candy Kingdom — bounce through frosting on gumdrop hills
- 🏴☠️ Pirate Cove — leap between ship decks and dodge parrot-gremlins
- 🌌 Outer Space — float between asteroid platforms
If the user picks Classic Claudio (option 1), skip generation — just copy the template directly:
cp ~/super-claudio-brothers/template.html super-claudio-brothers.html && open super-claudio-brothers.html
For any other choice, proceed to Step 2.
Wait for the user to choose before generating.
Step 2: Generate the Theme
Write ONLY this JavaScript block to claudio_theme.js:
const THEME = {
name: 'Your Theme Name',
subtitle: 'Short themed tagline',
zoneLabel: 'THEMED UNDERGROUND NAME',
palette: {
sky:'#hex', ground:'#hex', groundTop:'#hex',
cloud:'#hex', cloudText:'#hex',
brick:'#hex', brickLine:'#hex',
pipe:'#hex', pipeTrim:'#hex',
gremlin:'#hex', gremlinEye:'#hex',
ugBg:'#hex', ugGlow:'rgba(r,g,b,0.03)',
},
pitCols: [[col1,col2]],
platforms9: [[start,end], ...],
platforms7: [[start,end], ...],
qBlockCols: [col, ...],
bBlockCols: [col, ...],
tokenCols8: [col, ...],
ugPlatforms21: [[start,end], ...],
ugPlatforms24: [[start,end], ...],
overworldGremlins: [[col,row], ...],
undergroundGremlins: [[col,row], ...],
groundTokenCols: [col, ...],
decorPipes: [[col,startRow,height], ...],
drawCostume(ctx, s, w, h, big) {
},
drawBgDecor(ctx, x, y) {
ctx.fillStyle = C.cloud;
},
};
Step 3: Inject and Launch
Run this single bash command (do NOT read the template):
sed '/\/\/ THEME START/,/\/\/ THEME END/{
/\/\/ THEME START/{
p
r claudio_theme.js
}
/\/\/ THEME END/p
d
}' ~/super-claudio-brothers/template.html > super-claudio-brothers.html && open super-claudio-brothers.html
Layout Rules
- All columns range 0-149 (level is 150 cols wide)
- Avoid cols 20-21 and 62-63 (pipe locations added by engine)
- pitCols: each range is 2-3 cols wide, placed between cols 30-140
- platforms9: groups of 2-6 cols, spread across the level
- qBlockCols/bBlockCols: spread across cols 15-120, not overlapping
- overworldGremlins row is typically 11 (ground) or 8 (on row-9 platforms)
- undergroundGremlins row is typically 26 (floor) or 23 (on row-24 platforms)
- Vary the spacing and density to match theme feel
Creative Guidelines
- Palette: 13 colours evoking the theme. Sky sets the mood. Underground darker.
- Costume: Small head accessory — hat, horns, visor, crown. 3-5 canvas calls max.
- Background decor: Themed shapes replacing clouds. Simple pixel-art (fillRect, arc).
- Level feel: Theme-inspired spacing. Candy = bouncy short platforms. Space = longer floaty ones.
- Keep it compact: The entire theme block should be ~40-50 lines of JS. No more.