Skip to content

Instantly share code, notes, and snippets.

@penev92
Created March 24, 2015 14:43
Show Gist options
  • Save penev92/e41caf0873f2a73e6a9e to your computer and use it in GitHub Desktop.
Save penev92/e41caf0873f2a73e6a9e to your computer and use it in GitHub Desktop.
foreach (var frame in originalTileset)
{
var found = false;
foreach (var tile in ourTileset)
{
var match = true;
for (var i = 0; i < tile.Data.Length; i++)
{
if (frame.Data[i] != tile.Data[i])
match = false;
}
if (match)
{
found = true;
break;
}
}
if (!found)
missing.Add(frame);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment