[TW5] Need input on Interaction Matrix Functionality

110 views
Skip to first unread message

Remi van Loenen

unread,
Nov 1, 2015, 11:18:54 AM11/1/15
to TiddlyWiki
Hi all!

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):
As an example I added this picture, an IM for PONG:

As you can see 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.
Can anyone give me any pointers on where to look to make me be able to create this functionality?

Thanks, in high regards,

Remi

Felix Küppers

unread,
Nov 1, 2015, 12:01:56 PM11/1/15
to TiddlyWiki
Hi Remi

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.

Not sure if it suits your case, but you can use TiddlyMap (http://tiddlymap.org) to describe the relationships between tiddlers. You can also use "magic edge types" if you want to store relationships as field values, but this means that you lose information when you rename tiddlers…

-Felix

Eric Shulman

unread,
Nov 1, 2015, 2:19:29 PM11/1/15
to TiddlyWiki
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"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:

Jed Carty

unread,
Nov 1, 2015, 2:23:29 PM11/1/15
to TiddlyWiki
You may be able to use the table macros I made to do what you want. They are here.

Matabele

unread,
Nov 1, 2015, 11:07:58 PM11/1/15
to TiddlyWiki
Hi Jed

Missed that -- great macros -- many thanks.

Remi van Loenen

unread,
Nov 2, 2015, 2:54:54 AM11/2/15
to tiddl...@googlegroups.com
Wow! Thanks guys. Thanks for the useful replies, going to start working on them!

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/MXQu9ah4zFg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/bb8a84e8-62cf-4286-a0cc-daf3781b526e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages