commit
465fbbf9f1
@ -50,8 +50,6 @@ class ActionSpline extends ActionInterval {
|
||||
|
||||
Point newPos = _cardinalSplineAt(p0, p1, p2, p3, tension, lt);
|
||||
|
||||
//print("newPos: $newPos");
|
||||
|
||||
setter(newPos);
|
||||
}
|
||||
}
|
||||
|
@ -2,13 +2,10 @@ library game;
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:sky' as sky;
|
||||
import 'dart:math' as Math;
|
||||
import 'sprites.dart';
|
||||
|
||||
import 'package:sky/rendering/object.dart';
|
||||
import 'package:sky/widgets/framework.dart';
|
||||
import 'package:sky/widgets/navigator.dart';
|
||||
import 'package:sky/animation/curves.dart';
|
||||
import 'package:vector_math/vector_math_64.dart';
|
||||
|
||||
part 'game_demo_node.dart';
|
||||
|
@ -81,15 +81,6 @@ class GameDemoApp extends App {
|
||||
int _lastScore = 0;
|
||||
|
||||
void initState() {
|
||||
// _game = new GameDemoNode(
|
||||
// _imageMap,
|
||||
// _spriteSheet,
|
||||
// _spriteSheetUI,
|
||||
// _sounds,
|
||||
// (lastScore) {
|
||||
// setState(() {_lastScore = lastScore;});
|
||||
// });
|
||||
|
||||
_navigationState = new NavigationState([
|
||||
new Route(
|
||||
name: '/',
|
||||
@ -252,10 +243,6 @@ class _TextureButtonToken {
|
||||
|
||||
class MainScreenBackground extends NodeWithSize {
|
||||
MainScreenBackground() : super(new Size(320.0, 320.0)) {
|
||||
// Sprite sprtBackground = new Sprite.fromImage(_imageMap['assets/starfield.png']);
|
||||
// sprtBackground.position = new Point(160.0, 160.0);
|
||||
// addChild(sprtBackground);
|
||||
|
||||
assert(_spriteSheet.image != null);
|
||||
|
||||
StarField starField = new StarField(_spriteSheet, 200, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user