For an idea I have for a 3d game I put together this proof of concept for 3d visualization. Please take a look at the demo here:
https://www.construct.net/en/free-online-games/3d-experiment-6447/play?via=c18
The source is available here:
https://downloads.construct.net/uploads/120/6447/114882e6-5246-459c-afff-90b25d2b551f/3d%20experiment%2020191101.c3p
I've added some comments to explain how it works. The 3d positioning is probably not 100% mathematically accurate but I find it simple and effective.
Any suggestions for improvement are very welcome. Especially ideas to include viewer angle and rotation would be much appreciated.