Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/jgame.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 121 by tsugehara, Tue Jul 30 11:10:06 2013 UTC revision 128 by tsugehara, Wed Jul 31 08:30:45 2013 UTC
# Line 1289  var jg; Line 1289  var jg;
1289                      this[mode + "End"]();                      this[mode + "End"]();
1290    
1291              var linkMode = this.currentMode();              var linkMode = this.currentMode();
1292              if (linkMode && this[linkMode + "Show"])              if (newMode !== undefined && newMode != newMode)
1293                    this.changeMode(newMode); else if (linkMode && this[linkMode + "Show"])
1294                  this[linkMode + "Show"]();                  this[linkMode + "Show"]();
   
             if (newMode)  
                 this.changeMode(newMode);  
1295          };          };
1296    
1297          Scene.prototype.createLayer = function (name, size) {          Scene.prototype.createLayer = function (name, size) {
# Line 2015  var jg; Line 2013  var jg;
2013              this.animated.fire();              this.animated.fire();
2014          };          };
2015          MultilineText.LINE_HEIGHT_NORMAL = 1.2;          MultilineText.LINE_HEIGHT_NORMAL = 1.2;
2016    
2017          MultilineText.BROWSER_BASELINE_MARGIN = 0;          MultilineText.BROWSER_BASELINE_MARGIN = 0;
2018          return MultilineText;          return MultilineText;
2019      })(jg.E);      })(jg.E);
# Line 2324  var jg; Line 2323  var jg;
2323          __extends(LoadingScene, _super);          __extends(LoadingScene, _super);
2324          function LoadingScene(game, resource) {          function LoadingScene(game, resource) {
2325              _super.call(this, game);              _super.call(this, game);
             this.game = game;  
2326              this.resource = resource;              this.resource = resource;
2327              this.resource.loaded.handle(this, this.complete);              this.resource.loaded.handle(this, this.complete);
2328              this.resource.added.handle(this, this.added);              this.resource.added.handle(this, this.added);
# Line 4686  var jg; Line 4684  var jg;
4684                  easing: easing                  easing: easing
4685              });              });
4686          };          };
4687    
4688          Timeline.prototype.resizeBy = function (size, time, easing, easing2) {          Timeline.prototype.resizeBy = function (size, time, easing, easing2) {
4689              if (typeof easing === "number") {              if (typeof easing === "number") {
4690                  return this.tween({                  return this.tween({
# Line 4790  var jg; Line 4789  var jg;
4789          return Timeline;          return Timeline;
4790      })();      })();
4791      jg.Timeline = Timeline;      jg.Timeline = Timeline;
4792    
4793      Timeline.prototype.isFrameBased = false;      Timeline.prototype.isFrameBased = false;
4794  })(jg || (jg = {}));  })(jg || (jg = {}));
4795  var jg;  var jg;
# Line 4824  var jg; Line 4824  var jg;
4824              var a2 = p2;              var a2 = p2;
4825              if (a1.width && a1.height) {              if (a1.width && a1.height) {
4826                  if (a2.width && a2.height) {                  if (a2.width && a2.height) {
4827                      return a1.x <= (a2.x + a2.width) && a2.x <= (a1.x + a1.width) && a1.y <= (a2.y + a2.height) && a2.y <= (a1.y + a1.height);                      return a1.x < (a2.x + a2.width) && a2.x < (a1.x + a1.width) && a1.y < (a2.y + a2.height) && a2.y < (a1.y + a1.height);
4828                  } else {                  } else {
4829                      return a2.x >= a1.x && a2.x <= (a1.x + a1.width) && a2.y >= a1.y && a2.y <= (a1.y + a1.height);                      return a2.x >= a1.x && a2.x < (a1.x + a1.width) && a2.y >= a1.y && a2.y < (a1.y + a1.height);
4830                  }                  }
4831              } else if (a2.width && a2.height) {              } else if (a2.width && a2.height) {
4832                  return a1.x >= a2.x && a1.x <= (a2.x + a2.width) && a1.y >= a2.y && a1.y <= (a2.y + a2.height);                  return a1.x >= a2.x && a1.x < (a2.x + a2.width) && a1.y >= a2.y && a1.y < (a2.y + a2.height);
4833              }              }
4834    
4835              return p1.x == p2.x && p1.y == p2.y;              return p1.x == p2.x && p1.y == p2.y;

Legend:
Removed from v.121  
changed lines
  Added in v.128

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26