-- Example router.lua (Harbor Point, made up): only what router.toml's data can't say. -- The kit opens bind.map from the main menu by itself; this game first shows a "press any key" -- screen and a save-slot picker, which the kit can't know about. Router.block "harborpoint.world" { -- Called twice a second until the game is in its world. enter = function() local splash = Game.widget("WBP_PressAnyKey_C") if splash then Game.call(splash, "OnAnyKey") return end local slots = Game.widget("WBP_SaveSlots_C") if slots then -- A new game in its own slot, never the player's saves. Game.call(slots, "StartNewGameInSlot", 9) end end, } Router.block "harborpoint.crabs" { -- Crabs still burrowed under the sand aren't listed yet. describe = function(crab, class, is_character) if Game.get(crab, "bBurrowed") then return false end return nil -- the data rules (bind.entity) do the rest end, }