[JS] Revert const to var to avoid issues on web compilation

This commit is contained in:
pandamicro 2015-07-21 18:23:57 +08:00
parent 85d4ce0d5a
commit c260783fd0
3 changed files with 10 additions and 10 deletions

View File

@ -27,7 +27,7 @@ if(cc.sys.isNative)(function(){
var Particle3DTestIdx = -1;
const PARTICLE_SYSTEM_TAG = 0x0001;
var PARTICLE_SYSTEM_TAG = 0x0001;
jsb.fileUtils.addSearchPath("res/Sprite3DTest");
jsb.fileUtils.addSearchPath("res/Particle3D/materials");

View File

@ -27,13 +27,13 @@ var Physics3DTestIdx = -1;
var physicsScene = null;
const START_POS_X = -0.5;
const START_POS_Y = -2.5;
const START_POS_Z = -0.5;
var START_POS_X = -0.5;
var START_POS_Y = -2.5;
var START_POS_Z = -0.5;
const ARRAY_SIZE_X = 4;
const ARRAY_SIZE_Y = 3;
const ARRAY_SIZE_Z = 4;
var ARRAY_SIZE_X = 4;
var ARRAY_SIZE_Y = 3;
var ARRAY_SIZE_Z = 4;
var Physics3DTestDemo = cc.Layer.extend({
_title:"Physics3D Test",

View File

@ -189,7 +189,7 @@ var TerrainSimple = TerrainTestDemo.extend({
});
var TerrainWalkThru = (function(){
const PlayerState = {
var PlayerState = {
LEFT : 0,
RIGHT : 1,
IDLE : 2,
@ -197,8 +197,8 @@ var TerrainWalkThru = (function(){
BACKWARD : 4
};
const PLAYER_HEIGHT = 0;
const camera_offset = cc.math.vec3(0, 45, 60);
var PLAYER_HEIGHT = 0;
var camera_offset = cc.math.vec3(0, 45, 60);
var Player = jsb.Sprite3D.extend({
_targetPos:null,