import { packageContext } from 'kody:runtime' /** * Serves the game page when it's hosted as a Kody package app. The browser * client (`src/main.ts`) renders the game itself. */ export default { async fetch() { const assetBasePath = packageContext?.assetBasePath const clientModuleUrl = packageContext?.clientModuleUrl if (!assetBasePath || !clientModuleUrl) { return new Response('Pirate Shooter must run as a Kody package app.', { status: 500 }) } return new Response( ` Pirate Side Scroller `, { headers: { 'content-type': 'text/html; charset=utf-8' } }, ) }, }