On Sunday, November 1, 2015 at 8:18:54 AM UTC-8, Remi van Loenen wrote:
I'm in the process of using tiddly for creating Game Design Documents (GDD).
In a GDD a lot of game functionality is described, and to be more useful to my programmers I usually design Interaction Matrices(IM):
interaction behaviour can be described from cross referencing the available entities.
Now, what I want to do with tiddly is to describe entities as tiddlers, but I'm not sure if there is a way to describe the interaction between entities (and thus tiddlers), I was thinking of working with field values, but that's just a vague idea at this time.
Hi Remi,
Here's a bit of wiki syntax that will generate a table that works as an Interaction Matrix:
<table style="width:100%">
<tr>
<td style="width:1%"> </td>
<$list filter="[tag[entity]sort[]]" variable="col">
<td style="width:1%"><$link to=<<col>>>''<<col>>''</$link></td>
</$list>
</tr>
<$list filter="[tag[entity]sort[]]" variable="row">
<tr>
<td style="width:1%"><$link to=<<row>>>''<<row>>''</$link></td>
<$list filter="[tag[entity]sort[]]" variable="col">
<td style="width:1%">
<$transclude tiddler=<<row>> index=<<col>>>X</$transclude>
</td>
</$list>
</tr>
</$list>
</table>
To populate the table, create tiddlers tagged with "entity". In each tiddler, set the "type" to "application/x-tiddler-dictionary" and then enter lines of text using "name: text...." format, where the name is the title of another entity tiddler, and the text is the description of the interaction with that entity. Something like this:
sidewall:
ball: when ball touches sidewall, ball bounces (reverse x-vector)
paddle: when paddle touches sidewall, paddle breaks for 5 seconds
frontwall:
ball: when ball touches frontwall, ball bounces (reverse y-vector)
paddle: when paddle touches frontwall, paddle breaks for 5 seconds
floor:
ball: when ball touches floor, ball bounces (reverse z-vector)
paddle:
ball: when ball touches paddle, ball bounces back in opposite direction
That should do it.
enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals
YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions: