Log In  

Cart #watertest-0 | 2020-09-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

Z changes modes between drawing height for tiles, and simulating the water

X when pressed or released, toggles the control scheme.

In Draw mode, holding X allows you to change tile heights with the UP and DOWN arrows.
In Sim mode, you control the Log object with the arrows, but holding X allows you to change the water's base height.

The log will float up to meet the water level or fall with it. The log hasn't been programmed to interact with the tiles at the moment.
This whole thing is just a test to show how a more 2.5D feel could be achieved through using a mask to determine the height values in an image and using that to determine where to draw water.

P#81891 2020-09-16 08:29 ( Edited 2020-09-16 08:38)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2022-12-02 22:31:41 | 0.007s | Q:15