Skip to content

Instantly share code, notes, and snippets.

@Bluenaxela
Last active January 20, 2016 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bluenaxela/967222f9936450b5ae8d to your computer and use it in GitHub Desktop.
Save Bluenaxela/967222f9936450b5ae8d to your computer and use it in GitHub Desktop.
-100: Level Background
-95: Furthest back BGOs
-90: Sizable Blocks
-85: Some more BGOs
-80: Warp - Derived BGOs (locks on doors and stuff)
-75: Background NPCs (vines, piranah plants, diggable sand, mother brain, things in MB jars)
-70: Held NPCs
-65: Normal Blocks
-60: Furthest Back Effects (doors, pressed p-switches, some other stuff)
-55: Some NPCs (i.e. coins, clown car, chompy, herb, wood rocket, koopaling fire)
-50: Some NPCs (ice blocks)
-45: Normal NPCs
-40: Symbol above NPCs that want to chat (hardcoded-43/44)
-35: Player Mounts
-30: Something else player mount related?
-25: Players
-20: Foreground BGOs
-15: Foreground NPCs
-10: Foreground Blocks
-5: Foreground Effects (all not at 0091DD90)
1: Lua - Default priority for drawImage, glDraw
2: Lua - Default priority for placeSprite
3: Lua - Default priority for text
5: HUD
NOTES:
Allowed to use values from -100 to 10 inclusive.
If you specify a value equal to the layer priority for a normal SMBX layer your Lua drawing will be above it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment