Browse Subversion Repository
Diff of /trunk/src/js/jgame.js
Parent Directory
| Revision Log
| Patch
| 421 |
translate: { x: 0, y: 0 }, |
translate: { x: 0, y: 0 }, |
| 422 |
transform: { m11: 1, m12: 0, m21: 0, m22: 1, dx: 0, dy: 0 }, |
transform: { m11: 1, m12: 0, m21: 0, m22: 1, dx: 0, dy: 0 }, |
| 423 |
scale: { x: 1, y: 1 }, |
scale: { x: 1, y: 1 }, |
| 424 |
|
purescale: { x: 1, y: 1 }, |
| 425 |
globalAlpha: undefined, |
globalAlpha: undefined, |
| 426 |
font: undefined, |
font: undefined, |
| 427 |
fillStyle: undefined, |
fillStyle: undefined, |
| 2446 |
scale: function (c, entity, params) { |
scale: function (c, entity, params) { |
| 2447 |
c.transform.apply(c, _this.getMatrix(entity.width, entity.height, params.x, params.y, 0)); |
c.transform.apply(c, _this.getMatrix(entity.width, entity.height, params.x, params.y, 0)); |
| 2448 |
}, |
}, |
| 2449 |
|
purescale: function (c, entity, params) { |
| 2450 |
|
c.scale(params.x, params.y); |
| 2451 |
|
}, |
| 2452 |
rotate: function (c, entity, params) { |
rotate: function (c, entity, params) { |
| 2453 |
c.transform.apply(c, _this.getMatrix(entity.width, entity.height, 1, 1, params)); |
c.transform.apply(c, _this.getMatrix(entity.width, entity.height, 1, 1, params)); |
| 2454 |
} |
} |
|
|
Legend:
| Removed from v.148 |
|
| changed lines |
| |
Added in v.149 |
|
|
| |