UNPKG
phaser3-nineslice
Version:
alpha (0.2.0)
latest (0.5.0)
0.5.0
0.4.0
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
0.1.0
A 9-slice implementation for Phaser 3
jdotrjs.github.io/phaser3-nineslice/
jdotrjs/phaser3-nineslice
phaser3-nineslice
/
example
/
index.js
13 lines
(12 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
let
phaserConfig
=
{
type:
Phaser.AUTO
,
parent:
'phaser-display'
,
backgroundColor:
'0x9a9a9a'
,
width:
800
,
height:
600
,
plugins:
{
global:
[
NineSlice.Plugin.DefaultCfg
], },
scene:
[
Scene1
], }
new
Phaser.Game(phaserConfig)