Show HN: Those Who Die as Cattle What if a game gave you the backstory of everyone you killed or got killed? I feel like I've heard this question asked before, but I've never seen it done. For Ludum Dare 56 (a game jam), I spent 48 hours building a prototype called Those Who Die As Cattle, a WW1 trench warfare simulation game. I used ChatGPT 4o-mini to generate details for the 12,000 soldiers involved in the game. Notably, I had to supply names because it couldn't introduce sufficient variety. I also had to add randomly generated adjectives for the soldiers; otherwise, the prompts were too similar, even with different seeds and temperatures. Initially, I used Claude (which I usually prefer), but it made every soldier a former carpenter’s apprentice. Since this is a game and your actions should matter, instead of generating one block of text, I had it generate JSON by providing a template with cues for different things that might happen to the soldier. I used these to dynamically assemble a story for each casualty. For example: { "briefBio": "Tell me a little bit about the solider", // Putting this first is critical to introduce variety … "lastThoughtsArtilleryDead": "What are his last thoughts as he dies from an artillery strike" , … "effectOnOthersShotInjured": "What are the long term impacts on the people who care about him when he is seriously injured by a bullet wound", } The prompt template can be found here: https://ift.tt/yIOLcnD... The underlying simulation was programmed using Unity ECS (Entity Component System) and simulated, to some degree, each soldier and artillery piece. Casualties were taken in entity order, so there's some predictability regarding when each name gets added to the list, though it isn't completely deterministic. The area where I skimped the most was the UI, but the game is in a playable state if you're willing to look at the center column and figure out what the numbers mean. A final notable learning is that Unity UI toolkit (their modern, web dev like solution) performs significantly better on the web than in the native linux build, at least on the 2022 LTS version of Unity. This suggests that they may be leveraging the rendering efficiencies built into browsers. https://ift.tt/4D7OLCN October 14, 2024 at 09:32PM
Show HN: Those Who Die as Cattle https://ift.tt/FpLrz7Q
Related Articles
Show HN: Turing RK1 – 32GB RAM and AI Accelerator https://ift.tt/McI1YLyShow HN: Turing RK1 – 32GB RAM and AI Accelerator A year ago, we launc… Read More
Show HN: Formula8.ai – A formula-based approach to AI prompts https://ift.tt/JtIAyfWShow HN: Formula8.ai – A formula-based approach to AI prompts We just … Read More
Show HN: Socket web extension – free NPM supply chain protection https://ift.tt/fxHpKDUShow HN: Socket web extension – free NPM supply chain protection Hey H… Read More
Show HN: Openexus – Building blocks for the internet https://ift.tt/RiPTrKxShow HN: Openexus – Building blocks for the internet Hi HN! We ar… Read More
Show HN: San Francisco Compute – 512 H100s at <$2/hr for research and startups https://news.ycombinator.com/item?id=36933603Show HN: San Francisco Compute – 512 H100s at <$2/hr for research a… Read More
Show HN: Impel – an always-on, prompt-free AI companion for your Mac https://ift.tt/e6oXBKyShow HN: Impel – an always-on, prompt-free AI companion for your Mac h… Read More
Show HN: Pyflo – a free, interactive guide to learning Python https://ift.tt/dZX6MASShow HN: Pyflo – a free, interactive guide to learning Python TL;DR: h… Read More
Show HN: A Girl Next Door Does Not Exist (NSFW) https://ift.tt/ELgvmCaShow HN: A Girl Next Door Does Not Exist (NSFW) Warning: NSFW. I'm pos… Read More
0 Comments: