Uploaded July 2018 | Updated November 2026, 2 days ago
Continuing to build out our side scrolling shooter. We're going to be building an effect that is essential to one of the main mechanics I am trying to build for this game. A contrast between two colors that allows you to damage one but makes the other invulnerable. You'll need to switch at the correct time to effectively eliminate enemies. The effect will be composed from a simple shader based off of the same concepts from the [dissolving shader](youtu.be/rGt9haUx-aQ) 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: discord.gg/hU5Kq2u
Continuing to build out our side scrolling shooter. We're going to be building an effect that is essential to one of the main mechanics I am trying to build for this game. A contrast between two colors that allows you to damage one but makes the other invulnerable. You'll need to switch at the correct time to effectively eliminate enemies. The effect will be composed from a simple shader based off of the same concepts from the [dissolving shader](youtu.be/rGt9haUx-aQ) 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: discord.gg/hU5Kq2u

- [`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)
![Importing .NET Libraries Into Unity 3D
You can import .NET Libraries into Unity in order to expose additional functionality in your game. In this video were going to build a basic demonstration of this feature by creating a brand new .NET Core library and importing it into Unity.
Once the library is imported we can invoke it and create objects defined by it just like any other code.
To create a new dotnet library with .NET Core you can use:
```csharp
dotnet new classlib name [your library name]
```
More about using the Unity Resources folder here on learn.unity.com: https://learn.unity.com/tutorial/assets-resources-and-assetbundles
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Importing .NET Libraries Into Unity 3D](https://i.ytimg.com/vi/m5Ls_NUChMk/mqdefault.jpg)

