|
|
|
@ -133,7 +133,7 @@ bool Crawler::OnUserCreate(){ |
|
|
|
|
,{MonsterName::SLIME_BLUE,{(rand()%20/2.f-5)*24,(rand()%20/2.f-5)*24}} |
|
|
|
|
}})); |
|
|
|
|
|
|
|
|
|
LoadLevel(CAMPAIGN_1_1); |
|
|
|
|
LoadLevel(LEVEL1); |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
@ -839,7 +839,7 @@ TilesheetData Crawler::GetTileSheet(MapName map,int tileID){ |
|
|
|
|
return {*MAP_TILESETS["assets/maps/"+tileData[0].data["source"]],1}; |
|
|
|
|
} else { |
|
|
|
|
for (int i=1;i<tileData.size();i++){ |
|
|
|
|
if(stoi(tileData[i].data["firstgid"])<tileID){ |
|
|
|
|
if(tileID<stoi(tileData[i].data["firstgid"])){ |
|
|
|
|
return {*MAP_TILESETS["assets/maps/"+tileData[i-1].data["source"]],stoi(tileData[i-1].data["firstgid"])}; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|