From 7bcd81f77b0f1a0a80c5f36e8b24369d6e4b7ea5 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 27 Nov 2017 13:46:06 +0100 Subject: [PATCH] Initial Commit: CC - Touch Start (t3ks0fx53q.js) --- t3ks0fx53q.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 t3ks0fx53q.js diff --git a/t3ks0fx53q.js b/t3ks0fx53q.js new file mode 100644 index 0000000..fe9fa0f --- /dev/null +++ b/t3ks0fx53q.js @@ -0,0 +1,27 @@ +data.event.preventDefault(); + +var touches = Object.keys(data); +/** + * This code is rediculous - but it fixes the bug in ios where audio does not play + */ + +/*GameLib.Event.Emit( + GameLib.Event.PLAY_AUDIO, + { + name : 'Audio - Flamethrower' + } +); + +if (touches.length > 2) { +*/ + GameLib.Event.Emit(GameLib.Event.MOUSE_DOWN); +/*} else { + GameLib.Event.Emit( + GameLib.Event.STOP_AUDIO, + { + name : 'Audio - Flamethrower' + } + ); +}*/ + +//@ sourceURL=touchStart.js \ No newline at end of file