diachini / playtest

A simple ruby script system that lets you quickly prototype physical card games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playtest

This is a simple ruby script that generates a PDF suitable for prototyping or creating print and play versions of physical card games. Great for aspiring game designers!

The script interacts with two files:

  • A cards.css file, which is used to style the output
  • A cards.yml file, which is used to house the data about your cards

There's also a file, playtest.pdf, which is a PDF of what will be generated when you run the script using the defaulted card information in cards.yml.

You can customize the output by updating the HTML generated by the script and modifying the cards.css file to your liking.

Cards in the cards.yml file must have a name and should also have a quantity for the script to work. By default, I've also included a cost and card text section, but this can be expanded. If you do add or remove card values, they must be added to the HTML that is generated. A few examples are included so you get a sense for how this works.

This script requires the pdfkit gem to work. For this gem to work, you'll need to install wkhtmltopdf on your machine.

This script was hacked together so please forgive the quality or, better yet, submit a pull request so I can see how I can improve. :)

About

A simple ruby script system that lets you quickly prototype physical card games


Languages

Language:Ruby 85.0%Language:CSS 15.0%