Hello komunre!
The reference is shown above: https://www.youtube.com/shorts/ujAZVeT1k6c
Only instead of molten aluminum, lava should flow openly through the gutters. And this imposes certain difficulties both with graphics and with the code...
In terms of graphics, for a good 3D artist and animator, this is difficult to do, but feasible:
-
You should not take pipes as a basis, because everything is implemented there as static sprites, but rather converter belts, where sprites work as frame-by-frame animation.
-
You need to take into account 4 states of the gutters:
a. Empty
b. Movement of the beginning of the lava flow
c. Movement of the main lava flow
d. Movement of the end of the lava flow
In the case of the code, everything is much sadder: neither pipes nor conveyors provide for such mechanics. Most likely, you will have to write your own scripts:
And first of all, you need to make the game transmit commands to each segment of the gutters, about what type of animation to display at what moment.
-
It is quite possible that at the moment of passing through the pipes, you will have to turn the lava from "liquid" into "objects". And then you will be able to adapt the mechanics of the conveyor belts for this.
-
Accordingly, based on the first point, we need scripts for both turning lava from liquid into objects at the moment of entering the gutter, and vice versa - turning the lava back into "liquid" at the moment of entering the foundry
-
But there are also branched gutters, for which you need to write your own scripts!
It is hard for me to even imagine what other pitfalls will be encountered in this case...