-
Notifications
You must be signed in to change notification settings - Fork 39
What you need to know before making X
Planning your code structure is very important, especially if you want to create some special types of UIs, such as a start menu or a Pokedex. That is what this page is aiming to do: Helping you to plan your code structure by giving useful information.
Feel free to make new pages on here if you have at least some experience on a certain topic. If you want to fix or change someones page, make sure to ask in the Discord server :D
It doesn't matter if it's a start menu
or a shop menu
, making such UI is complex and not straight forward. Depending on the use case of the UI, you have to keep different things in mind.
Because of that, I categorized them into two categories:
This type of UI, is a UI that can be accessed anytime (That's why Dynamic
) on the Overworld. For this type of UI you have to know a lot more things, than the next category:
- Don't cleanup the Overworld before entering the UI
- Don't cleanup every background or sprites, when leaving the UI
- When using sprites, make sure that they'll show properly with DNS, Dynamic OW Palettes and Scanline-Effects such as caves that require flash
Like most topics, there are always exceptions:
- You have to copy the save window code from
src/start_menu.c
if you are creating the start menu from scratch - Menu options can be in different order, depending on if you have e.g. a Pokemon or the Pokenav
- Make sure that there's a normal start menu and the one in the safari zone