Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: samples/pop_pop_win/lib/src/canvas/game_background_element.dart

Issue 200723008: samples/poppopwin: upgrade to first-class sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixed pkgbuild.status for rename Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « samples/pop_pop_win/lib/src/canvas/game_audio.dart ('k') | samples/pop_pop_win/lib/src/canvas/game_element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698