14 lines
552 B
JavaScript
14 lines
552 B
JavaScript
(function() {
|
|
if(typeof libmain!="object") {
|
|
if(typeof loadfail=="function") {
|
|
loadfail("libclickfx.js: libmain(type of "+(typeof libmain)+") is not an object");
|
|
} else {
|
|
window.alert("libclickfx.js: libmain(type of "+(typeof libmain)+") is not an object");
|
|
}
|
|
return;
|
|
}
|
|
libmain.scenes.click_fx.interactiveChildren=false;
|
|
libmain.scenes.click_fx.eventMode="static";
|
|
libmain.scenes.click_fx.on("tap", add_click_fx);
|
|
libmain.scenes.click_fx.on("mousedown", add_click_fx);
|
|
}); |