Sin descripción
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 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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 generator is web-based and runs in your browser, there is no need to install any software.
  33. The cards are packed on an A4 page such that you can print it double sided and
  34. get cards with a front and back.
  35. Here's an example of what you can create:
  36. </p>
  37. <div align="center">
  38. <img src="images/front.png">
  39. <img src="images/back.png">
  40. </div>
  41. <p>
  42. You can define the content of the cards yourself using simple JSON data.
  43. The above example was generated from the data shown below.
  44. Don't worry if you don't want to edit the raw data - there is a simple user interface for creating the cards.
  45. </p>
  46. <pre><code>{
  47. "count": 1,
  48. "color": "maroon",
  49. "title": "Burning Hands",
  50. "icon": "book-cover",
  51. "contents": [
  52. "subtitle | 1st level evocation",
  53. "rule",
  54. "property | Casting time | 1 action",
  55. "property | Range | Self (15ft cone)",
  56. "property | Components | V, S",
  57. "rule",
  58. "fill | 1",
  59. "text | Each creature in a 15-foot cone takes <b>3d6 fire</b> damage.",
  60. "text | The fire ignites any flammable objects in the area.",
  61. "fill | 3",
  62. "section | At higher levels",
  63. "text | +1d6 damage for each slot above 1st"
  64. ]
  65. }
  66. </code></pre>
  67. <h3>
  68. <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
  69. Live demo
  70. </h3>
  71. <p>
  72. <a href="generator/generate.html">Try it out yourself</a>.
  73. Press "Load sample" in the menu, then press "Generate" and have a look at the newly opened window/tab that contains all the generated cards.
  74. </p>
  75. <h2>Documentation</h2>
  76. This is not a complete documentation, but some information that should help you get started.
  77. <h3>
  78. <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
  79. Card JSON data
  80. </h3>
  81. <p>
  82. <ul>
  83. <li>
  84. <code>count</code>
  85. The number of times this card is repeated. Useful for consumable items that you hand out multiple times.
  86. </li>
  87. <li>
  88. <code>color</code>
  89. Name of the card color. You can use all <a href="http://www.w3schools.com/cssref/css_colornames.asp">CSS color names</a>.
  90. </li>
  91. <li>
  92. <code>icon</code>
  93. Name of the card icon. You can use most icons from <a href="http://game-icons.net/">game-icons.net</a>.
  94. For example, the file name of <a href="http://game-icons.net/lorc/originals/plain-dagger.html">this dagger</a>
  95. is "plain-dagger.png", so you would use "plain-dagger" as the icon name.
  96. Additional custom icon names are defined in <code>css/custom-icons.css</code>.
  97. </li>
  98. <li>
  99. <code>icon_back</code>
  100. Optional. Name of the big icon on the card back. If not specified, the icon from the "icon" property is used.
  101. </li>
  102. <li>
  103. <code>title</code>
  104. The title of the card.
  105. </li>
  106. <li>
  107. <code>contents</code>
  108. An array of strings, specifying all card elements, in top to bottom order (see below).
  109. </li>
  110. </ul>
  111. </p>
  112. <h3>
  113. <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
  114. Card elements
  115. </h3>
  116. <p>
  117. Each card element is a string of the following format:
  118. <pre>"element | param1 | param2 | ..."</pre><br />
  119. The following elements are available:
  120. <ul>
  121. <li>
  122. <code>subtitle</code>
  123. Slightly larger italic text.
  124. Param1: the subtitle text.
  125. </li>
  126. <li>
  127. <code>rule</code>
  128. A horizontal rule.
  129. </li>
  130. <li>
  131. <code>property</code>
  132. A property line. The property description is indented if it spans more than one line.
  133. Param1: the property name (in bold).
  134. Param2: the property description.
  135. </li>
  136. <li>
  137. <code>description</code>
  138. Same as <i>property</i>, but text is not indented.
  139. </li>
  140. <li>
  141. <code>text</code>
  142. A simple paragraph of text.
  143. Param1: the text.
  144. </li>
  145. <li>
  146. <code>subsection</code>
  147. A subsection header, with a horizontal rule below the subsection name.
  148. Param1: the subsection name.
  149. </li>
  150. <li>
  151. <code>boxes</code>
  152. A line full of empty boxes. Useful for items with charges and actions with limited use.
  153. Param1: number of boxes.
  154. Param2: size of a box (where 1.0 is the size of the letter 'e').
  155. </li>
  156. <li>
  157. <code>dndstats</code>
  158. A Dungeons&Dragons stat block.
  159. Param1: Strength score.
  160. Param2: Dexterity score.
  161. Param3: Constitution score.
  162. Param4: Intelligence score.
  163. Param5: Wisdom score.
  164. Param6: Charisma score.
  165. </li>
  166. <li>
  167. <code>fill</code>
  168. A dynamically resized empty element that takes up a portion of unused space on the card.
  169. You can use this to vertically center text by adding one of these before and after the text you want to center.
  170. Param1: the number of units of empty space to use.
  171. </li>
  172. <li>
  173. <code>bullet</code>
  174. A bulleted text line.
  175. Param1: the text
  176. </li>
  177. </ul>
  178. </p>
  179. <h2>FAQ</h2>
  180. <h3>
  181. <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
  182. Can I change the layout of the cards?
  183. </h3>
  184. <p>
  185. You'll need to edit the CSS and Javascript files to change the layout at this point.
  186. I might add some customization options later on.
  187. </p>
  188. </section>
  189. </div>
  190. <!-- FOOTER -->
  191. <div id="footer_wrap" class="outer">
  192. <footer class="inner">
  193. <p class="copyright">Rpg-cards maintained by <a href="https://github.com/crobi">crobi</a></p>
  194. <p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
  195. </footer>
  196. </div>
  197. <!-- GOOGLE ANALYTICS -->
  198. <script>
  199. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  200. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  201. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  202. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  203. ga('create', 'UA-61016456-1', 'auto');
  204. ga('send', 'pageview');
  205. </script>
  206. </body>
  207. </html>