2013-09-01 14:27:21 +00:00
|
|
|
struct StaticRect { float x, y, w, h; };
|
|
|
|
|
|
|
|
extern const StaticRect autotileRects[] =
|
|
|
|
{
|
|
|
|
{ 32.5, 64.5, 15, 15 },
|
|
|
|
{ 48.5, 64.5, 15, 15 },
|
|
|
|
{ 32.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 48.5, 64.5, 15, 15 },
|
|
|
|
{ 32.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 64.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 32.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 32.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 64.5, 15, 15 },
|
|
|
|
{ 48.5, 64.5, 15, 15 },
|
|
|
|
{ 32.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 48.5, 64.5, 15, 15 },
|
|
|
|
{ 32.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 64.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 32.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 32.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 64.5, 15, 15 },
|
|
|
|
{ 48.5, 64.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 48.5, 64.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 64.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 64.5, 15, 15 },
|
|
|
|
{ 48.5, 64.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 48.5, 64.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 64.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 64.5, 15, 15 },
|
|
|
|
{ 16.5, 64.5, 15, 15 },
|
|
|
|
{ 0.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 16.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 64.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 0.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 16.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 64.5, 15, 15 },
|
|
|
|
{ 16.5, 64.5, 15, 15 },
|
|
|
|
{ 0.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 64.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 0.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 32.5, 15, 15 },
|
|
|
|
{ 48.5, 32.5, 15, 15 },
|
|
|
|
{ 32.5, 48.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 48.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 32.5, 15, 15 },
|
|
|
|
{ 48.5, 32.5, 15, 15 },
|
|
|
|
{ 32.5, 48.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 32.5, 15, 15 },
|
|
|
|
{ 48.5, 32.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 48.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 32.5, 15, 15 },
|
|
|
|
{ 48.5, 32.5, 15, 15 },
|
2014-08-07 08:24:52 +00:00
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 64.5, 15, 15 },
|
|
|
|
{ 80.5, 64.5, 15, 15 },
|
|
|
|
{ 64.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 64.5, 15, 15 },
|
|
|
|
{ 80.5, 64.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 80.5, 64.5, 15, 15 },
|
|
|
|
{ 64.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 80.5, 64.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 96.5, 15, 15 },
|
|
|
|
{ 48.5, 96.5, 15, 15 },
|
|
|
|
{ 32.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 48.5, 96.5, 15, 15 },
|
|
|
|
{ 32.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 96.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 32.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 32.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 64.5, 15, 15 },
|
|
|
|
{ 80.5, 64.5, 15, 15 },
|
|
|
|
{ 0.5, 80.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 80.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 32.5, 32.5, 15, 15 },
|
|
|
|
{ 48.5, 32.5, 15, 15 },
|
|
|
|
{ 32.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 48.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 32.5, 15, 15 },
|
|
|
|
{ 16.5, 32.5, 15, 15 },
|
|
|
|
{ 0.5, 48.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 16.5, 48.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 32.5, 15, 15 },
|
|
|
|
{ 16.5, 32.5, 15, 15 },
|
|
|
|
{ 0.5, 48.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 16.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 32.5, 15, 15 },
|
|
|
|
{ 80.5, 32.5, 15, 15 },
|
|
|
|
{ 64.5, 48.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 48.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 32.5, 15, 15 },
|
|
|
|
{ 80.5, 32.5, 15, 15 },
|
|
|
|
{ 64.5, 16.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 48.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 96.5, 15, 15 },
|
|
|
|
{ 80.5, 96.5, 15, 15 },
|
|
|
|
{ 64.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 0.5, 15, 15 },
|
|
|
|
{ 80.5, 96.5, 15, 15 },
|
|
|
|
{ 64.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 96.5, 15, 15 },
|
|
|
|
{ 16.5, 96.5, 15, 15 },
|
|
|
|
{ 0.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 16.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 96.5, 15, 15 },
|
|
|
|
{ 80.5, 0.5, 15, 15 },
|
|
|
|
{ 0.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 16.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 32.5, 15, 15 },
|
|
|
|
{ 80.5, 32.5, 15, 15 },
|
|
|
|
{ 0.5, 48.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 48.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 32.5, 15, 15 },
|
|
|
|
{ 16.5, 32.5, 15, 15 },
|
|
|
|
{ 0.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 16.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 96.5, 15, 15 },
|
|
|
|
{ 80.5, 96.5, 15, 15 },
|
|
|
|
{ 0.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 64.5, 32.5, 15, 15 },
|
|
|
|
{ 80.5, 32.5, 15, 15 },
|
|
|
|
{ 64.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 32.5, 15, 15 },
|
|
|
|
{ 80.5, 32.5, 15, 15 },
|
2014-08-07 08:24:52 +00:00
|
|
|
{ 0.5, 112.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 80.5, 112.5, 15, 15 },
|
2013-09-01 14:27:21 +00:00
|
|
|
{ 0.5, 0.5, 15, 15 },
|
|
|
|
{ 16.5, 0.5, 15, 15 },
|
2014-11-30 16:46:28 +00:00
|
|
|
{ 0.5, 16.5, 15, 15 },
|
|
|
|
{ 16.5, 16.5, 15, 15 }
|
2013-09-01 14:27:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const int autotileRectsN = sizeof(autotileRects) / sizeof(autotileRects[0]);
|