Commit 3a2fd489 authored by Ian Fischer's avatar Ian Fischer

Merge pull request #528 from iansf/asteroids_move_main

Move main.dart to lib/main.dart for the game
parents 01255a64 1d661379
...@@ -79,7 +79,7 @@ List<SkyDemo> demos = [ ...@@ -79,7 +79,7 @@ List<SkyDemo> demos = [
), ),
new SkyDemo( new SkyDemo(
name: 'Asteroids', name: 'Asteroids',
href: '../../game/main.dart', href: '../../game/lib/main.dart',
bundle: 'game.skyx', bundle: 'game.skyx',
description: '2D game using sprite sheets', description: '2D game using sprite sheets',
textTheme: typography.white, textTheme: typography.white,
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import("//sky/build/sky_app.gni") import("//sky/build/sky_app.gni")
sky_app("game") { sky_app("game") {
main_dart = "main.dart" main_dart = "lib/main.dart"
manifest = "sky.yaml" manifest = "sky.yaml"
if (is_android) { if (is_android) {
......
...@@ -13,13 +13,13 @@ import 'package:sky/widgets/framework.dart'; ...@@ -13,13 +13,13 @@ import 'package:sky/widgets/framework.dart';
import 'package:sky/widgets/task_description.dart'; import 'package:sky/widgets/task_description.dart';
import 'package:sky/widgets/theme.dart'; import 'package:sky/widgets/theme.dart';
import 'lib/game_demo.dart'; import 'game_demo.dart';
import 'lib/sprites.dart'; import 'sprites.dart';
AssetBundle _initBundle() { AssetBundle _initBundle() {
if (rootBundle != null) if (rootBundle != null)
return rootBundle; return rootBundle;
return new NetworkAssetBundle(Uri.base); return new NetworkAssetBundle(new Uri.directory(Uri.base.origin));
} }
final AssetBundle _bundle = _initBundle(); final AssetBundle _bundle = _initBundle();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment