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

Unified Diff: samples/pop_pop_win/lib/src/canvas/game_audio.dart

Issue 242443008: samples/pop_pop_win: now based on StageXL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tiny nit Created 6 years, 8 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: samples/pop_pop_win/lib/src/canvas/game_audio.dart
diff --git a/samples/pop_pop_win/lib/src/canvas/game_audio.dart b/samples/pop_pop_win/lib/src/canvas/game_audio.dart
deleted file mode 100644
index c4513dfe38cf284d6a41748b1dfb936e8966dba6..0000000000000000000000000000000000000000
--- a/samples/pop_pop_win/lib/src/canvas/game_audio.dart
+++ /dev/null
@@ -1,24 +0,0 @@
-part of pop_pop_win.canvas;
-
-class GameAudio {
- static const String WIN = 'win', CLICK = 'click', POP = 'Pop', FLAG = 'flag',
- UNFLAG = 'unflag', BOMB = 'Bomb', THROW_DART = 'throw';
-
- static final EventHandle<String> _audioEventHandle = new EventHandle<String>();
-
- static Stream<String> get audioEvent => _audioEventHandle.stream;
-
- static void win() => _audioEventHandle.add(WIN);
-
- static void click() => _audioEventHandle.add(CLICK);
-
- static void pop() => _audioEventHandle.add(POP);
-
- static void flag() => _audioEventHandle.add(FLAG);
-
- static void unflag() => _audioEventHandle.add(UNFLAG);
-
- static void bomb() => _audioEventHandle.add(BOMB);
-
- static void throwDart() => _audioEventHandle.add(THROW_DART);
-}
« no previous file with comments | « samples/pop_pop_win/lib/src/canvas/board_element.dart ('k') | samples/pop_pop_win/lib/src/canvas/game_background_element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698