andymeneely / squib

A Ruby DSL for prototyping card games.
http://squib.rocks
MIT License
918 stars 67 forks source link

Create a "squib scale" cli for layouts #240

Closed andymeneely closed 2 years ago

andymeneely commented 6 years ago

Currently one of the most painful changes you can make in a Squib project is to change card sizes. This throws off all your x-y coordinates and you end up having to redo your layout file.

So let's make that change easier, with a command-line interface called squib scale (or something) that takes in a layout file and scales it from one dimension to another.

I'm thinking this will need to be interactive like the squib make_sprue feature. You'll need to make some choices along the way.

I can picture a couple of strategies for scaling a layout file: