You are viewing a specific blog item. Click here to return to the main blog page.
Monday September 10, 2012
PythonProtoCards - Prototype Card Game Images - v1.5.01 - 9/9/12
I've now uploaded a rough version of my Open Source python library/helper code for very rapidly prototyping card game images for playtesting, PythonProtoCards.
It includes my sample "CodyCards" game and sample use of the code to generate the cards for it.
Download from: http://www.donationcoder..../Mouser/pythonprotocards/
The PythonProtoCards library provides classes and functions that are useful for rapidly prototyping *printed* card games.
The library makes it possible to programmatically create lots of cards quickly. It helps you divide up work into different steps, so that you can manually create and edit game piece data or automatically generate it programmatically, and then generate printable images for this card and piece data. The data file format is designed to be very easy for humans to edit, but also parsable by code, which can load the data, modify it, and write out newly modified files, almost like a minimalistic database. This makes it easy to programmatically modify or add to existing data files that will also be hand edited.
The focus here is on very rapid prototyping (rather than pixel-perfect laytout control) so you'll find things like functions for automatically scaling text and images to fit within specific regions, text-wrapping, etc.
By interfacing with the Python Imaging Library (PIL), the PythonProtoCards classes can quickly generate large numbers of nice looking card images, and even lay them out for printing on card template sheets.