Mahjongg Layouts

Up until this weekend the layouts in Mahjongg where completely hard-coded. This meant that layout creators had to recompile after every change they made. Now mahjongg can load data from an external file and I’ve started moving some of the hard-coded layouts out to file as examples.

Somewhere in the middle of testing the code I came up with this screenshot:

When tiles go bad.

The layout code has failed, all the tiles are at (0, 0), but the SVG rendering is just perfect. Guess which one of these is my fault.


Posted

in

by

Tags: