mirror of https://github.com/axmolengine/axmol.git
[JS] Revert const to var to avoid issues on web compilation
This commit is contained in:
parent
85d4ce0d5a
commit
c260783fd0
|
@ -27,7 +27,7 @@ if(cc.sys.isNative)(function(){
|
||||||
|
|
||||||
var Particle3DTestIdx = -1;
|
var Particle3DTestIdx = -1;
|
||||||
|
|
||||||
const PARTICLE_SYSTEM_TAG = 0x0001;
|
var PARTICLE_SYSTEM_TAG = 0x0001;
|
||||||
|
|
||||||
jsb.fileUtils.addSearchPath("res/Sprite3DTest");
|
jsb.fileUtils.addSearchPath("res/Sprite3DTest");
|
||||||
jsb.fileUtils.addSearchPath("res/Particle3D/materials");
|
jsb.fileUtils.addSearchPath("res/Particle3D/materials");
|
||||||
|
|
|
@ -27,13 +27,13 @@ var Physics3DTestIdx = -1;
|
||||||
|
|
||||||
var physicsScene = null;
|
var physicsScene = null;
|
||||||
|
|
||||||
const START_POS_X = -0.5;
|
var START_POS_X = -0.5;
|
||||||
const START_POS_Y = -2.5;
|
var START_POS_Y = -2.5;
|
||||||
const START_POS_Z = -0.5;
|
var START_POS_Z = -0.5;
|
||||||
|
|
||||||
const ARRAY_SIZE_X = 4;
|
var ARRAY_SIZE_X = 4;
|
||||||
const ARRAY_SIZE_Y = 3;
|
var ARRAY_SIZE_Y = 3;
|
||||||
const ARRAY_SIZE_Z = 4;
|
var ARRAY_SIZE_Z = 4;
|
||||||
|
|
||||||
var Physics3DTestDemo = cc.Layer.extend({
|
var Physics3DTestDemo = cc.Layer.extend({
|
||||||
_title:"Physics3D Test",
|
_title:"Physics3D Test",
|
||||||
|
|
|
@ -189,7 +189,7 @@ var TerrainSimple = TerrainTestDemo.extend({
|
||||||
});
|
});
|
||||||
|
|
||||||
var TerrainWalkThru = (function(){
|
var TerrainWalkThru = (function(){
|
||||||
const PlayerState = {
|
var PlayerState = {
|
||||||
LEFT : 0,
|
LEFT : 0,
|
||||||
RIGHT : 1,
|
RIGHT : 1,
|
||||||
IDLE : 2,
|
IDLE : 2,
|
||||||
|
@ -197,8 +197,8 @@ var TerrainWalkThru = (function(){
|
||||||
BACKWARD : 4
|
BACKWARD : 4
|
||||||
};
|
};
|
||||||
|
|
||||||
const PLAYER_HEIGHT = 0;
|
var PLAYER_HEIGHT = 0;
|
||||||
const camera_offset = cc.math.vec3(0, 45, 60);
|
var camera_offset = cc.math.vec3(0, 45, 60);
|
||||||
|
|
||||||
var Player = jsb.Sprite3D.extend({
|
var Player = jsb.Sprite3D.extend({
|
||||||
_targetPos:null,
|
_targetPos:null,
|
||||||
|
|
Loading…
Reference in New Issue