mmortatti / pico8-emulator

MIT License
27 stars 3 forks source link

menuitem index [label callback] #81

Open matheusmortatti opened 5 years ago

matheusmortatti commented 5 years ago

IMPLEMENT MENU SYSTEM:

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

example: menuitem(1, "restart puzzle", function() reset_puzzle() sfx(10) end)