Tile priority
The Genesis graphics were organized in two plans plus sprites. The most common way of drawing things in a platformer was to use the background plan for some background image, and the foreground plan for the level elements like the platforms. Sprites were usually drawn on top of these 2 plans.
However the Genesis allows you to break those rules and change the drawing order. The tiles have what we call a priority attribute, and by modifying this value, you can for example draw a part of the background plan above the foreground, or above sprites, etc. This is the technique used un Sonic loops, where the sonic sprite is drawn above the foreground plan at the beginning of the loop, and behind it at the end of the loop.
In Shrine Maiden Shizuka, I sometimes need to draw level elements on top of my sprites. It can be for secret passages, or for aesthetic reasons, like here in the village:
The technique used in this particular case is to always have a low priority for the foreground tiles. The sprite will most of the time also have a high priority, resulting in being drawn above the foreground. Except when they collide with some elements like this bridge, the sprite will be drawn with low priority tiles.
Get Shrine Maiden Shizuka (SEGA Mega Drive / Genesis)
Shrine Maiden Shizuka (SEGA Mega Drive / Genesis)
A metroidvania on the SEGA Genesis / Mega Drive
Status | In development |
Author | Kivutar |
Genre | Platformer |
Tags | 2D, genesis, Homebrew, megadrive, Metroidvania, Multiplayer, rom, sega, sgdk |
Languages | English |
More posts
- Second optional playerAug 29, 2021
- UpdatesAug 21, 2021
- BugfixesFeb 15, 2020
- New releaseJan 26, 2020
- More mapsJan 21, 2020
- PauseJan 08, 2020
- Intro scene, waterfall, spinning attackJan 04, 2020
- Twitch live codingDec 31, 2019
- The boss of the forestDec 29, 2019
- Deep forestDec 27, 2019
Leave a comment
Log in with itch.io to leave a comment.