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

Unified Diff: sky/examples/game/main.dart

Issue 1179333002: Playable demo game and bug fixes in sprites (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« sky/examples/game/lib/node.dart ('K') | « sky/examples/game/lib/sprites.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/game/main.dart
diff --git a/sky/examples/game/main.dart b/sky/examples/game/main.dart
index 273204c3f4f5ac513df30faee5d683a75eb555dd..0a273acb7f4be4c9367789da10354227986fbd4d 100644
--- a/sky/examples/game/main.dart
+++ b/sky/examples/game/main.dart
@@ -1,5 +1,6 @@
import 'dart:sky';
-import 'lib/game.dart';
+import 'package:sky/framework/app.dart';
+import 'lib/game_demo.dart';
import 'lib/sprites.dart';
import 'package:sky/framework/app.dart';
@@ -11,13 +12,11 @@ void main() {
"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",
+ "https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder/GDC/Packages/SpriteBuilder%20Resources.sbpack/Sprites/resources-auto/laserBlue.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((new GameTestsBox(new GameTests(loader), SpriteBoxTransformMode.nativePoints)));
+ app = new AppView(root: new GameDemoBox(new GameDemoWorld(loader)));
}
« sky/examples/game/lib/node.dart ('K') | « sky/examples/game/lib/sprites.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698