Browse Subversion Repository
Diff of /trunk/src/js/jgame.js
Parent Directory
| Revision Log
| Patch
| 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++; |
| 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 |
|
|
|