OLD | NEW |
1 import 'dart:sky'; | 1 import 'dart:sky'; |
2 import 'lib/game.dart'; | 2 import 'lib/game.dart'; |
3 import 'lib/sprites.dart'; | 3 import 'lib/sprites.dart'; |
4 import 'package:sky/framework/app.dart'; | 4 import 'package:sky/app/view.dart'; |
5 | 5 |
6 AppView app; | 6 AppView app; |
7 | 7 |
8 void main() { | 8 void main() { |
9 // Load images | 9 // Load images |
10 new ImageMap([ | 10 new ImageMap([ |
11 "https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder
/GDC/Packages/SpriteBuilder%20Resources.sbpack/resources-auto/BurnTexture.png", | 11 "https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder
/GDC/Packages/SpriteBuilder%20Resources.sbpack/resources-auto/BurnTexture.png", |
12 "https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder
/GDC/Packages/SpriteBuilder%20Resources.sbpack/Sprites/resources-auto/asteroid_b
ig_002.png", | 12 "https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder
/GDC/Packages/SpriteBuilder%20Resources.sbpack/Sprites/resources-auto/asteroid_b
ig_002.png", |
13 "https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder
/GDC/Packages/SpriteBuilder%20Resources.sbpack/Sprites/resources-auto/GG_blueshi
p_Lv3.png", | 13 "https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder
/GDC/Packages/SpriteBuilder%20Resources.sbpack/Sprites/resources-auto/GG_blueshi
p_Lv3.png", |
14 ], | 14 ], |
15 allLoaded); | 15 allLoaded); |
16 } | 16 } |
17 | 17 |
18 void allLoaded(ImageMap loader) { | 18 void allLoaded(ImageMap loader) { |
19 // Create a new app with the sprite box that contains our game world | 19 // Create a new app with the sprite box that contains our game world |
20 //app = new AppView(new GameBox(new GameWorld(loader))); | 20 //app = new AppView(new GameBox(new GameWorld(loader))); |
21 //print("hello"); | 21 //print("hello"); |
22 app = new AppView(root: (new GameTestsBox(new GameTests(loader), SpriteBoxTran
sformMode.nativePoints))); | 22 app = new AppView(root: (new GameTestsBox(new GameTests(loader), SpriteBoxTran
sformMode.nativePoints))); |
23 } | 23 } |
OLD | NEW |