- [CHG] Retocat el mòdul JAudio per a adaptar-se a les necesitats del joc.
- [NEW] audio::getCurrentMusic() - [NEW] audio::stopAllChannels() - [FIX] El JAudio i JInput han de inicialitzarse abans de entrar al Init del joc - Afegides músiques i alguns sons - Comence a fer que sone cada musica i so en el seu lloc - [TOFIX] LAG EN EL AUDIO!
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "jdraw.h"
|
||||
#include "jfile.h"
|
||||
#include "jinput.h"
|
||||
#include "jaudio.h"
|
||||
#include "editor.h"
|
||||
#include "console.h"
|
||||
#include <string.h>
|
||||
@@ -90,6 +91,13 @@ void game::init()
|
||||
loadConfig();
|
||||
draw::init("The Pool", 320, 240, zoom, fullscreen);
|
||||
console::init();
|
||||
|
||||
audio::loadSound("snd_walk.wav");
|
||||
audio::loadSound("snd_push.wav");
|
||||
audio::loadSound("snd_pick.wav");
|
||||
audio::loadSound("snd_jump.wav");
|
||||
audio::loadSound("snd_disappear.wav");
|
||||
audio::loadSound("snd_fall.wav");
|
||||
}
|
||||
|
||||
draw::loadPalette("test.gif");
|
||||
|
||||
Reference in New Issue
Block a user