Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
465fbbf9
Commit
465fbbf9
authored
Aug 25, 2015
by
Viktor Lidholt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #787 from vlidholt/master
Minor code cleanup
parents
14f3f58c
119a652d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
18 deletions
+0
-18
action_spline.dart
examples/game/lib/action_spline.dart
+0
-2
game_demo.dart
examples/game/lib/game_demo.dart
+0
-3
main.dart
examples/game/lib/main.dart
+0
-13
No files found.
examples/game/lib/action_spline.dart
View file @
465fbbf9
...
...
@@ -50,8 +50,6 @@ class ActionSpline extends ActionInterval {
Point
newPos
=
_cardinalSplineAt
(
p0
,
p1
,
p2
,
p3
,
tension
,
lt
);
//print("newPos: $newPos");
setter
(
newPos
);
}
}
examples/game/lib/game_demo.dart
View file @
465fbbf9
...
...
@@ -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'
;
examples/game/lib/main.dart
View file @
465fbbf9
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment