123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <!DOCTYPE html>
- <html>
-
- <head>
- <meta charset='utf-8'>
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
- <meta name="description" content="Rpg-cards : RPG spell/item/monster card generator">
-
- <link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
-
- <title>Rpg-cards</title>
- </head>
-
- <body>
-
- <!-- HEADER -->
- <div id="header_wrap" class="outer">
- <header class="inner">
- <a id="forkme_banner" href="https://github.com/crobi/rpg-cards">View on GitHub</a>
-
- <h1 id="project_title">Rpg-cards</h1>
- <h2 id="project_tagline">RPG spell/item/monster card generator</h2>
-
- <section id="downloads">
- <a class="zip_download_link" href="https://github.com/crobi/rpg-cards/zipball/master">Download this project as a .zip file</a>
- <a class="tar_download_link" href="https://github.com/crobi/rpg-cards/tarball/master">Download this project as a tar.gz file</a>
- </section>
- </header>
- </div>
-
- <!-- MAIN CONTENT -->
- <div id="main_content_wrap" class="outer">
- <section id="main_content" class="inner">
- <h3>
- <a name="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages"><span class="octicon octicon-link"></span></a>
- What it does
- </h3>
-
- <p>
- This project generates cards for spells, items, or monsters for RPG games.
- The generator is web-based and runs in your browser, there is no need to install any software.
- The cards are packed on an A4 page such that you can print it double sided and
- get cards with a front and back.
- Here's an example of what you can create:
- </p>
-
- <div align="center">
- <img src="images/front.png">
- <img src="images/back.png">
- </div>
-
- <p>
- You can define the content of the cards yourself using simple JSON data.
- The above example was generated from the data shown below.
- Don't worry if you don't want to edit the raw data - there is a simple user interface for creating the cards.
- </p>
-
- <pre><code>{
- "count": 1,
- "color": "maroon",
- "title": "Burning Hands",
- "icon": "book-cover",
- "contents": [
- "subtitle | 1st level evocation",
- "rule",
- "property | Casting time | 1 action",
- "property | Range | Self (15ft cone)",
- "property | Components | V, S",
- "rule",
- "fill | 1",
- "text | Each creature in a 15-foot cone takes <b>3d6 fire</b> damage.",
- "text | The fire ignites any flammable objects in the area.",
- "fill | 3",
- "section | At higher levels",
- "text | +1d6 damage for each slot above 1st"
- ]
- }
- </code></pre>
-
- <h3>
- <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
- Live demo
- </h3>
-
- <p>
- <a href="generator/generate.html">Try it out yourself</a>.
- 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.
- </p>
-
- <h2>Documentation</h2>
-
- This is not a complete documentation, but some information that should help you get started.
-
- <h3>
- <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
- Card JSON data
- </h3>
-
- <p>
- <ul>
- <li>
- <code>count</code>
- The number of times this card is repeated. Useful for consumable items that you hand out multiple times.
- </li>
- <li>
- <code>color</code>
- Name of the card color. You can use all <a href="http://www.w3schools.com/cssref/css_colornames.asp">CSS color names</a>.
- </li>
- <li>
- <code>icon</code>
- Name of the card icon. You can use most icons from <a href="http://game-icons.net/">game-icons.net</a>.
- For example, the file name of <a href="http://game-icons.net/lorc/originals/plain-dagger.html">this dagger</a>
- is "plain-dagger.png", so you would use "plain-dagger" as the icon name.
- Additional custom icon names are defined in <code>css/custom-icons.css</code>.
- </li>
- <li>
- <code>icon_back</code>
- Optional. Name of the big icon on the card back. If not specified, the icon from the "icon" property is used.
- </li>
- <li>
- <code>title</code>
- The title of the card.
- </li>
- <li>
- <code>contents</code>
- An array of strings, specifying all card elements, in top to bottom order (see below).
- </li>
- </ul>
- </p>
-
-
- <h3>
- <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
- Card elements
- </h3>
-
- <p>
- Each card element is a string of the following format:
- <pre>"element | param1 | param2 | ..."</pre><br />
-
- The following elements are available:
-
- <ul>
- <li>
- <code>subtitle</code>
- Slightly larger italic text.
- Param1: the subtitle text.
- </li>
- <li>
- <code>rule</code>
- A horizontal rule.
- </li>
- <li>
- <code>property</code>
- A property line. The property description is indented if it spans more than one line.
- Param1: the property name (in bold).
- Param2: the property description.
- </li>
- <li>
- <code>description</code>
- Same as <i>property</i>, but text is not indented.
- </li>
- <li>
- <code>text</code>
- A simple paragraph of text.
- Param1: the text.
- </li>
- <li>
- <code>subsection</code>
- A subsection header, with a horizontal rule below the subsection name.
- Param1: the subsection name.
- </li>
- <li>
- <code>boxes</code>
- A line full of empty boxes. Useful for items with charges and actions with limited use.
- Param1: number of boxes.
- Param2: size of a box (where 1.0 is the size of the letter 'e').
- </li>
- <li>
- <code>dndstats</code>
- A Dungeons&Dragons stat block.
- Param1: Strength score.
- Param2: Dexterity score.
- Param3: Constitution score.
- Param4: Intelligence score.
- Param5: Wisdom score.
- Param6: Charisma score.
- </li>
- <li>
- <code>fill</code>
- A dynamically resized empty element that takes up a portion of unused space on the card.
- You can use this to vertically center text by adding one of these before and after the text you want to center.
- Param1: the number of units of empty space to use.
- </li>
- <li>
- <code>bullet</code>
- A bulleted text line.
- Param1: the text
- </li>
- </ul>
- </p>
-
- <h2>FAQ</h2>
-
- <h3>
- <a name="designer-templates" class="anchor" href="#designer-templates"><span class="octicon octicon-link"></span></a>
- Can I change the layout of the cards?
- </h3>
-
- <p>
- You'll need to edit the CSS and Javascript files to change the layout at this point.
- I might add some customization options later on.
- </p>
-
- </section>
- </div>
-
- <!-- FOOTER -->
- <div id="footer_wrap" class="outer">
- <footer class="inner">
- <p class="copyright">Rpg-cards maintained by <a href="https://github.com/crobi">crobi</a></p>
- <p>Published with <a href="http://pages.github.com">GitHub Pages</a></p>
- </footer>
- </div>
-
- <!-- GOOGLE ANALYTICS -->
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-61016456-1', 'auto');
- ga('send', 'pageview');
- </script>
-
- </body>
- </html>
|