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

Unified Diff: sky/sdk/example/game/lib/util.dart

Issue 1215413002: First pass on action animations for 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/sdk/example/game/lib/util.dart
diff --git a/sky/sdk/example/game/lib/util.dart b/sky/sdk/example/game/lib/util.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8d64eaf9213d73fdf77446da065da5a6cb8483ec
--- /dev/null
+++ b/sky/sdk/example/game/lib/util.dart
@@ -0,0 +1,7 @@
+part of sprites;
+
+num _clamp(num val, num min, num max) {
abarth-chromium 2015/07/01 22:20:53 https://api.dartlang.org/apidocs/channels/stable/d
+ if (val < min) return min;
+ if (val > max) return max;
+ return val;
+}
« sky/sdk/example/game/lib/sprite_box.dart ('K') | « sky/sdk/example/game/lib/sprites.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698