From 8e3fdfdc25cd74779c7ec96e2f93d3a14f2e81d7 Mon Sep 17 00:00:00 2001 From: a dinosaur Date: Thu, 22 Aug 2024 03:47:01 +1000 Subject: [PATCH] more random colours --- Sources/Voxelotl/Game.swift | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Sources/Voxelotl/Game.swift b/Sources/Voxelotl/Game.swift index 113e010..e850c4b 100644 --- a/Sources/Voxelotl/Game.swift +++ b/Sources/Voxelotl/Game.swift @@ -34,14 +34,9 @@ class Game: GameDelegate { private func generateWorld() { var random = DarwinRandom(seed: Arc4Random.instance.next(in: DarwinRandom.max)) - let colors: [Color] = [ - .white, - .red, .blue, .green, - .magenta, .yellow, .cyan - ] self.chunk.fill(allBy: { if (random.next() & 0x1) == 0x1 { - .solid(colors[random.next(in: 0..