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%">&nbsp;</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"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/730271ef-ddf1-4438-b661-3a28f2ffc8a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to