Adding 9 Player level
This commit is contained in:
parent
fdada6f132
commit
a7be12fa9b
30 changed files with 45984 additions and 300 deletions
|
|
@ -1231,12 +1231,13 @@ namespace TD.Levels.Editor
|
|||
|
||||
private static bool RenderThumbnail(BakeContext ctx, string thumbnailAssetPath)
|
||||
{
|
||||
// Compute world-space bounds of the map's tile region.
|
||||
float halfTile = GridCoordinates.TILE_SIZE * 0.5f;
|
||||
float minX = ctx.MapMinTile.x - halfTile;
|
||||
float maxX = ctx.MapMaxTile.x + halfTile;
|
||||
float minZ = ctx.MapMinTile.y - halfTile;
|
||||
float maxZ = ctx.MapMaxTile.y + halfTile;
|
||||
// Compute world-space bounds of the map's tile region. Tile N spans world [N, N+1]
|
||||
// (edge-aligned), so the rect spans from MapMinTile to MapMaxTile + 1 on each axis.
|
||||
float tileSize = GridCoordinates.TILE_SIZE;
|
||||
float minX = ctx.MapMinTile.x * tileSize;
|
||||
float maxX = (ctx.MapMaxTile.x + 1) * tileSize;
|
||||
float minZ = ctx.MapMinTile.y * tileSize;
|
||||
float maxZ = (ctx.MapMaxTile.y + 1) * tileSize;
|
||||
float worldW = maxX - minX;
|
||||
float worldH = maxZ - minZ;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue