Revised TileSheet & TileSheetManager

This commit is contained in:
Kayne Ruse
2013-10-22 19:18:35 +11:00
parent 0b4e6003d6
commit 2ec307510d
4 changed files with 14 additions and 2 deletions
+4
View File
@@ -33,6 +33,10 @@ SDL_Surface* TileSheet::LoadSurface(std::string fname, Uint16 w, Uint16 h) {
xCount = image.GetSurface()->w / w;
yCount = image.GetSurface()->h / h;
totalCount = xCount * yCount;
//set begin & end (usually temporary)
begin = 0;
end = totalCount;
}
SDL_Surface* TileSheet::GetSurface() {