From 119a652d178a32697fcbb40dfcae114a5d3e0327 Mon Sep 17 00:00:00 2001 From: Viktor Lidholt Date: Mon, 24 Aug 2015 16:41:05 -0700 Subject: [PATCH] Minor code cleanup --- examples/game/lib/action_spline.dart | 2 -- examples/game/lib/game_demo.dart | 3 --- examples/game/lib/main.dart | 13 ------------- 3 files changed, 18 deletions(-) diff --git a/examples/game/lib/action_spline.dart b/examples/game/lib/action_spline.dart index 077b61ba35..61e7835fa2 100644 --- a/examples/game/lib/action_spline.dart +++ b/examples/game/lib/action_spline.dart @@ -50,8 +50,6 @@ class ActionSpline extends ActionInterval { Point newPos = _cardinalSplineAt(p0, p1, p2, p3, tension, lt); - //print("newPos: $newPos"); - setter(newPos); } } diff --git a/examples/game/lib/game_demo.dart b/examples/game/lib/game_demo.dart index def48f867c..aaceee4396 100644 --- a/examples/game/lib/game_demo.dart +++ b/examples/game/lib/game_demo.dart @@ -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'; diff --git a/examples/game/lib/main.dart b/examples/game/lib/main.dart index 1efda12931..c615451289 100644 --- a/examples/game/lib/main.dart +++ b/examples/game/lib/main.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);