Skip to content

mopts-stack/sveltekit-phaser-template

Repository files navigation

create-svelte

Examples

⚠️ Note: This is stil more of a try and error to be able to experiment which way works best, so fill free to use, forke and share your thoughts with me. as an example in Virtual Pet, I tried to move all the UI to svelte, it works, it's ok but still I don't know why I would want to do that, instead in Mario and RPG I have used sveltekit as the data layer and I think that works for me.

🙏 Note: by the way all the examples are based on Zenva courses.

Creating a project

Just use github to create new repo from this template or clone it.

Developing

Once you've created a project and installed dependencies with npm install (or pnpm install or yarn), start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

changes

it is inspired by setltzerfish template but more and more I think I need to make more changes and it is an on-goiing process.

  • updated phaser and sveltekit versions
  • some folder structure tweaks
  • removed any styles and use bare-bone CSS to let developer decide what's best for them

Everything you need to build a Svelte project, powered by create-svelte.