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

Unified Diff: dart/samples/third_party/pop-pop-win/lib/src/canvas/game_element.dart

Issue 64033002: Version 0.8.10.8 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/samples/solar/web/solar.dart ('k') | dart/samples/third_party/pop-pop-win/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/samples/third_party/pop-pop-win/lib/src/canvas/game_element.dart
===================================================================
--- dart/samples/third_party/pop-pop-win/lib/src/canvas/game_element.dart (revision 30037)
+++ dart/samples/third_party/pop-pop-win/lib/src/canvas/game_element.dart (working copy)
@@ -172,7 +172,7 @@
SquareElement._size * c.y);
final squareOffset = _popExplodeAnimationOffset + initialOffset;
- var delay = _popAnimationHitFrame + ((c - start).length * 4).toInt();
+ var delay = _popAnimationHitFrame + ((c - start).magnitude * 4).toInt();
delay += rnd.nextInt(10);
return [c, initialOffset, squareOffset, delay];
« no previous file with comments | « dart/samples/solar/web/solar.dart ('k') | dart/samples/third_party/pop-pop-win/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698