domcouhrik / shapesge

Game Engine based on BlueJ Shapes Demo
GNU General Public License v2.0
0 stars 0 forks source link

Add a VisbilityPriority queue #4

Open domcouhrik opened 4 months ago

domcouhrik commented 4 months ago
domcouhrik commented 4 months ago

The current way shapes get rendered in through fri.shapesge.drawables.GameObjects.drawAll(), which cycles through an ArrayList of all drawables currently in existence, and for each calls draw() in the order they are in. Simply reordering this ArrayList could (?) do the trick.