Files
Mindustry/core/src/mindustry/graphics/Layer.java
2020-04-24 12:01:08 -04:00

79 lines
1.4 KiB
Java

package mindustry.graphics;
/** Stores constants for sorting layers. Values should be stored in increments of 10. */
public class Layer{
public static final float
//background, which may be planets or an image or nothing at all
background = -10,
//floor tiles
floor = 0,
//scorch marks on the floor
scorch = 10,
//things such as spent casings or rubble
debris = 20,
//base block layer - most blocks go here
block = 30,
//things drawn over blocks (intermediate layer)
blockOver = 35,
//blocks currently in progress *shaders used*
blockBuilding = 40,
//ground units
groundUnit = 50,
//turrets
turret = 60,
//power lines
power = 70,
//darkness over block clusters
darkness = 80,
//building plans
plans = 85,
//flying units
flyingUnit = 90,
//bullets *bloom begin*
bullet = 100,
//effects *bloom end*
effect = 110,
//overlaied UI, like block config guides
overlayUI = 120,
//shield effects
shields = 125,
//weather effects, e.g. rain and snow TODO draw before overlay UI?
weather = 130,
//light rendering *shaders used*
light = 140,
//names of players in the game
playerName = 150,
//space effects, currently only the land and launch effects
space = 160,
//the end of all layers
end = 200,
//things after pixelation - used for text
endPixeled = 210
;
}