02-27-2007, 12:55 PM | #1 |
I turn novels into games
Join Date: Jun 2004
Location: Scotland
Posts: 307
|
an abstract layer for designing puzzles?
This is kind of like the game writing thread, but very different. Does anyone know of any models for abstracting puzzle design?
What I mean is, I am spending far too much time in recompiling and testing and finding minor bugs in puzzles. Most of my puzzles are the straightforward "talk to" or "combine" type, but even here it can take forever to think of every possible thing the user might do, then code all the parts of even the simplest transaction, then test it and make sure it works, then discover there was some other angle I hadn't thought of. I know I could just make the game more linear, but I believe in freedom. And freedom means compelxity and complexity means bugs and bugs mean bug fixes and bug fixes mean more bugs... ... so I need a template for standard events. Something that says "these are the possible inputs, these are the possible events, and these are the possible outputs." Something that will identify exactly what elements are involved so I can debug the logic of the game in confidence, at the paper stage, without drawing some terrifyingly complex disagram with thousands of lines. Does such a template already exist? Or am I asking for the moon?
__________________
Enter The Story: Classic novels as games Last edited by Enter the Story; 02-27-2007 at 01:04 PM. Reason: removed previous edit - it wasn't as good as I thought |
02-27-2007, 01:07 PM | #2 |
Elegantly copy+pasted
Join Date: Jan 2005
Posts: 1,773
|
This is more about storytelling, but it shows how you can keep track of actions in a flow chart to avoid dead ends and such:
http://www.igda.org/writing/InteractiveStorytelling.htm To keep track of all possible interactions, I would simply use a few matrices in a spreadsheet application, and link the cells to nodes in the flowchart Inventory x Inventory for all possible item combinations Inventory x Verbs for all possible actions on the items Hotspots x Verbs for all possible actions in the world Hotspots x Inventory for all possible uses of items in the world You could color-code them to show which ones are "on the critical path" and which ones don't change the game-state. For dialog puzzles, it depends on what system you're using. Flowcharts might come in handy again. I'm not sure an all-purpose template is possible. If your design is well defined and your code is well organized, it shouldn't be too difficult to keep track of the important bits.
__________________
Please excuse me. I've got to see a man about a dog. Last edited by After a brisk nap; 02-27-2007 at 01:21 PM. |
02-28-2007, 12:00 AM | #3 | |
I turn novels into games
Join Date: Jun 2004
Location: Scotland
Posts: 307
|
Thanks for the link.
Quote:
As for flow charts, I tend to make notes on pieces of paper, then months later when those decisions become critical I can't find which envelope I scribbled on the back of. I think I may have to create a disciplined folder structure where every folder of code has an accompanying folder of diagrams. Meanwhile I've worked out a template that IN THEORY will do what I want, ensuring that all loose ends are tied up and testing takes less time. And it's quite long. But if it works it should make developing much quicker and more fun. If anyone wants I'll post it here, though it is quite long.
__________________
Enter The Story: Classic novels as games Last edited by Enter the Story; 02-28-2007 at 12:04 AM. Reason: aded a bit about size |
|
02-28-2007, 03:33 AM | #4 |
Kung Fu Code Poet
Join Date: Mar 2006
Location: South Africa
Posts: 701
|
What works for me with the game we are doing is to keep all that flow logic in a data file separate from the game code and then just parsing the data. Can email you a sample but ours might be too simple for what you need to do.
__________________
http://www.screwylightbulb.com/ |
02-28-2007, 10:06 AM | #5 | |
I turn novels into games
Join Date: Jun 2004
Location: Scotland
Posts: 307
|
Quote:
My current plan is to do something similar. Most events will be defined in a standard way and fill a peudo-database. Then whenever a room is entered or a conversation is started, a "puzzle" function simply interrogates the database to to see if any boxes can be ticked. Even if my game is different from yours, I would certainly benefit from your greater experience. Thanks.
__________________
Enter The Story: Classic novels as games |
|
|