void MapState::OnEnterState(SDL_Surface *screen) {
camera.Resize(screen->w, screen->h);
+ tileAnimation = GraphicsTimers().StartInterval(512);
LoadMap(map);
}
SDL_FillRect(screen, 0, SDL_MapRGB(screen->format, 0, 0, 0));
Vector<int> offset(camera.CalculateOffset());
- map->Render(screen, offset);
+ map->Render(screen, offset, tileAnimation.Iteration());
if (debug) {
map->RenderDebug(screen, offset);