Code:
ImageManager.loadMenu = function(filename, hue) {
return this.loadBitmap('img/custom_menu/', filename, hue, false);
};The code work fine, images are loading without problem so far but is it fine and safe to use or will have problem later when, I don't know, export the game?
And as second question (so won't make 7 bilions of thread and get killed :X), I noticed when trying to console.log for test something when I open console the menu start a bit to lag and getting this "[Violation] 'requestAnimationFrame' handler took 95ms". Is this even normal? My guess the cause could be the cursor animation I made, where from 255 opacity goes to 180 and back to 255 in a update. Thanks! :3