mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Merge pull request #528 from iansf/asteroids_move_main
Move main.dart to lib/main.dart for the game
This commit is contained in:
commit
3a2fd489fa
@ -79,7 +79,7 @@ List<SkyDemo> demos = [
|
||||
),
|
||||
new SkyDemo(
|
||||
name: 'Asteroids',
|
||||
href: '../../game/main.dart',
|
||||
href: '../../game/lib/main.dart',
|
||||
bundle: 'game.skyx',
|
||||
description: '2D game using sprite sheets',
|
||||
textTheme: typography.white,
|
||||
|
@ -5,7 +5,7 @@
|
||||
import("//sky/build/sky_app.gni")
|
||||
|
||||
sky_app("game") {
|
||||
main_dart = "main.dart"
|
||||
main_dart = "lib/main.dart"
|
||||
manifest = "sky.yaml"
|
||||
|
||||
if (is_android) {
|
||||
|
@ -13,13 +13,13 @@ import 'package:sky/widgets/framework.dart';
|
||||
import 'package:sky/widgets/task_description.dart';
|
||||
import 'package:sky/widgets/theme.dart';
|
||||
|
||||
import 'lib/game_demo.dart';
|
||||
import 'lib/sprites.dart';
|
||||
import 'game_demo.dart';
|
||||
import 'sprites.dart';
|
||||
|
||||
AssetBundle _initBundle() {
|
||||
if (rootBundle != null)
|
||||
return rootBundle;
|
||||
return new NetworkAssetBundle(Uri.base);
|
||||
return new NetworkAssetBundle(new Uri.directory(Uri.base.origin));
|
||||
}
|
||||
|
||||
final AssetBundle _bundle = _initBundle();
|
Loading…
Reference in New Issue
Block a user