Minor code move
Move animation based state data together and add comments
This commit is contained in:
		
							parent
							
								
									6a4fd804a7
								
							
						
					
					
						commit
						ba304feb54
					
				
					 1 changed files with 12 additions and 10 deletions
				
			
		| 
						 | 
					@ -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)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue