| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:sky'; | 5 import 'dart:sky'; |
| 6 | 6 |
| 7 import 'package:sky/mojo/activity.dart' as activity; | 7 import 'package:sky/mojo/activity.dart' as activity; |
| 8 import 'package:sky/mojo/asset_bundle.dart'; | 8 import 'package:sky/mojo/asset_bundle.dart'; |
| 9 import 'package:sky/mojo/shell.dart' as shell; | 9 import 'package:sky/mojo/shell.dart' as shell; |
| 10 import 'package:sky/painting/box_painter.dart'; | 10 import 'package:sky/painting/box_painter.dart'; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 decoration: new BoxDecoration( | 76 decoration: new BoxDecoration( |
| 77 backgroundImage: new BackgroundImage( | 77 backgroundImage: new BackgroundImage( |
| 78 image: _bundle.loadImage('assets/stocks_thumbnail.png'), | 78 image: _bundle.loadImage('assets/stocks_thumbnail.png'), |
| 79 fit: BackgroundFit.cover | 79 fit: BackgroundFit.cover |
| 80 ) | 80 ) |
| 81 ) | 81 ) |
| 82 ), | 82 ), |
| 83 new SkyDemo( | 83 new SkyDemo( |
| 84 name: 'Asteroids', | 84 name: 'Asteroids', |
| 85 href: '../../game/main.dart', | 85 href: '../../game/main.dart', |
| 86 bundle: 'game.skyx', |
| 86 description: '2D game using sprite sheets to achieve high performance', | 87 description: '2D game using sprite sheets to achieve high performance', |
| 87 textTheme: typography.white, | 88 textTheme: typography.white, |
| 88 decoration: new BoxDecoration( | 89 decoration: new BoxDecoration( |
| 89 backgroundImage: new BackgroundImage( | 90 backgroundImage: new BackgroundImage( |
| 90 image: _bundle.loadImage('assets/game_thumbnail.png'), | 91 image: _bundle.loadImage('assets/game_thumbnail.png'), |
| 91 fit: BackgroundFit.cover | 92 fit: BackgroundFit.cover |
| 92 ) | 93 ) |
| 93 ) | 94 ) |
| 94 ), | 95 ), |
| 95 new SkyDemo( | 96 new SkyDemo( |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 ) | 191 ) |
| 191 ) | 192 ) |
| 192 ) | 193 ) |
| 193 ); | 194 ); |
| 194 } | 195 } |
| 195 } | 196 } |
| 196 | 197 |
| 197 void main() { | 198 void main() { |
| 198 runApp(new SkyHome()); | 199 runApp(new SkyHome()); |
| 199 } | 200 } |
| OLD | NEW |