Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset='utf-8'>
  5. <meta http-equiv="X-UA-Compatible" content="chrome=1">
  6. <meta name="description" content="Rpg-cards : RPG spell/item/monster card generator">
  7. <link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
  8. <title>Rpg-cards</title>
  9. </head>
  10. <body>
  11. <!-- HEADER -->
  12. <div id="header_wrap" class="outer">
  13. <header class="inner">
  14. <a id="forkme_banner" href="https://github.com/crobi/rpg-cards">View on GitHub</a>
  15. <h1 id="project_title">Rpg-cards</h1>
  16. <h2 id="project_tagline">RPG spell/item/monster card generator</h2>
  17. <section id="downloads">
  18. <a class="zip_download_link" href="https://github.com/crobi/rpg-cards/zipball/master">Download this project as a .zip file</a>
  19. <a class="tar_download_link" href="https://github.com/crobi/rpg-cards/tarball/master">Download this project as a tar.gz file</a>
  20. </section>
  21. </header>
  22. </div>
  23. <!-- MAIN CONTENT -->
  24. <div id="main_content_wrap" class="outer">
  25. <section id="main_content" class="inner">
  26. <h3>
  27. <a name="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages"><span class="octicon octicon-link"></span></a>
  28. What it does
  29. </h3>
  30. <p>
  31. This project generates cards for spells, items, or monsters for RPG games.
  32. The cards are packed on an A4 page such that you can print it double sided and
  33. get cards with a front and back.
  34. Here's an example of what you can create:
  35. </p>
  36. <div align="center">
  37. <img src="images/front.png">
  38. <img src="images/back.png">
  39. </div>
  40. <p>
  41. You can define the content of the cards yourself using simple JSON data. The above example was generated by this:
  42. </p>
  43. <pre><code>{
  44. "count": 1,
  45. "color": "dimgray",
  46. "title": "Full Plate",
  47. "icon": "custom-armor-heavy",
  48. "contents": [
  49. "subtitle | Heavy armor (1500gp)",
  50. "rule",
  51. "property | AC | 18",
  52. "property | Strength required | 15",
  53. "property | Stealth | Disadvantage",
  54. "rule",
  55. "fill-2",
  56. "description | Heavy | Your speed is reduced by 10 feet.",
  57. "description | Stealth | You have disadvantage on Stealth.",
  58. "fill-3"
  59. ]
  60. }
  61. </code></pre>
  62. <h3>
  63. <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
  64. Live demo
  65. </h3>
  66. <p>
  67. <a href="generator/generator.htm">Try it out yourself</a>
  68. </p>
  69. <h2>Documentation</h2>
  70. This is not a complete documentation, but some information that should help you get started.
  71. <h3>
  72. <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
  73. Card JSON data
  74. </h3>
  75. <p>
  76. <ul>
  77. <li>
  78. <strong>count</strong>
  79. The number of times this card is repeated. Useful for consumable items that you hand out multiple times.
  80. </li>
  81. <li>
  82. <strong>color</strong>
  83. Name of the card color. You can use all <a href="http://www.w3schools.com/cssref/css_colornames.asp">CSS color names</a>.
  84. Additional custom colors are defined in <i>css/custom-colors.css</i>.
  85. </li>
  86. <li>
  87. <strong>icon</strong>
  88. Name of the card icon. You can use all icons from <a href="http://game-icons.net/">game-icons.net</a>.
  89. For example, the file name of <a href="http://game-icons.net/lorc/originals/plain-dagger.html">this dagger</a>
  90. is "plain-dagger.png", so you would use "plain-dagger" as the icon name.
  91. Additional custom icon names are defined in <i>css/custom-icons.css</i>.
  92. </li>
  93. <li>
  94. <strong>back_icon</strong>
  95. Optional. Name of the big icon on the card back. If not specified, the icon from the "icon" property is used.
  96. </li>
  97. <li>
  98. <strong>title</strong>
  99. The title of the card.
  100. </li>
  101. <li>
  102. <strong>contents</strong>
  103. An array of strings, specifying all card elements, in top to bottom order (see below).
  104. </li>
  105. </ul>
  106. </p>
  107. <h3>
  108. <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
  109. Card elements
  110. </h3>
  111. <p>
  112. Each card element is a string of the following format:
  113. <pre>element | param1 | param2</pre><br />
  114. The following elements are available:
  115. <ul>
  116. <li>
  117. <strong>subtitle</strong>
  118. Slightly larger italic text.
  119. Param1: the subtitle text.
  120. </li>
  121. <li>
  122. <strong>rule</strong>
  123. A horizontal rule.
  124. </li>
  125. <li>
  126. <strong>property</strong>
  127. A property line. The property description is indented if it spans more than one line.
  128. Param1: the property name (in bold).
  129. Param2: the property description.
  130. </li>
  131. <li>
  132. <strong>description</strong>
  133. Same as <i>property</i>, but text is not indented.
  134. </li>
  135. <li>
  136. <strong>text</strong>
  137. A simple paragraph of text.
  138. Param1: the text.
  139. </li>
  140. <li>
  141. <strong>subsection</strong>
  142. A subsection header, with a horizontal rule below the subsection name.
  143. Param1: the subsection name
  144. </li>
  145. <li>
  146. <strong>fill-1</strong>
  147. A dynamically resized empty element that takes up 1 unit of unused space on the card.
  148. You can use this to vertically center text by adding one of these before and after the text you want to center.
  149. </li>
  150. <li>
  151. <strong>fill-2</strong>
  152. Same as <i>fill-1</i>, but takes up 2 units of unused space - these elements will therefore be larger than any <i>fill-1</i> element.
  153. </li>
  154. </ul>
  155. </p>
  156. <h2>FAQ</h2>
  157. <h3>
  158. <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
  159. Is there a user interface for defining the cards?
  160. </h3>
  161. <p>
  162. No, at this point, you need to be able to understand and edit JSON data to define the cards.
  163. </p>
  164. <h3>
  165. <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
  166. Why is there no user interface for defining the cards?
  167. </h3>
  168. <p>
  169. I don't know how to create nice user interfaces, and a text-based input works just fine for me.
  170. You are welcome to contribute to this project though if you feel it should have a graphical UI.
  171. </p>
  172. <h3>
  173. <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
  174. Can I change the layout of the cards?
  175. </h3>
  176. <p>
  177. You'll need to edit the CSS and Javascript files to change the layout at this point.
  178. I might add some customization options later on.
  179. </p>
  180. </section>
  181. </div>
  182. <!-- FOOTER -->
  183. <div id="footer_wrap" class="outer">
  184. <footer class="inner">
  185. <p class="copyright">Rpg-cards maintained by <a href="https://github.com/crobi">crobi</a></p>
  186. <p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
  187. </footer>
  188. </div>
  189. </body>
  190. </html>