pawbyte / Game-Pencil-Engine-Editor

Game Pencil Engine a game engine written from the ground up.
https://gamepencil.net/
MIT License
100 stars 20 forks source link

Implement automagical object depth sorting #111

Closed nhurde closed 4 months ago

nhurde commented 5 months ago

Case:

Quite useful for keeping objects stacked on top of each other in the proper view. Most useful for isometric and/or overhead view where depth is likely to equal to y.

This method should be called right before the scene render function and is to be taken on a layer by layer basis.

Layers are not sorted but simply stacked.

nhurde commented 4 months ago

Bringing foward to Spring 2024 due to extreme importance and no more backlogging this.

nhurde commented 4 months ago

Merged via https://github.com/pawbyte/Game-Pencil-Engine-Editor/pull/140