Uploaded April 2021 | Updated November 2026, 11 hours ago
Continuing our elevator and asynchronous scene management system development let's try to build a 3-scene system that will allow us to create a base scene with the global game objects (our player, scene transition elevator, camera etc) and the two "floors" we'll be transitioning between.
Our goal is to unload the currently loaded floor (if one is loaded) and replace it with the new scene before opening the elevator to reveal the changed scene. If we were to reverse this order or tried to unload and load the scenes simultaneously, we could end up in a situation where both of our playable scenes were loaded at the same time. For a completely static scene this is probably fine, but any dynamic objects like physics, ai etc could potentially attempt to interact with the other scene and cause behavior we don't want.
The flow we're trying to create with this effect should look something like this.
```mermaid
graph LR
B(Try to load First Floor)
C(Close Elevator Door)
D{Is A Floor Loaded Already?}
E(Unload Loaded Floor)
F(Load First Floor)
G(Open Elevator Door)
B--˃C
C--˃D
D-- Yes --˃E
D-- No --˃F
E--˃F
F--˃G
```
***
The [**Elevator Between Scenes** series playlist](youtube.com/playlist?list=PLEwYhelKHmigCVDWNM5--f7PofdkvXbuZ)
Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Continuing our elevator and asynchronous scene management system development let's try to build a 3-scene system that will allow us to create a base scene with the global game objects (our player, scene transition elevator, camera etc) and the two "floors" we'll be transitioning between.
Our goal is to unload the currently loaded floor (if one is loaded) and replace it with the new scene before opening the elevator to reveal the changed scene. If we were to reverse this order or tried to unload and load the scenes simultaneously, we could end up in a situation where both of our playable scenes were loaded at the same time. For a completely static scene this is probably fine, but any dynamic objects like physics, ai etc could potentially attempt to interact with the other scene and cause behavior we don't want.
The flow we're trying to create with this effect should look something like this.
```mermaid
graph LR
B(Try to load First Floor)
C(Close Elevator Door)
D{Is A Floor Loaded Already?}
E(Unload Loaded Floor)
F(Load First Floor)
G(Open Elevator Door)
B--˃C
C--˃D
D-- Yes --˃E
D-- No --˃F
E--˃F
F--˃G
```
***
The [**Elevator Between Scenes** series playlist](youtube.com/playlist?list=PLEwYhelKHmigCVDWNM5--f7PofdkvXbuZ)
Join the World of Zero Discord Server: discord.gg/hU5Kq2u


 we built previously.
Our shader is based off of this formula.
```
weight * colorA + (1 - weight) * colorB;
```
This formula uses a weight to balance between two colors. We can modify this by using a boolean value for the weight which will make it 1 when the boolean is true or 0 when the boolean is false. This will make it possible to turn our gradient between two colors into a hard transition instead.
We can modify our material in C# using code like this in order to animate it from code:
```csharp
material.SetFloat(_Transition, currentTransitionState);
```
Join the World of Zero Discord server: https://discord.gg/hU5Kq2u Color Contrast Shader - Lets Make a Side Scrolling Shooter - Part 3](https://i.ytimg.com/vi/jJcSbixSy5c/mqdefault.jpg)

- [`AnimFloat`](https://docs.unity3d.com/ScriptReference/AnimatedValues.AnimFloat.html)
- [`AnimQuaternion`](https://docs.unity3d.com/ScriptReference/AnimatedValues.AnimQuaternion.html)
- [`AnimVector3`](https://docs.unity3d.com/ScriptReference/AnimatedValues.AnimVector3.html)
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Using AnimatedValues in Custom Unity Editors](https://i.ytimg.com/vi/jfhCaijXm6M/mqdefault.jpg)






![Creating our own Dockerized Mindustry Server
Lately Ive been playing Mindustry a factory based tower defense game that lets you build a factory, construct defenses and grow over time. Mindustry also includes its own self-hostable server. Were going to be taking a look at how we can use that self-hosted server file in order to create a reproducible containerized environment where we can run Mindustry games to play with friends.
To setup our Mindustry container image were going to create a `Dockerfile` with three layers:
```docker
FROM openjdk:25-slim
COPY server.jar /server.jar
CMD [ java, -jar, /server.jar ]
```
* `FROM`: defines which image to base our own image upon. Well be layering upon a slimmed down version of openjdks images.
* `COPY`: copies a file from our local machine - `server.jar` in this case - onto the container image so we can access it.
* `CMD`: defines the command to run to boot our server when we run it. For us this means using the packaged `jre` to run the `server.jar` we copied over into the container.
We build our Docker Image using this command:
```sh
docker build tag mindustry-server .
```
And then run that image using `docker run`:
```sh
docker run -it -p 6567:6567 -p 6567:6567/udp mindustry-server
```
Mindustry Server Hosting is documented on the Mindustry Wiki here: https://mindustrygame.github.io/wiki/servers/
We are basing our `Dockerfile` on the `openjdk` images. You can find them on Docker Hub here: https://hub.docker.com/_/openjdk
If youd like to see how we can apply similar ideas to hosting our own Minecraft Server, you can check out our containerized Minecraft server here: https://youtu.be/JtKIpGjtLzw
The current version of this container is available on GitHub at https://github.com/WorldOfZero/mindustry-server
***
Mindustry is available on Itch or Steam for desktop players or you can get a copy for your mobile phones:
* Itch.io: https://anuke.itch.io/mindustry
* Steam: https://store.steampowered.com/app/1127400/Mindustry/
* Google Play Store (Android): https://play.google.com/store/apps/details?id=io.anuke.mindustry&pli=1
* Apple App Store (iOS): https://apps.apple.com/us/app/mindustry/id1385258906?ls=1
(I dont have any association with this game, I just like playing it) Creating our own Dockerized Mindustry Server](https://i.ytimg.com/vi/m3mowhqXsXE/mqdefault.jpg)