Skip to content

Instantly share code, notes, and snippets.

@deflis
Created June 8, 2010 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deflis/429601 to your computer and use it in GitHub Desktop.
Save deflis/429601 to your computer and use it in GitHub Desktop.
Game Text Markup Language でっちあげサンプル
<?xml version="1.0" encoding="UTF-8"?>
<gtml>
<!-- Game Text Markup Language でっちあげサンプル -->
<section label="start">
<command><!-- TODO:imageやnameは別途定義するファイルを用意する -->
<background image="学校" />
<character name="XNA子" align="center" image="普通" />
<character name="GTML子" align="left" image="普通" />
<music title="日常" />
</command>
<animation mode="move">
<character name="XNA子" align="right" />
</animation>
<command>
<character name="XNA子" image="赤面" />
</command>
<text name="XNA子" voice="シーン1-1">
これはサンプルテキストです。
</text>
<animation mode="trans" trans="crossfade">
<background image="校舎A" />
<character name="XNA子" image="普通" />
<character name="GTML子" image="赤面" />
</animation>
<text name="GTML子" voice="シーン1-2">
GTMLのでっちあげサンプルです。<br />
こうすれば改行されるんです。
</text>
<command>
<sound se="ぱんぱかぱーん" waitse="true" />
<character name="XNA子" image="どや顔" />
<character name="GTML子" image="普通" />
</command>
<text name="XNA子" voice="シーン1-3">
ね?<wait /><br /><!-- waitはtime=oもしくはtime属性なしの場合、ユーザー入力を待ちます。 -->
簡<wait time="1" />単<wait time="1" />で<wait time="1" />し<wait time="1" />ょ<wait time="1" />う<wait time="1" />?
</text>
</section>
</gtml>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment