Skip to Content
 

Software for game design - nanDECK 1.6

8 replies [Last post]
nand
nand's picture
Offline
Joined: 07/27/2008

Well, it's time for a new release! These are the improvements:

- New MARGINS directive for page's margins
- New GAP directive for inserting space between cards
- Transparent flag for FONT directive
- Parameter for inner color in RECTANGLE, ELLIPSE and TRIANGLE directives
- Parameter for empty shape in RECTANGLE, ELLIPSE and TRIANGLE directives
- Multi-line commands, using { and }
- Evaluate expression in text, using { and }
- Card number in text expression, using §
- Test for free disk space before building deck
- Fixed bug in page orientation
- Fixed bug in transparent images

Maybe tomorrow I'll post some example for the more obscure features...

nand
nand's picture
Offline
Joined: 07/27/2008
Re: Software for game design - nanDECK 1.6

nand wrote:

- Transparent flag for FONT directive

An example with transparent background for text (for a shadow effect):

FONT=arial,28,"B","#808080"
TEXT="2-4","WEREWOLF",0.1,3.1,6,3,"center"
FONT=arial,28,"BT","#FF0000"
TEXT="2-4","WEREWOLF",0,3,6,3,"center"

The first TEXT is a bit on the left and down (0.1 cm), the second FONT has a "T" flag for transparent background.

nand wrote:

- Multi-line commands, using { and }

Useful for writing long text sequences (or other commands) on multiple lines:

{TEXT="1-10",
"alpha|
bravo|
charlie|
delta|
echo",
0,0,6,9,"center","center"}

nand wrote:

- Evaluate expression in text, using { and }

Not very useful (see below):

TEXT="1-10","{1+1}",0,0,6,9,"center","center"

Prints a "2" on all cards.

nand wrote:

- Card number in text expression, using §

More useful:

TEXT="1-10","Player {§}",0,0,6,9,"center","center"

Prints "Player 1" on 1st card, "Player 2" on 2nd card, and so on...

Carlos
Offline
Joined: 08/01/2009
Software for game design - nanDECK 1.6

Thanks again, Nand! There is a dearth of good card-making programs available, and this is easily the best: but now you're doing the kind of work to KEEP it the best for a long time to come.

And seriously folks, try it out if you haven't already.

Zzzzz
Zzzzz's picture
Offline
Joined: 06/20/2008
Software for game design - nanDECK 1.6

Not sure if there would be amy limitation (depending on how you coded this application), but if you ever want someone to port this for the MacIntel (or Mac) platform let me know. I can take a look at it and port it if you like.

clapjaws
Offline
Joined: 12/31/1969
Software for game design - nanDECK 1.6

I've been meaning to look into this - and thanks for providing such a program Nand. But, being a bit programming-challenged, I've been a little intimidated. Is there a 'how-to'/readme type of file somewhere for noobs like me?

Ska_baron
Ska_baron's picture
Offline
Joined: 08/02/2008
Software for game design - nanDECK 1.6

*clamors right up behind CJ and violently waves a hand*

Me too! Just looking at the conversation it has generated boggles my mind a bit =)

Stony
Offline
Joined: 06/24/2010
Software for game design - nanDECK 1.6

Just download it and try it. There are only two files in the zip-file you download. One is the program itself, and the other one is a help-file. You can see examples of how to on each parameter. Start out simple and work your way up to use the other parameters. It doesn't get much simpler than this. :)

nand
nand's picture
Offline
Joined: 07/27/2008
Software for game design - nanDECK 1.6

Version 1.6a is available, some small improvements:

- "New" button for creating new scripts
- Symbol picker in Editor
- Option to build only a range of cards
- Evaluate expression in in images' filename, using { and }
- Card number in images' filename, using §

Do you have some ideas for an example deck I can put on the website?

nand
nand's picture
Offline
Joined: 07/27/2008
Software for game design - nanDECK 1.6

Ahem, once you start, it's hard to stop. :-)
Version 1.6b it's on-line, with three improvements:

- New PATTERN directive for repeating images on cards
- Cancel button to stop deck building
- Option to save cards' images in jpg format

PATTERN command is a bit complex, so there is an example: it's useful when you have to put some repeated images on cards (like the dots for Pico2 or the bullshead for 6nimmt!).

PATTERN = "1-10" -> the range of cards
, "dot_blue.gif" -> the image to be printed
, 3 -> the number of image
, 1, 1 -> coordinates of the destination rectangle
, 3, 2 -> width/height of the destination rectangle
, 1, 1 -> widht/height of the single image
, 0 -> image rotation
, "" -> image flags (like transparency)
, "center", "top" -> horizontal and vertical alignment

With PATTERN, a script for Pico2 looks like this:

---
CARDS=11
BORDER="RECTANGLE"
font="Arial",96,"B","#0000FF"
text="1-11","4|5|6|7|8|9|10|11|12|13|16", 1,1,4,7, "center","center"
pattern="1","dot_blue.gif",1,0,0,6,2,1,1,0,"","center","top"
pattern="2-4","dot_blue.gif",2,0,0,6,2,1,1,0,"","center","top"
pattern="5-10","dot_blue.gif",3,0,0,6,2,1,1,0,"","center","top"
pattern="11","dot_blue.gif",4,0,0,6,2,1,1,0,"","center","top"
---

You need also the file dot_blue.gif, you can download it here:
http://www.nand.it/nandeck/dot_blue.gif

P.S.: Someone can translate this? (it's finnish):
http://www.lautapeliseura.fi/foorumi/viewtopic.php?t=1163&start=43

Syndicate content


forum | by Dr. Radut