mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
Camera3D Plugin moved out of the main src folder to optional plugin
This commit is contained in:
parent
5ca4799871
commit
beb286297c
13 changed files with 55 additions and 23 deletions
|
@ -4,16 +4,16 @@
|
|||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||
*/
|
||||
|
||||
var Class = require('../../utils/Class');
|
||||
var Matrix4 = require('../../math/Matrix4');
|
||||
var RandomXYZ = require('../../math/RandomXYZ');
|
||||
var RandomXYZW = require('../../math/RandomXYZW');
|
||||
var RotateVec3 = require('../../math/RotateVec3');
|
||||
var Set = require('../../structs/Set');
|
||||
var Sprite3D = require('../../gameobjects/sprite3d/Sprite3D');
|
||||
var Vector2 = require('../../math/Vector2');
|
||||
var Vector3 = require('../../math/Vector3');
|
||||
var Vector4 = require('../../math/Vector4');
|
||||
var Class = require('../../../src/utils/Class');
|
||||
var Matrix4 = require('../../../src/math/Matrix4');
|
||||
var RandomXYZ = require('../../../src/math/RandomXYZ');
|
||||
var RandomXYZW = require('../../../src/math/RandomXYZW');
|
||||
var RotateVec3 = require('../../../src/math/RotateVec3');
|
||||
var Set = require('../../../src/structs/Set');
|
||||
var Sprite3D = require('./sprite3d/Sprite3D');
|
||||
var Vector2 = require('../../../src/math/Vector2');
|
||||
var Vector3 = require('../../../src/math/Vector3');
|
||||
var Vector4 = require('../../../src/math/Vector4');
|
||||
|
||||
// Local cache vars
|
||||
var tmpVec3 = new Vector3();
|
|
@ -4,10 +4,10 @@
|
|||
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
|
||||
*/
|
||||
|
||||
var Class = require('../../utils/Class');
|
||||
var Class = require('../../../src/utils/Class');
|
||||
var OrthographicCamera = require('./OrthographicCamera');
|
||||
var PerspectiveCamera = require('./PerspectiveCamera');
|
||||
var PluginCache = require('../../plugins/PluginCache');
|
||||
var PluginCache = require('../../../src/plugins/PluginCache');
|
||||
|
||||
/**
|
||||
* @classdesc
|
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
|
||||
var Camera = require('./Camera');
|
||||
var Class = require('../../utils/Class');
|
||||
var Vector3 = require('../../math/Vector3');
|
||||
var Class = require('../../../src/utils/Class');
|
||||
var Vector3 = require('../../../src/math/Vector3');
|
||||
|
||||
// Local cache vars
|
||||
var tmpVec3 = new Vector3();
|
|
@ -5,8 +5,8 @@
|
|||
*/
|
||||
|
||||
var Camera = require('./Camera');
|
||||
var Class = require('../../utils/Class');
|
||||
var Vector3 = require('../../math/Vector3');
|
||||
var Class = require('../../../src/utils/Class');
|
||||
var Vector3 = require('../../../src/math/Vector3');
|
||||
|
||||
// Local cache vars
|
||||
var tmpVec3 = new Vector3();
|
|
@ -16,3 +16,19 @@ module.exports = {
|
|||
PerspectiveCamera: require('./PerspectiveCamera')
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
var GameObjects = {
|
||||
|
||||
Sprite3D: require('./sprite3d/Sprite3D'),
|
||||
|
||||
Factories: {
|
||||
Sprite3D: require('./sprite3d/Sprite3DFactory')
|
||||
},
|
||||
|
||||
Creators: {
|
||||
Sprite3D: require('./sprite3d/Sprite3DCreator')
|
||||
}
|
||||
|
||||
};
|
||||
*/
|
22
plugins/camera3d/webpack.config.js
Normal file
22
plugins/camera3d/webpack.config.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
'use strict';
|
||||
|
||||
const webpack = require('webpack');
|
||||
const exec = require('child_process').exec;
|
||||
|
||||
module.exports = {
|
||||
mode: 'development',
|
||||
|
||||
context: `${__dirname}/src/`,
|
||||
|
||||
entry: {
|
||||
camera3d: './index.js'
|
||||
},
|
||||
|
||||
output: {
|
||||
path: `${__dirname}/build/`,
|
||||
filename: '[name].js',
|
||||
library: 'PhaserCamera3DPlugin',
|
||||
libraryTarget: 'umd',
|
||||
umdNamedDefine: true
|
||||
}
|
||||
};
|
|
@ -11,7 +11,6 @@
|
|||
module.exports = {
|
||||
|
||||
Controls: require('./controls'),
|
||||
Scene2D: require('./2d'),
|
||||
Sprite3D: require('./sprite3d')
|
||||
Scene2D: require('./2d')
|
||||
|
||||
};
|
||||
|
|
|
@ -32,7 +32,6 @@ var GameObjects = {
|
|||
PathFollower: require('./pathfollower/PathFollower'),
|
||||
RenderTexture: require('./rendertexture/RenderTexture'),
|
||||
RetroFont: require('./bitmaptext/RetroFont'),
|
||||
Sprite3D: require('./sprite3d/Sprite3D'),
|
||||
Sprite: require('./sprite/Sprite'),
|
||||
Text: require('./text/static/Text'),
|
||||
TileSprite: require('./tilesprite/TileSprite'),
|
||||
|
@ -51,7 +50,6 @@ var GameObjects = {
|
|||
Particles: require('./particles/ParticleManagerFactory'),
|
||||
PathFollower: require('./pathfollower/PathFollowerFactory'),
|
||||
RenderTexture: require('./rendertexture/RenderTextureFactory'),
|
||||
Sprite3D: require('./sprite3d/Sprite3DFactory'),
|
||||
Sprite: require('./sprite/SpriteFactory'),
|
||||
StaticBitmapText: require('./bitmaptext/static/BitmapTextFactory'),
|
||||
Text: require('./text/static/TextFactory'),
|
||||
|
@ -68,7 +66,6 @@ var GameObjects = {
|
|||
Image: require('./image/ImageCreator'),
|
||||
Particles: require('./particles/ParticleManagerCreator'),
|
||||
RenderTexture: require('./rendertexture/RenderTextureCreator'),
|
||||
Sprite3D: require('./sprite3d/Sprite3DCreator'),
|
||||
Sprite: require('./sprite/SpriteCreator'),
|
||||
StaticBitmapText: require('./bitmaptext/static/BitmapTextCreator'),
|
||||
Text: require('./text/static/TextCreator'),
|
||||
|
|
|
@ -75,7 +75,6 @@ var DefaultPlugins = {
|
|||
*/
|
||||
DefaultScene: [
|
||||
|
||||
'CameraManager3D',
|
||||
'Clock',
|
||||
'DataManagerPlugin',
|
||||
'InputPlugin',
|
||||
|
|
|
@ -28,7 +28,6 @@ var InjectionMap = {
|
|||
|
||||
events: 'events',
|
||||
cameras: 'cameras',
|
||||
cameras3d: 'cameras3d',
|
||||
add: 'add',
|
||||
make: 'make',
|
||||
scenePlugin: 'scene',
|
||||
|
|
Loading…
Reference in a new issue