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 131 by tsugehara, Thu Aug 1 07:54:39 2013 UTC revision 133 by tsugehara, Fri Aug 2 17:46:24 2013 UTC
# Line 1291  var jg; Line 1291  var jg;
1291                  if (!this.layers[i].hasBuffer())                  if (!this.layers[i].hasBuffer())
1292                      this.layers[i].createBuffer();                      this.layers[i].createBuffer();
1293    
1294              this.layers[name] = new jg.Layer(this);              if (size && size instanceof jg.Layer) {
1295              if (size) {                  this.layers[name] = size;
1296                  this.layers[name].width = size.width;                  this.layers[name].scene = this;
1297                  this.layers[name].height = size.height;              } else {
1298                    this.layers[name] = new jg.Layer(this);
1299                    if (size) {
1300                        this.layers[name].width = size.width;
1301                        this.layers[name].height = size.height;
1302                    }
1303              }              }
1304              this.layers[name].createBuffer();              this.layers[name].createBuffer();
1305              this.layerCount++;              this.layerCount++;
# Line 2267  var jg; Line 2272  var jg;
2272              this.x = 0;              this.x = 0;
2273              this.y = 0;              this.y = 0;
2274              this.scene = scene;              this.scene = scene;
2275              this.width = this.scene.game.width;              if (this.scene) {
2276              this.height = this.scene.game.height;                  this.width = this.scene.game.width;
2277                    this.height = this.scene.game.height;
2278                }
2279              this.isUpdated = true;              this.isUpdated = true;
2280          }          }
2281          Layer.prototype.hasBuffer = function () {          Layer.prototype.hasBuffer = function () {

Legend:
Removed from v.131  
changed lines
  Added in v.133

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