Skip to content

Commit e095e90

Browse files
committed
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 into Iss2698_namespace
2 parents dfa1b8b + 87624ac commit e095e90

File tree

7 files changed

+20
-8
lines changed

7 files changed

+20
-8
lines changed

CCBoot.js

+2
Original file line numberDiff line numberDiff line change
@@ -1560,6 +1560,8 @@ cc._initSys = function (config, CONFIG_KEY) {
15601560
browserType = sys.BROWSER_TYPE_ANDROID;
15611561
else if (browserType == "trident") browserType = sys.BROWSER_TYPE_IE;
15621562
else if (browserType == "360 aphone") browserType = sys.BROWSER_TYPE_360;
1563+
}else if(ua.indexOf("iphone") && ua.indexOf("mobile")){
1564+
browserType = "safari";
15631565
}
15641566
/**
15651567
* Indicate the running browser type

cocos2d/audio/CCAudio.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,16 @@
134134
else
135135
cc.__audioSupport = supportTable[sys.BROWSER_TYPE_SAFARI];
136136
}else{
137-
//Desktop support all
138-
if(cc.sys.browserType != cc.sys.BROWSER_TYPE_IE)
139-
cc.__audioSupport = supportTable["common"];
140-
else
141-
cc.__audioSupport = supportTable[sys.BROWSER_TYPE_IE];
137+
switch(sys.browserType){
138+
case sys.BROWSER_TYPE_IE:
139+
cc.__audioSupport = supportTable[sys.BROWSER_TYPE_IE];
140+
break;
141+
case sys.BROWSER_TYPE_FIREFOX:
142+
cc.__audioSupport = supportTable[sys.BROWSER_TYPE_FIREFOX];
143+
break;
144+
default:
145+
cc.__audioSupport = supportTable["common"];
146+
}
142147
}
143148

144149
if(DEBUG){

cocos2d/particle/CCParticleSystemCanvasRenderCmd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206

207207
proto._initWithTotalParticles = function(totalParticles){};
208208
proto._updateDeltaColor = function(selParticle, dt){
209-
if (!this._dontTint) {
209+
if (!this._node._dontTint) {
210210
selParticle.color.r += selParticle.deltaColor.r * dt;
211211
selParticle.color.g += selParticle.deltaColor.g * dt;
212212
selParticle.color.b += selParticle.deltaColor.b * dt;

template/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<script src="main.js"></script>
2424
</head>
2525
<body style="padding:0; margin: 0; background: #000;">
26+
<script src="src/loading.js"></script>
2627
<canvas id="gameCanvas" width="321" height="480"></canvas>
2728
</body>
2829
</html>

template/main.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
cc.game.onStart = function(){
2+
if(!cc.sys.isNative) //If referenced loading.js, please remove it
3+
document.body.removeChild(document.getElementById("cocosLoading"));
4+
25
var designSize = cc.size(480, 800);
36
var screenSize = cc.view.getFrameSize();
47

template/src/loading.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/build.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
classpath="./compiler/compiler.jar"/>
66
<target name="compile">
77
<jscomp compilationLevel="simple" warning="quiet"
8-
debug="false" output="./../lib/cocos2d-js-v3.3-beta0-min.js">
8+
debug="false" output="./../lib/cocos2d-js-v3.3-min.js">
99
<!--sourceMapOutputFile="./../lib/cocos2d-js-v3.3-beta0-sourcemap" sourceMapFormat="V3" -->
1010
<sources dir="./../">
1111
<file name="Base64Images.js"/>
@@ -298,7 +298,7 @@
298298

299299
<target name="compile_core">
300300
<jscomp compilationLevel="simple" warning="quiet"
301-
debug="false" output="./../lib/cocos2d-js-v3.3-beta0-core-min.js">
301+
debug="false" output="./../lib/cocos2d-js-v3.3-core-min.js">
302302
<!--sourceMapOutputFile="./../lib/cocos2d-js-v3.3-beta0-core-sourcemap" sourceMapFormat="V3" -->
303303
<sources dir="./../">
304304
<file name="CCBoot.js"/>

0 commit comments

Comments
 (0)