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

Unified Diff: sky/examples/game/lib/node_with_size.dart

Issue 1179333002: Playable demo game and bug fixes in sprites (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 side-by-side diff with in-line comments
Download patch
Index: sky/examples/game/lib/node_with_size.dart
diff --git a/sky/examples/game/lib/node_with_size.dart b/sky/examples/game/lib/node_with_size.dart
index 1e7c65729c90c1f9060a30690531a67c2a52f040..3a6849a954f68c06c8bb75a91fe6c81678341b58 100644
--- a/sky/examples/game/lib/node_with_size.dart
+++ b/sky/examples/game/lib/node_with_size.dart
@@ -5,11 +5,11 @@ abstract class NodeWithSize extends Node {
Point pivot;
NodeWithSize() {
- size = new Size(0.0, 0.0);
- pivot = new Point(0.0, 0.0);
+ size = Size.zero;
+ pivot = Point.origin;
}
- NodeWithSize.withSize(Size size, [Point pivot]);
+ NodeWithSize.withSize(Size this.size, [Point this.pivot]);
void applyTransformForPivot(PictureRecorder canvas) {
if (pivot.x != 0 || pivot.y != 0) {

Powered by Google App Engine
This is Rietveld 408576698