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

Side by Side Diff: sky/sdk/example/game/lib/game_demo_world.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/game_demo.dart ('k') | sky/sdk/example/game/lib/image_map.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 game; 1 part of game;
2 2
3 const double _steeringThreshold = 0.0; 3 const double _steeringThreshold = 0.0;
4 const double _steeringMax = 150.0; 4 const double _steeringMax = 150.0;
5 5
6 // Random generator 6 // Random generator
7 Math.Random _rand = new Math.Random(); 7 Math.Random _rand = new Math.Random();
8 8
9 const double _gameSizeWidth = 1024.0; 9 const double _gameSizeWidth = 1024.0;
10 const double _gameSizeHeight = 1024.0; 10 const double _gameSizeHeight = 1024.0;
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 double dy = a.y - b.y; 454 double dy = a.y - b.y;
455 if (dx < 0.0) dx = -dx; 455 if (dx < 0.0) dx = -dx;
456 if (dy < 0.0) dy = -dy; 456 if (dy < 0.0) dy = -dy;
457 if (dx > dy) { 457 if (dx > dy) {
458 return dx + dy/2.0; 458 return dx + dy/2.0;
459 } 459 }
460 else { 460 else {
461 return dy + dx/2.0; 461 return dy + dx/2.0;
462 } 462 }
463 } 463 }
OLDNEW
« no previous file with comments | « sky/sdk/example/game/lib/game_demo.dart ('k') | sky/sdk/example/game/lib/image_map.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698