Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: sky/sdk/example/game/lib/node.dart

Issue 1210173004: Move examples to //sky/sdk/example (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/sdk/example/game/lib/image_map.dart ('k') | sky/sdk/example/game/lib/node_with_size.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of sprites; 1 part of sprites;
2 2
3 double convertDegrees2Radians(double degrees) => degrees * Math.PI/180.8; 3 double convertDegrees2Radians(double degrees) => degrees * Math.PI/180.8;
4 4
5 double convertRadians2Degrees(double radians) => radians * 180.0/Math.PI; 5 double convertRadians2Degrees(double radians) => radians * 180.0/Math.PI;
6 6
7 /// A base class for all objects that can be added to the sprite node tree and r endered to screen using [SpriteBox] and 7 /// A base class for all objects that can be added to the sprite node tree and r endered to screen using [SpriteBox] and
8 /// [SpriteWidget]. 8 /// [SpriteWidget].
9 /// 9 ///
10 /// The [Node] class itself doesn't render any content, but provides the basic f unctions of any type of node, such as 10 /// The [Node] class itself doesn't render any content, but provides the basic f unctions of any type of node, such as
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 /// else if (event.type == 'pointerup') { 521 /// else if (event.type == 'pointerup') {
522 /// opacity = 1.0; 522 /// opacity = 1.0;
523 /// } 523 /// }
524 /// return true; 524 /// return true;
525 /// } 525 /// }
526 /// } 526 /// }
527 bool handleEvent(SpriteBoxEvent event) { 527 bool handleEvent(SpriteBoxEvent event) {
528 return false; 528 return false;
529 } 529 }
530 } 530 }
OLDNEW
« no previous file with comments | « sky/sdk/example/game/lib/image_map.dart ('k') | sky/sdk/example/game/lib/node_with_size.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698