Minor code move

Move animation based state data together and add comments
This commit is contained in:
Jonas Kulla 2013-10-09 11:52:39 +02:00
parent 6a4fd804a7
commit ba304feb54
1 changed files with 12 additions and 10 deletions

View File

@ -179,6 +179,18 @@ static const Position positions[] =
static elementsN(positions); static elementsN(positions);
/* Autotile animation */
static const uint8_t atAnimation[16*4] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
};
static elementsN(atAnimation);
/* Flash tiles pulsing opacity */
static const uint8_t flashAlpha[] = static const uint8_t flashAlpha[] =
{ {
/* Fade in */ /* Fade in */
@ -1220,16 +1232,6 @@ Tilemap::~Tilemap()
dispose(); dispose();
} }
static const uchar atAnimation[16*4] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
};
static elementsN(atAnimation);
void Tilemap::update() void Tilemap::update()
{ {
if (!p->tilemapReady) if (!p->tilemapReady)