public override TileTextureData TexturePosition(TileChunk tileChunk, int x, int y) { TileTextureData tileTextureData = new TileTextureData(); tileTextureData.x = 2; tileTextureData.y = 1; return tileTextureData; }
public override TileTextureData TexturePosition(TileChunk tileChunk, int x, int y) { TileTextureData tileTextureData = new TileTextureData(); tileTextureData.x = 0; tileTextureData.y = 2; return(tileTextureData); }
public virtual TileTextureData TexturePosition(TileChunk tileChunk, int x, int y) { TileTextureData tileTextureData = new TileTextureData(); tileTextureData.x = 0; tileTextureData.y = 0; return(tileTextureData); }
public virtual Vector2[] TileUVs(TileChunk tileChunk, int x, int y) { Vector2[] UVs = new Vector2[4]; TileTextureData tilePos = TexturePosition(tileChunk, x, y); UVs[0] = new Vector2(tileSize * tilePos.x + tileSize, tileSize * tilePos.y); UVs[1] = new Vector2(tileSize * tilePos.x + tileSize, tileSize * tilePos.y + tileSize); UVs[2] = new Vector2(tileSize * tilePos.x, tileSize * tilePos.y + tileSize); UVs[3] = new Vector2(tileSize * tilePos.x, tileSize * tilePos.y); return(UVs); }
public override TileTextureData TexturePosition(TileChunk tileChunk, int x, int y) { TileTextureData tileTextureData = new TileTextureData (); tileTextureData.x = 1; tileTextureData.y = 0; if(!tileChunk.GetTile(x, y + 1).IsSolid()) { tileTextureData.x = 1; tileTextureData.y = 1; } return tileTextureData; }
public override TileTextureData TexturePosition(TileChunk tileChunk, int x, int y) { TileTextureData tileTextureData = new TileTextureData(); tileTextureData.x = 1; tileTextureData.y = 0; if (!tileChunk.GetTile(x, y + 1).IsSolid()) { tileTextureData.x = 1; tileTextureData.y = 1; } return(tileTextureData); }
public override TileTextureData TexturePosition(TileChunk tileChunk, int x, int y) { TileTextureData tileTextureData = new TileTextureData(); if (count < 60) { tileTextureData.x = 0; tileTextureData.y = 3; } else { tileTextureData.x = 0; tileTextureData.y = 0; } if (count >= 120) { count = 0; } count++; return(tileTextureData); }