What you need to know before making X - Pawkkie/Team-Aquas-Asset-Repo GitHub Wiki

banner

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

» TABLE OF CONTENTS «

» Written by Vol «

Overworld Menus/UIs

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. Here are the basic rules for such UI:

  • 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 Overworld Palettes and Scanline-Effects such as caves that require flash

Like most topics, there are always exceptions:

Start Menu

  • 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