Files
2026-11-18 15:18:38 +01:00

192 lines
15 KiB
Python

"""Robot Clash - what generate.py creates.
PROMPTS = [(name, positive)] or [(name, positive, negative)]
SIZES = {name: (width, height)} optional, otherwise the workflow size (1024x1024)
Sprites: always "plain solid black background" (adopt.py keys it out).
Scenes (bg_*): full pictures, taken over with adopt_scene.py (no cutout).
Own designs only - no characters, robots or arenas from existing games or TV shows.
"""
_STYLE = (
"isometric 3/4 view game sprite, chunky handmade combat robot part, scratched painted steel, "
"bolts and hazard stripes, bold clean shapes, soft studio lighting, high detail, "
"centred single subject, plain solid black background"
)
_ROBOT = (
"isometric 3/4 view game portrait of a chunky handmade arena battle robot, very low flat armoured steel shell hugging the ground, "
"wheels mostly hidden under the armour, NOT a car, NOT a truck, no cab, no windows, no bumpers, no headlights, no arms, no legs, not humanoid, "
"scratched painted steel, bolts, dramatic rim light, high detail, centred single subject, plain solid black background"
)
_ICON = "flat game UI icon, bold simple silhouette, thick clean outline, metallic shading, centred single subject, plain solid black background"
_SCENE = "digital painting, cinematic lighting, high detail, dark industrial mood, orange and steel blue colour palette, no text, no people"
PROMPTS = [
# app icon
("icon", "game app icon: a low flat wedge-shaped battle robot shaped like a steel doorstop on hidden wheels, seen from the front at an angle, "
"huge raised front flipper plate, two glowing orange eye lights in the armour, orange and black hazard paint, sparks flying, "
"bold simple silhouette, centred, plain solid black background"),
# scenes (not cut out)
("bg_workshop", f"interior of a cluttered robot workshop garage at night, workbenches with tools, welding sparks, "
f"hanging chains, shelves with motors and batteries, orange work lamps, empty floor in the middle, {_SCENE}"),
("bg_title", f"huge indoor robot combat arena seen from high above at an angle, steel floor plates, spiked walls, "
f"floodlights cutting through haze, dark crowded stands, a glowing pit in the floor, {_SCENE}"),
("bg_start", f"dramatic hero shot of two chunky handmade combat robots facing off in a floodlit industrial "
f"night arena, sparks and haze, scratched painted steel with orange hazard stripes, low camera angle, "
f"empty dark sky above for a title, {_SCENE}"),
("bg_win", f"robot combat arena celebration, golden confetti and showers of sparks under floodlights, {_SCENE}"),
("bg_lose", f"smoking wrecked robot parts and scattered bolts on a steel arena floor, drifting smoke, dim red light, {_SCENE}"),
# slot category icons
("slot_chassis", f"empty welded steel robot chassis frame, {_ICON}"),
("slot_motor", f"electric motor with copper windings and drive shaft, {_ICON}"),
("slot_wheels", f"chunky rubber robot wheel with steel hub, {_ICON}"),
("slot_battery", f"heavy robot battery pack with lightning symbol, {_ICON}"),
("slot_armour", f"riveted steel armour plate shaped like a shield, {_ICON}"),
("slot_weapon", f"crossed axe and circular saw blade, {_ICON}"),
("slot_tower", f"small rotating gun turret on a round base, {_ICON}"),
# UI icons
("ico_credits", f"gold coin with a bolt stamped on it, {_ICON}"),
("ico_fame", f"golden star trophy, {_ICON}"),
("ico_weight", f"iron weight with handle, {_ICON}"),
("ico_power", f"yellow lightning bolt, {_ICON}"),
("ico_hp", f"red heart crossed with a wrench, {_ICON}"),
("ico_armour", f"steel shield with rivets, {_ICON}"),
("ico_speed", f"speedometer gauge with needle in the red, {_ICON}"),
# parts (ids from game/parts.js)
("part_crate", f"simple boxy steel robot chassis, plain welded box with bolts, {_STYLE}"),
("part_doorstop", f"low flat wedge-shaped robot chassis, sloped front, {_STYLE}"),
("part_bulwark", f"large heavy reinforced robot chassis frame with thick beams, {_STYLE}"),
("part_scarab", f"robot chassis with a rounded beetle-like dome shell, {_STYLE}"),
("part_sparky", f"small cheap electric motor with a few wires, {_STYLE}"),
("part_hornet", f"sleek electric motor with yellow and black cooling fins, {_STYLE}"),
("part_bulldog", f"massive high torque gear motor with big gearbox, {_STYLE}"),
("part_comet", f"high speed racing electric motor with glowing blue cooling ring, {_STYLE}"),
("part_rubber", f"set of four small rubber robot wheels, {_STYLE}"),
("part_bigtyre", f"pair of huge chunky off-road tyres for a robot, {_STYLE}"),
("part_tracks", f"pair of heavy tank crawler tracks, {_STYLE}"),
("part_lead", f"heavy old lead acid battery block with terminals, {_STYLE}"),
("part_nicd", f"pack of green nickel cadmium battery cells taped together, {_STYLE}"),
("part_lipo", f"slim modern lithium battery stack with glowing charge lights, {_STYLE}"),
("part_steel", f"set of plain grey riveted steel armour plates, {_STYLE}"),
("part_titan", f"set of light blue-grey titanium armour panels, {_STYLE}"),
("part_hardox", f"set of thick yellowish hardened wear plates with heavy bolts, {_STYLE}"),
("part_wedge", f"angled steel ramming wedge plate, {_STYLE}"),
("part_flipper", f"pneumatic flipper arm, flat steel plate on a hinge with a piston, {_STYLE}"),
("part_hammer", f"robot weapon: heavy axe head on a long steel arm with pivot, {_STYLE}"),
("part_saw", f"robot weapon: large circular saw blade on a motor mount, {_STYLE}"),
("part_crusher", f"robot weapon: hydraulic crushing jaws with sharp teeth, {_STYLE}"),
("part_spinner", f"robot weapon: heavy horizontal spinning steel bar with hardened teeth, {_STYLE}"),
("part_flamer", f"robot flamethrower nozzle with red fuel tank, small flame at the tip, {_STYLE}"),
("part_minigun", f"robot turret minigun with four rotating barrels, {_STYLE}"),
("part_rockets", f"robot turret rocket pod with four tubes, {_STYLE}"),
# league opponents (paint matches game/ai.js)
("opp_rustbucket", f"rusty brown boxy robot with a simple ramming wedge, patched with scrap, {_ROBOT}"),
("opp_tintoad", f"green low wedge robot shaped like a flat toad, {_ROBOT}"),
("opp_buzzkill", f"yellow and black striped robot with a big front circular saw, {_ROBOT}"),
("opp_flapjack", f"blue and white low robot with a huge flipper plate and big tyres, {_ROBOT}"),
("opp_pincer", f"red and gold heavy robot on tank tracks with hydraulic crushing jaws, {_ROBOT}"),
("opp_thunderclap", f"purple low flat armoured box robot on four wheels with a long axe arm hinged on top lying along its back and a small flamethrower nozzle turret, {_ROBOT}"),
("opp_gravedigger", f"black domed robot with green lights, tank tracks and a rocket pod turret, {_ROBOT}"),
("opp_overlord", f"menacing black and red round dome shell robot like an upturned wok on hidden wheels, long horizontal spinning steel bar across the front at floor height, {_ROBOT}"),
# league opponents - lightweight (<=60 kg: small, quick)
("opp_tinflea", f"tiny grey open-frame robot with a small ramming wedge, yellow accents, {_ROBOT}"),
("opp_sparrow", f"small teal and white low robot with a long thin ramming spike on the front, {_ROBOT}"),
("opp_needle", f"small red and black robot with a spinning circular saw up front, wire mesh armour, {_ROBOT}"),
("opp_jackrabbit", f"green and yellow low robot with a wide front lifting scoop and big tyres, {_ROBOT}"),
("opp_switchblade", f"purple and white six-sided hexagon robot with an angled ramming wedge, {_ROBOT}"),
("opp_wasp", f"yellow and black arrow-shaped pointed robot with a long ramming spike, {_ROBOT}"),
("opp_firefly", f"orange low robot with a front saw and a small flame nozzle turret, {_ROBOT}"),
("opp_pinpoint", f"dark blue arrow-shaped robot with a heavy spiked mace on a swinging arm, {_ROBOT}"),
# league opponents - heavyweight (<=130 kg: big, armoured)
("opp_bulldozer", f"big yellow and black heavy robot on tank tracks with a wide ramming blade, thick steel armour, {_ROBOT}"),
("opp_anvil", f"heavy grey robot with a big angled plough blade on the nose and studded tyres, {_ROBOT}"),
("opp_boilerplate", f"heavy robot built from a rolled steel drum body with spiked armour and a hammer arm, {_ROBOT}"),
("opp_grinder", f"wide flat dark disc-shaped heavy robot with a horizontal spinning drum, green lights, {_ROBOT}"),
("opp_juggernaut", f"massive red and gold heavy robot on tank tracks with hydraulic crushing jaws, hardened armour, {_ROBOT}"),
("opp_warhound", f"purple heavy robot with a plough nose, spiked mace arm and a flame nozzle turret, {_ROBOT}"),
("opp_colossus", f"huge black and blue domed heavy robot on tracks with a big spinning bar and an electric arc turret, {_ROBOT}"),
("opp_doomsday", f"menacing black and red heavy robot with a big vertical spinning disc and a rocket pod, {_ROBOT}"),
# shop mechanic (original character)
("npc_mechanic", "game character portrait, gruff middle-aged robot mechanic with welding goggles pushed up on the forehead, "
"grey stubble, grease on the cheek, dark overalls with an orange stripe, friendly grin, holding a wrench, "
"head and shoulders, stylised digital painting, rim light, plain solid black background"),
# arena textures (make_tileable)
("tex_floor", "seamless top-down texture of riveted dark steel floor plates, scratches, oil stains, scuff marks, "
"even lighting, no perspective, no shadows"),
("tex_wall", "seamless texture of dark painted steel wall panel with rivets and yellow black hazard stripe band, "
"even lighting, front view, no perspective"),
("part_mines", f"robot gadget: stack of flat round steel land mines with yellow warning rings and a red lamp, {_STYLE}"),
# --- stronger batteries ---
("part_liion", f"chunky lithium ion battery brick with thick power cables and a charge gauge, {_STYLE}"),
("part_supercap", f"bank of large supercapacitors wired in a row on a steel frame, glowing blue, {_STYLE}"),
# --- new towers ---
("part_zapper", f"robot turret: electric arc emitter with copper coils and crackling blue spark, {_STYLE}"),
("part_mortar", f"robot turret: short stubby mortar tube angled upwards on a base plate, {_STYLE}"),
("part_swarm", f"robot turret: boxy rocket pod with nine small launch tubes in a grid, {_STYLE}"),
# --- new armour ---
("part_mesh", f"set of thin steel wire mesh grille panels for a robot, {_STYLE}"),
("part_buffer", f"set of fat black rubber buffer blocks and bumpers for a robot, {_STYLE}"),
("part_spiked", f"set of steel armour plates covered in short sharp spikes, {_STYLE}"),
("part_ceramic", f"set of pale ceramic armour tiles in a grid, chipped edges, {_STYLE}"),
# --- new chassis ---
("part_cage", f"open welded tube frame robot chassis, bare scrap metal cage, no panels, {_STYLE}"),
("part_hexpod", f"six-sided hexagonal robot chassis shell with angled sloping sides, {_STYLE}"),
("part_boiler", f"robot chassis made from a rolled steel drum lying on its side, riveted bands, {_STYLE}"),
("part_fang", f"long low arrow-shaped robot chassis with a sharp pointed prow, {_STYLE}"),
("part_plough", f"robot chassis with a big angled snowplough blade bolted across the nose, {_STYLE}"),
("part_discus", f"wide flat round disc-shaped robot chassis, very low, {_STYLE}"),
# --- new wheels ---
("part_omni", f"set of small omni-directional caster wheels with rollers and steel forks, {_STYLE}"),
("part_studs", f"pair of chunky studded off-road robot tyres with metal spikes, {_STYLE}"),
("part_drumwh", f"single wide steel roller drum wheel with a hub, {_STYLE}"),
("part_hover", f"robot hover skirt, a flat plate over a glowing orange air cushion ring, {_STYLE}"),
# --- new weapons ---
("part_lance", f"long pointed steel ramming lance spike on a front mount, {_STYLE}"),
("part_drill", f"robot weapon: large conical spinning auger drill bit with spiral flutes, {_STYLE}"),
("part_mace", f"robot weapon: heavy spiked steel ball mace on a swinging arm, {_STYLE}"),
("part_launcher", f"robot weapon: huge curved scoop launcher plate on a hinge, {_STYLE}"),
("part_drum", f"robot weapon: thick horizontal spinning drum rotor with hardened teeth, {_STYLE}"),
("part_lifter", f"robot weapon: wide two-prong lifting scoop on a hinge, {_STYLE}"),
("part_vdisc", f"robot weapon: large upright vertical spinning disc with four cutting teeth, {_STYLE}"),
# --- gadgets ---
("part_righter", f"robot gadget: pop-out self-righting lever arm device, {_STYLE}"),
("part_turbo", f"robot gadget: nitro boost canister with orange flame jets, {_STYLE}"),
("part_shield", f"robot gadget: glowing blue energy deflector field emitter dish, {_STYLE}"),
("part_repair", f"robot gadget: repair kit toolbox with a red cross and a wrench, {_STYLE}"),
("part_emp", f"robot gadget: EMP burst coil emitter crackling with blue electricity, {_STYLE}"),
("slot_gadget", f"robot utility gadget module, {_ICON}"),
# --- new motors (Plan 8) ---
("part_pico", f"tiny cheap miniature electric motor with a single thin wire, very small, {_STYLE}"),
("part_turbine", f"compact turbine electric motor with a round finned housing and a small air intake, {_STYLE}"),
("part_titandrive", f"massive heavy-duty industrial gear drive motor with a huge riveted steel gearbox, {_STYLE}"),
# --- new chassis (Plan 8) ---
("part_orb", f"robot chassis shaped like a smooth round armoured steel sphere ball, {_STYLE}"),
("part_tower", f"tall upright narrow boxy robot chassis with a high vertical body, {_STYLE}"),
("part_slab", f"very wide flat low slab robot chassis, a broad thin armoured plate body, {_STYLE}"),
# --- title logo (wide lettering) + text-free emblem fallback ---
("logo", "game logo lettering that reads exactly 'ROBOT CLASH', two words on two lines, bold industrial "
"block capitals cut from brushed scratched steel, thick bevelled edges, orange rim glow, small "
"yellow and black hazard stripe accents, a few sparks, centred, plain solid black background, "
"no extra words, no frame, no border"),
("logo_emblem", "game logo emblem without any text: a crossed wrench and circular saw blade behind a low "
"flat wedge-shaped battle robot head with two glowing orange eyes, inside a worn steel "
"badge with hazard stripes, bold simple silhouette, centred single subject, "
"plain solid black background"),
]
SIZES = {
"logo": (1344, 576), "logo_emblem": (1024, 1024),
"bg_workshop": (1536, 864), "bg_title": (1536, 864), "bg_win": (1536, 864), "bg_lose": (1536, 864),
"npc_mechanic": (832, 1024),
}