From e44338f3f33b9778fed2da47aaf4b2d0f5d7c297 Mon Sep 17 00:00:00 2001 From: William Jackson Date: Thu, 29 Apr 2021 11:23:09 -0500 Subject: [PATCH] Updated loading screen --- Sources/ScenesShell/NewWorld.swift | 5 +++-- Sources/ScenesShell/Splash.swift | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Sources/ScenesShell/NewWorld.swift b/Sources/ScenesShell/NewWorld.swift index d648481..d9354d2 100644 --- a/Sources/ScenesShell/NewWorld.swift +++ b/Sources/ScenesShell/NewWorld.swift @@ -259,6 +259,8 @@ class SimpleWorld { //render loading screen renderNoise(canvas:canvas, quality:64, multiplier:64, frame:frame) + loadingMap.render(canvas:canvas) + let text = Text(location:Point(x:canvas.canvasSize!.width/2, y:3*(canvas.canvasSize!.height/4)), text:"Generating World: \((50*blocksGenerated)/blocksToGenerate)%") text.font = "\(canvas.canvasSize!.height/64)pt Arial" text.baseline = .middle @@ -287,14 +289,13 @@ class SimpleWorld { canvas.render(FillStyle(color:Color(red:255, green:255, blue:0))) canvas.render(splash) - let version = Text(location:Point(x:0, y:(canvas.canvasSize!.height)), text:" v0.3.1") + let version = Text(location:Point(x:0, y:(canvas.canvasSize!.height)), text:" v0.3.2") version.font = "\((canvas.canvasSize!.height/64))pt Arial" version.baseline = .bottom version.alignment = .left canvas.render(FillStyle(color:Color(red:255, green:255, blue:255))) canvas.render(version) - loadingMap.render(canvas:canvas) } else { for block in nearbyBlocks(cameraPosition:Point3d(x:camera.x, y:camera.y, z:camera.z)) { block.renderBlock(camera:camera, canvas:canvas) diff --git a/Sources/ScenesShell/Splash.swift b/Sources/ScenesShell/Splash.swift index 1c7ec62..fa9224a 100644 --- a/Sources/ScenesShell/Splash.swift +++ b/Sources/ScenesShell/Splash.swift @@ -4,12 +4,13 @@ public func splashText() -> String { "Now with Physics!", "Now with Trees!", "Mr.Ben is cool!", - "2200+ lines of code!", + "2300+ lines of code!", "Swift Edition!", "100% guaranteed, almost bug free!", "Singleplayer!", "No more walking through walls!", - "The IGIS servers are on fire right now!"] + "The IGIS servers are on fire right now!", + "Now with better Render Distance!"] return text[Int.random(in:0..