| OLD | NEW |
| 1 part of ppw_canvas; | 1 part of ppw_canvas; |
| 2 | 2 |
| 3 class GameBackgroundElement extends Thing { | 3 class GameBackgroundElement extends Thing { |
| 4 GameBackgroundElement() : super(0, 0) { | 4 GameBackgroundElement() : super(0, 0) { |
| 5 cacheEnabled = true; | 5 cacheEnabled = true; |
| 6 } | 6 } |
| 7 | 7 |
| 8 void update() { | 8 void update() { |
| 9 if(size != this._gameElement.size) { | 9 if(size != this._gameElement.size) { |
| 10 size = this._gameElement.size; | 10 size = this._gameElement.size; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void _drawCorner(CanvasRenderingContext2D ctx) { | 82 void _drawCorner(CanvasRenderingContext2D ctx) { |
| 83 _textureData.drawTextureKeyAt(ctx, 'background_top_left.png'); | 83 _textureData.drawTextureKeyAt(ctx, 'background_top_left.png'); |
| 84 _textureData.drawTextureKeyAt(ctx, 'background_side_left.png', | 84 _textureData.drawTextureKeyAt(ctx, 'background_side_left.png', |
| 85 new Coordinate(0, GameElement._boardOffset.y)); | 85 new Coordinate(0, GameElement._boardOffset.y)); |
| 86 } | 86 } |
| 87 | 87 |
| 88 GameElement get _gameElement => (parent as CanvasThing).parent; | 88 GameElement get _gameElement => (parent as CanvasThing).parent; |
| 89 | 89 |
| 90 TextureData get _textureData => _gameElement._textureData; | 90 TextureData get _textureData => _gameElement._textureData; |
| 91 } | 91 } |
| OLD | NEW |