mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Deletes old test game Demo game is now playable Updates demo game with steering and changes in sprites Fixes smaller bugs in sprites Refactor class names in game demo Strips Box2D from game Fixes ordering in game node Adds frameRate property to SpriteBox and improves update methods. Fixes node to box transformations for hit tests Fixes minor code issues R=abarth@chromium.org Review URL: https://codereview.chromium.org/1179333002.
22 lines
980 B
Dart
22 lines
980 B
Dart
import 'dart:sky';
|
|
import 'lib/game_demo.dart';
|
|
import 'lib/sprites.dart';
|
|
import 'package:sky/app/view.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",
|
|
"https://raw.githubusercontent.com/slembcke/GalacticGuardian.spritebuilder/GDC/Packages/SpriteBuilder%20Resources.sbpack/Sprites/resources-auto/laserBlue.png",
|
|
],
|
|
allLoaded);
|
|
}
|
|
|
|
void allLoaded(ImageMap loader) {
|
|
app = new AppView(root: (new GameDemoBox(new GameDemoWorld(loader))));
|
|
}
|