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

Side by Side Diff: dart/samples/third_party/pop-pop-win/web/dom/game_dom.dart

Issue 64033002: Version 0.8.10.8 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 import 'dart:html'; 1 import 'dart:html';
2 import 'package:poppopwin/html.dart'; 2 import 'package:poppopwin/html.dart';
3 3
4 main(){ 4 void main() {
5 final int w = 16, h = 16, m = 40; 5 final int w = 16, h = 16, m = 40;
6 6
7 final TableElement poppopwinTable = query('#gameTable'); 7 final TableElement poppopwinTable = querySelector('#gameTable');
8 final Element bombsLeftDiv = query('#bombsLeft'); 8 final Element bombsLeftDiv = querySelector('#bombsLeft');
9 final Element gameStateDiv = query('#gameState'); 9 final Element gameStateDiv = querySelector('#gameState');
10 final Element clockDiv = query('#clock'); 10 final Element clockDiv = querySelector('#clock');
11 final gameView = new GameView(w, h, m, 11 final gameView = new GameView(w, h, m, poppopwinTable, bombsLeftDiv,
12 poppopwinTable, bombsLeftDiv, gameStateDiv, clockDiv); 12 gameStateDiv, clockDiv);
13 13
14 final DivElement highScoreDiv = query('#highScore'); 14 final DivElement highScoreDiv = querySelector('#highScore');
15 final highScoreView = new HighScoreView(gameView, highScoreDiv); 15 final highScoreView = new HighScoreView(gameView, highScoreDiv);
16 16
17 final ButtonElement newGameButton = query('#newGame'); 17 final ButtonElement newGameButton = querySelector('#newGame');
18 newGameButton.onClick.listen((args) => gameView.newGame()); 18 newGameButton.onClick.listen((args) => gameView.newGame());
19 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698