-
Notifications
You must be signed in to change notification settings - Fork 0
API Custom Menu Items
THE_ORONCO edited this page May 19, 2022
·
1 revision
Add an extra item to the pause menu
Index should be 1โฆ5 and determines the order each menu item is displayed label should be a string up to 16 characters long callback is a function called when the item is selected by the users.
When no label or function is supplied, the menu item is removed
MENUITEM(1, "RESTART PUZZLE",
FUNCTION() RESET_PUZZLE() SFX(10) END
)
If the callback returns true, the pause menu remains open. The callback takes a single parameter that is a bitfield of L, R, X button presses
MENUITEM(1, "FOO",
FUNCTION(B) IF (B&1 > 0) THEN PRINTH("LEFT WAS PRESSED") END END
)
- ๐ Keys
- ๐ Hello World
- ๐พ Example Cartridges
- ๐ File System
โคด๏ธ Loading and Saving- ๐ Using an External Text Editor
- ๐ฝ Backups
- ๐ง Configuration
- ๐ธ Screenshots and GIFs
- ๐ Sharing Cartridges
- ๐ SPLORE
- ๐ผ๏ธ Sprite Sheet / Label (.png)
- ๐ต SFX and Music (.wav)
- ๐ค MAP and CODE
- ๐พ Cartridges (.p8, .p8.png, .p8.rom)
- ๐ Web Applications (.html)
- ๐ค Binary Applications (.bin)
- ๐น๏ธ Uploading to itch.io
- ๐พ Exporting Multiple Cartridges
- ๐ฅ Running EXPORT from the host operating system