@vpmedia/phaser 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/phaser.cjs +1 -1
- package/dist/phaser.cjs.LICENSE.txt +1 -1
- package/dist/phaser.cjs.map +1 -1
- package/dist/phaser.js +1 -1
- package/dist/phaser.js.LICENSE.txt +1 -1
- package/dist/phaser.js.map +1 -1
- package/package.json +1 -1
- package/src/index.js +15 -92
- package/src/phaser/core/scene_manager.js +0 -1
- package/src/phaser/util/string.js +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vpmedia/phaser",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
|
|
5
5
|
"author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
|
|
6
6
|
"license": "MIT",
|
package/src/index.js
CHANGED
|
@@ -3,108 +3,41 @@
|
|
|
3
3
|
* @author Richard Davey <rich@photonstorm.com>
|
|
4
4
|
* @copyright Copyright (c) 2018-present Richard Davey, Photon Storm Ltd., Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)
|
|
5
5
|
*/
|
|
6
|
+
// core
|
|
6
7
|
import * as Const from './phaser/core/const';
|
|
7
|
-
import
|
|
8
|
-
import * as AnimationParser from './phaser/core/animation_parser';
|
|
9
|
-
import ArraySet from './phaser/core/array_set';
|
|
10
|
-
import Device from './phaser/core/device';
|
|
11
|
-
import * as DeviceUtils from './phaser/core/device_util';
|
|
12
|
-
import DOM from './phaser/core/dom';
|
|
13
|
-
import EventManager from './phaser/core/event_manager';
|
|
14
|
-
import Frame from './phaser/core/frame';
|
|
15
|
-
import FrameData from './phaser/core/frame_data';
|
|
16
|
-
import InputManager from './phaser/core/input';
|
|
17
|
-
import InputMouse from './phaser/core/input_mouse';
|
|
18
|
-
import InputMSPointer from './phaser/core/input_mspointer';
|
|
19
|
-
import InputPointer from './phaser/core/input_pointer';
|
|
20
|
-
import InputTouch from './phaser/core/input_touch';
|
|
21
|
-
import Loader from './phaser/core/loader';
|
|
22
|
-
import GameLoopRAF from './phaser/core/raf';
|
|
23
|
-
import ScaleManager from './phaser/core/scale_manager';
|
|
24
|
-
import Scene from './phaser/core/scene';
|
|
25
|
-
import SceneManager from './phaser/core/scene_manager';
|
|
8
|
+
import Game from './phaser/core/game';
|
|
26
9
|
import Signal from './phaser/core/signal';
|
|
27
|
-
import SignalBinding from './phaser/core/signal_binding';
|
|
28
|
-
import Sound from './phaser/core/sound';
|
|
29
|
-
import SoundSprite from './phaser/core/sound_sprite';
|
|
30
|
-
import SoundManager from './phaser/core/sound_manager';
|
|
31
|
-
import Time from './phaser/core/time';
|
|
32
|
-
import Timer from './phaser/core/timer';
|
|
33
|
-
import TimerEvent from './phaser/core/timer_event';
|
|
34
|
-
import Tween from './phaser/core/tween';
|
|
35
|
-
import TweenData from './phaser/core/tween_data';
|
|
36
|
-
import * as TweenEasing from './phaser/core/tween_easing';
|
|
37
|
-
import TweenManager from './phaser/core/tween_manager';
|
|
38
|
-
import Circle from './phaser/geom/circle';
|
|
39
|
-
import Ellipse from './phaser/geom/ellipse';
|
|
40
|
-
import Line from './phaser/geom/line';
|
|
41
|
-
import Matrix from './phaser/geom/matrix';
|
|
42
|
-
import Point from './phaser/geom/point';
|
|
43
|
-
import Polygon from './phaser/geom/polygon';
|
|
44
|
-
import Rectangle from './phaser/geom/rectangle';
|
|
45
10
|
import * as MathUtils from './phaser/util/math';
|
|
46
|
-
|
|
47
|
-
import
|
|
11
|
+
// geom
|
|
12
|
+
import Circle from './phaser/geom/circle';
|
|
48
13
|
import * as CircleUtils from './phaser/geom/util/circle';
|
|
14
|
+
import Ellipse from './phaser/geom/ellipse';
|
|
49
15
|
import * as EllipseUtils from './phaser/geom/util/ellipse';
|
|
16
|
+
import Line from './phaser/geom/line';
|
|
50
17
|
import * as LineUtils from './phaser/geom/util/line';
|
|
18
|
+
import Matrix from './phaser/geom/matrix';
|
|
51
19
|
import * as MatrixUtils from './phaser/geom/util/matrix';
|
|
20
|
+
import Point from './phaser/geom/point';
|
|
52
21
|
import * as PointUtils from './phaser/geom/util/point';
|
|
22
|
+
import Polygon from './phaser/geom/polygon';
|
|
53
23
|
import * as PolygonUtils from './phaser/geom/util/polygon';
|
|
24
|
+
import Rectangle from './phaser/geom/rectangle';
|
|
54
25
|
import * as RectangleUtils from './phaser/geom/util/rectangle';
|
|
26
|
+
import RoundedRectangle from './phaser/geom/rounded_rectangle';
|
|
55
27
|
import * as RoundedRectangleUtils from './phaser/geom/util/rounded_rectangle';
|
|
56
|
-
|
|
57
|
-
import * as CanvasPool from './phaser/display/canvas/pool';
|
|
58
|
-
import * as CanvasUtils from './phaser/display/canvas/util';
|
|
59
|
-
import * as CanvasTinter from './phaser/display/canvas/tinter';
|
|
60
|
-
import * as CanvasMasker from './phaser/display/canvas/masker';
|
|
61
|
-
import * as CanvasGraphics from './phaser/display/canvas/graphics';
|
|
62
|
-
import CanvasBuffer from './phaser/display/canvas/buffer';
|
|
63
|
-
import CanvasRenderer from './phaser/display/canvas/renderer';
|
|
64
|
-
import * as EarCut from './phaser/display/webgl/earcut';
|
|
65
|
-
import Game from './phaser/core/game';
|
|
28
|
+
// display
|
|
66
29
|
import BitmapText from './phaser/display/bitmap_text';
|
|
67
30
|
import DisplayObject from './phaser/display/display_object';
|
|
68
31
|
import Button from './phaser/display/button';
|
|
69
32
|
import Image from './phaser/display/image';
|
|
70
33
|
import Group from './phaser/display/group';
|
|
71
34
|
import Text from './phaser/display/text';
|
|
72
|
-
|
|
35
|
+
// exports
|
|
73
36
|
export {
|
|
74
37
|
Const,
|
|
75
|
-
|
|
76
|
-
AnimationParser,
|
|
77
|
-
ArraySet,
|
|
78
|
-
DOM,
|
|
79
|
-
Device,
|
|
80
|
-
DeviceUtils,
|
|
81
|
-
EventManager,
|
|
82
|
-
Frame,
|
|
83
|
-
FrameData,
|
|
84
|
-
InputManager,
|
|
85
|
-
InputMouse,
|
|
86
|
-
InputMSPointer,
|
|
87
|
-
InputPointer,
|
|
88
|
-
InputTouch,
|
|
89
|
-
Loader,
|
|
90
|
-
GameLoopRAF,
|
|
91
|
-
MathUtils,
|
|
92
|
-
StringUtils,
|
|
93
|
-
ScaleManager,
|
|
94
|
-
Scene,
|
|
95
|
-
SceneManager,
|
|
38
|
+
Game,
|
|
96
39
|
Signal,
|
|
97
|
-
|
|
98
|
-
Sound,
|
|
99
|
-
SoundSprite,
|
|
100
|
-
SoundManager,
|
|
101
|
-
Time,
|
|
102
|
-
Timer,
|
|
103
|
-
TimerEvent,
|
|
104
|
-
Tween,
|
|
105
|
-
TweenData,
|
|
106
|
-
TweenEasing,
|
|
107
|
-
TweenManager,
|
|
40
|
+
MathUtils,
|
|
108
41
|
Circle,
|
|
109
42
|
CircleUtils,
|
|
110
43
|
Ellipse,
|
|
@@ -121,16 +54,6 @@ export {
|
|
|
121
54
|
RectangleUtils,
|
|
122
55
|
RoundedRectangle,
|
|
123
56
|
RoundedRectangleUtils,
|
|
124
|
-
Game,
|
|
125
|
-
GraphicsData,
|
|
126
|
-
CanvasPool,
|
|
127
|
-
CanvasUtils,
|
|
128
|
-
CanvasBuffer,
|
|
129
|
-
CanvasTinter,
|
|
130
|
-
CanvasMasker,
|
|
131
|
-
CanvasGraphics,
|
|
132
|
-
CanvasRenderer,
|
|
133
|
-
EarCut,
|
|
134
57
|
BitmapText,
|
|
135
58
|
Button,
|
|
136
59
|
DisplayObject,
|
|
@@ -13,15 +13,6 @@ export function generateID() {
|
|
|
13
13
|
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
/**
|
|
17
|
-
* TBD
|
|
18
|
-
*
|
|
19
|
-
* @returns {string} TBD
|
|
20
|
-
*/
|
|
21
|
-
export function generateUUID() {
|
|
22
|
-
return (`${generateID()}${generateID()}-${generateID()}-4${generateID().substr(0, 3)}-${generateID()}-${generateID()}${generateID()}${generateID()}`).toLowerCase();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
16
|
/**
|
|
26
17
|
* TBD
|
|
27
18
|
*
|