0.1.0-beta.2 • Published 3 years ago

svelte-phaser v0.1.0-beta.2

Weekly downloads
107
License
-
Repository
github
Last release
3 years ago

Documentation

Check out the documentation

Getting Started

Creating a new project

npx degit mattjennings/svelte-phaser/templates/svite my-first-game
cd my-first-game
npm install
npm run dev

# or if you prefer typescript:

npx degit mattjennings/svelte-phaser/templates/svite-typescript my-first-game
cd my-first-game
npm install
npm run dev

There are some other templates available as well

If a blank project is too boring, feel free to look through the examples.

Adding to an existing project

If you have an existing svelte project you can just install svelte-phaser:

npm install phaser svelte-phaser

and then import it:

<script>
  import { Game, Scene, Text } from 'svelte-phaser'
</script>

<Game width={400} height={400}>
  <Scene key="main">
    <Text x={140} y={180} text="hello world" />
  </Scene>
</Game>
0.1.0-beta.2

3 years ago

0.1.0-beta.1

3 years ago

0.1.0-beta.0

3 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.3-alpha.1

4 years ago

0.0.2

4 years ago

0.0.3-alpha.0

4 years ago

0.0.1-rc.0

4 years ago

0.0.1-alpha.10

4 years ago

0.0.1-alpha.8

4 years ago

0.0.1-alpha.9

4 years ago

0.0.1

4 years ago

0.0.1-alpha.6

4 years ago

0.0.1-alpha.7

4 years ago

0.0.1-alpha.5

4 years ago

0.0.1-alpha.4

4 years ago

0.0.1-alpha.3

4 years ago

0.0.1-alpha.2

4 years ago

0.0.1-alpha.1

4 years ago

0.0.1-alpha.0

4 years ago

0.0.0

4 years ago