[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/contrib/soundtest soundtest.cxx,1.1,1.2
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/contrib/soundtest soundtest.cxx,1.1,1.2 |
Date: |
18 Feb 2003 15:03:23 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/contrib/soundtest
In directory dark:/tmp/cvs-serv29465
Modified Files:
soundtest.cxx
Log Message:
misc stuff
Index: soundtest.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/contrib/soundtest/soundtest.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- soundtest.cxx 18 Feb 2003 14:21:20 -0000 1.1
+++ soundtest.cxx 18 Feb 2003 15:03:21 -0000 1.2
@@ -49,6 +49,21 @@
bool left_down = false;
while (true)
{
+ if (CL_Keyboard::get_keycode(CL_KEY_1))
+ PingusSound::play_music("music/pingus-1.it");
+ else if (CL_Keyboard::get_keycode(CL_KEY_2))
+ PingusSound::play_music("music/pingus-2.it");
+ else if (CL_Keyboard::get_keycode(CL_KEY_3))
+ PingusSound::play_music("music/pingus-3.it");
+ else if (CL_Keyboard::get_keycode(CL_KEY_4))
+ PingusSound::play_music("music/pingus-5.it");
+ else if (CL_Keyboard::get_keycode(CL_KEY_5))
+ PingusSound::play_music("music/pingus-5.it");
+ else if (CL_Keyboard::get_keycode(CL_KEY_6))
+ PingusSound::play_music("music/pingus-6.it");
+ else if (CL_Keyboard::get_keycode(CL_KEY_0))
+ PingusSound::stop_music();
+
if (CL_Mouse::left_pressed() && !left_down)
{
left_down = true;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/contrib/soundtest soundtest.cxx,1.1,1.2,
grumbel <=