
R=ianh@google.com, eseidel@chromium.org Review URL: https://codereview.chromium.org/1178293004.
24 lines
998 B
Dart
24 lines
998 B
Dart
import 'dart:sky';
|
|
import 'lib/game.dart';
|
|
import 'lib/sprites.dart';
|
|
import 'package:sky/framework/app.dart';
|
|
|
|
AppView app;
|
|
|
|
void main() {
|
|
// Load images
|
|
new ImageMap([
|
|
"https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder/GDC/Packages/SpriteBuilder%20Resources.sbpack/resources-auto/BurnTexture.png",
|
|
"https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder/GDC/Packages/SpriteBuilder%20Resources.sbpack/Sprites/resources-auto/asteroid_big_002.png",
|
|
"https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder/GDC/Packages/SpriteBuilder%20Resources.sbpack/Sprites/resources-auto/GG_blueship_Lv3.png",
|
|
],
|
|
allLoaded);
|
|
}
|
|
|
|
void allLoaded(ImageMap loader) {
|
|
// Create a new app with the sprite box that contains our game world
|
|
//app = new AppView(new GameBox(new GameWorld(loader)));
|
|
//print("hello");
|
|
app = new AppView(root: (new GameTestsBox(new GameTests(loader), SpriteBoxTransformMode.nativePoints)));
|
|
}
|