seltzerfish / phaser-svelte-template

Home Page:https://template.seltzerfish.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phaser-svelte-template 🚀

Live Demo

This is a project starter template for a web game that uses Phaser 3 for the game world and Skeleton UI (SvelteKit + Tailwind) for the menus.

To get started, press "Use this template" on the top of the github page.

Then, run:

pnpm i
pnpm dev

Where to look for things

  • The game world you see is in src/phaser/scenes/GameScene.ts
  • The config for the Phaser game is in src/phaser/main.ts
  • The HUD you see is in src/svelte/routes/Hud.svelte
  • The PWA config is in static/manifest.json.
  • src/lib/stores.ts contains the variables that communicate between the Phaser game and the Svelte UI

Learn more

About

https://template.seltzerfish.com


Languages

Language:TypeScript 46.9%Language:JavaScript 27.9%Language:Svelte 19.5%Language:HTML 3.8%Language:CSS 1.8%