Skip to content

Commit

Permalink
Fixed execution of RickJS
Browse files Browse the repository at this point in the history
Must use Gamalto/tree/eb29e2967d8f597a68faeb0d3af2955afa7419ee
  • Loading branch information
chrilith committed Apr 14, 2018
1 parent c86b7e5 commit 8094dcc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/syssnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
A = G.AudioMixer;

Syssnd.init = function() {
mixer = new G.AudioMixer(4, A.BIT_HTML5AUDIO);
mixer = Snd.mixer;
}

/*
Expand All @@ -39,7 +39,7 @@
var snd = Snd.getItem(name);
if (snd) {
//snd.play(G.Convert.toUInt16(loop));
mixer.playSound(snd, G.Convert.toUInt16(loop));
mixer.playSound(snd, G.Convert.toUInt16(loop) - 1);
}
}

Expand Down
6 changes: 5 additions & 1 deletion source/xrick.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Fix problem with use of old version of Gamalto (and some internal problems too...)
G.Vector = G.Vector2;

var

Sys = {},
Expand Down Expand Up @@ -36,7 +39,8 @@ XRick = {
var nb = 0;

Data = new G.BitmapLibrary();
Snd = new G.SoundPool();
var mixer = G.AudioMixer.create(4, G.AudioMixer.BIT_HTML5AUDIO);
Snd = new G.SoundPool(mixer);

Data.pushItem("pic_splash", "data/title.png");
Data.pushItem("pic_haf", "data/haf.png");
Expand Down

0 comments on commit 8094dcc

Please sign in to comment.