Chunk SpawnAtRandomLocation Method Delta Engine Documentation

Namespace: Snake
Assembly: Snake (in Snake.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public void SpawnAtRandomLocation()
Remarks

Tests: Snake.Tests.ChunkTests
Examples

1 unit tests call Snake.Chunk.SpawnAtRandomLocation
[Test]
public void DrawChunkAtRandomLocation()
{
    Resolve<Window>().ViewportPixelSize = new Size(800, 600);
    var smallChunk = new Chunk(gridSize, blockSize, Color.Purple);
    smallChunk.SpawnAtRandomLocation();
}
See Also