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

Unified Diff: sky/examples/game/lib/sprite.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/sprite.dart
diff --git a/sky/examples/game/lib/sprite.dart b/sky/examples/game/lib/sprite.dart
index 063522a8499f98e881e049804a3c8db27d27ecee..c669cd351faf64dd7492307145d0a48768d8764c 100644
--- a/sky/examples/game/lib/sprite.dart
+++ b/sky/examples/game/lib/sprite.dart
@@ -14,8 +14,8 @@ class Sprite extends NodeWithSize {
}
Sprite.withImage(Image image) {
- this.pivot = new Point(0.5, 0.5);
- this.size = new Size(image.width.toDouble(), image.height.toDouble());
+ pivot = new Point(0.5, 0.5);
+ size = new Size(image.width.toDouble(), image.height.toDouble());
_image = image;
}

Powered by Google App Engine
This is Rietveld 408576698