Develop and Download Open Source Software
Login
Create Account
Help
MY OSDN
Find Software
Magazine
Develop
Pastebin
Software
People
PersonalForge
Magazine
Wiki
OSDN
>
Find Software
>
jgame.js
jgame.js
Summary
Project Summary
Developer Dashboard
Project Reviews
Web Page
Developers
List of RSS Feeds
Statistics
History
Image Gallery
Search Keywords
News
Listed News
Help
Downloads
List of Releases
Help
Source Code
Guide
Browse SVN
Help
Wiki
FrontPage
Title index
Recent changes
Wiki Search
Help
Mailing Lists
list of ML
jgame-js-dev
Help
Ticket
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Help
Browse Subversion Repository
/
[jgame-js]
/
trunk
/
src
/
js
/
jgame.js
Diff of /trunk/src/js/jgame.js
Parent Directory
|
Revision Log
|
Patch
revision
145
by
tsugehara
, Tue Aug 6 09:42:10 2013 UTC
revision
146
by
tsugehara
, Tue Aug 6 14:59:31 2013 UTC
#
Line 3229
var jg;
Line 3229
var jg;
3229
};
};
3230
3231
Game.prototype.end = function () {
Game.prototype.end = function () {
3232
if (this._exit)
3233
return false;
3234
this.renderer.render();
this.renderer.render();
3235
this._exit = true;
this._exit = true;
3236
return true;
3237
};
3238
3239
Game.prototype.resume = function () {
3240
if (!this._exit)
3241
return false;
3242
this._exit = false;
3243
this.main();
3244
return true;
3245
};
};
3246
3247
Game.prototype.setPointingEntity = function (param) {
Game.prototype.setPointingEntity = function (param) {
#
Line 4824
var jg;
Line 4835
var jg;
4835
var JGUtil = (function () {
var JGUtil = (function () {
4836
function JGUtil() {
function JGUtil() {
4837
}
}
4838
JGUtil.autoStop = function () {
4839
var games = [];
4840
for (var _i = 0; _i < (arguments.length - 0); _i++) {
4841
games[_i] = arguments[_i + 0];
4842
}
4843
var _this = this;
4844
games.forEach(function (game) {
4845
game.renderer.handler.addEventListener("focus", JGUtil.proxy(function () {
4846
this.resume();
4847
}, game), false);
4848
game.renderer.handler.addEventListener("blur", JGUtil.proxy(function () {
4849
this.end();
4850
}, game), false);
4851
4852
if (document.activeElement !== game.renderer.handler) {
4853
var initEnd = function () {
4854
this.end();
4855
game.loaded.remove(this, initEnd);
4856
};
4857
if (game.scene instanceof jg.LoadingScene)
4858
game.loaded.handle(game, initEnd); else
4859
initEnd.call(game);
4860
}
4861
});
4862
};
4863
4864
JGUtil.getCenterPoint = function (p) {
JGUtil.getCenterPoint = function (p) {
4865
var a = p;
var a = p;
4866
if (a.width && a.height) {
if (a.width && a.height) {
Colored Diff
Long Colored Diff
Full Colored Diff
Unidiff
Context Diff
Side by Side
Legend:
Removed from v.145
changed lines
Added in v.146
Back to OSDN
">
Back to OSDN
ViewVC Help
Powered by
ViewVC 1.1.26