feat: camera following player

This commit is contained in:
2024-04-18 22:54:09 +07:00
parent 36af656e0d
commit bcd0650aed
10 changed files with 216 additions and 97 deletions

View File

@@ -28,19 +28,7 @@ public class BlockFactory
return block;
}
public IEnumerable<Entity> GenerateMapOfBlocks()
{
for (int x = -16 / 2; x <= 16 / 2; x++) {
for (int z = -16 / 2; z <= 16 / 2; z++) {
if (x == -16 / 2 || x == 16 / 2 || z == -16 / 2 || z == 16 / 2)
{
yield return CreateBlock(x, z);
}
}
}
}
public const float BlockSize = 1;
}