• Content Count

  • Joined

  • Last visited

About mrkarate

  • Rank
    Advanced Member

Recent Profile Visitors

846 profile views
  1. great empu!, no , there's no reason to use v3, I think v4 is better option too. now I can finally move to panda2, will buy the engine, the plugin is just import? or change some sintaxis ?
  2. nice!, what version of pixi do you plan to integrate as webgl rendering? (v3 , v4?)
  3. hi, it's great to see the engine updated and an entirely suit, 99 usd it's a good price for all the stuff. I'm are an active pandajs user developer, using ver 1.13 I think with a lot off stuff extra like the updated pixi.js and other kind of things like that. My question are simple, panda 2 uses webgl rendering or it's full canvas rendering?, is there a real reason, in terms of performance gain, using panda 2 instead of the old one? when I ask for performance I'm only mean how it's run on mid- end mobile devices. thanks!
  4. mrkarate

    Panda 2 development

    yes! I'm using your fork, have you update it with more??, (I like it!, love animation system that your fork use it). What editor you actually use? I use intelliJ with web-javascript module, to activate autocomplete, but don't work very well.
  5. mrkarate

    Panda 2 development

    Hi!, about the ios9 orientation bug, I still work with a 1.13.2 ver (a modded version with animated system from panda 2, but it's still panda 1) to everyone still using panda 1 and want to fix this (you won't have device.ios9 method), I just do same as enpu say, but replace game.device.IOS9, to game.device.iOS (so this will affect to any apple device, but already test and don't break nothing. and call after game.system._onWindowResize(); to game.system.checkOrientation();. then, if you want to use an image to display "please rotate" go to engine/system.js, and edit the function resizeRotateImage: and comment this line: if (window.innerHeight < game.System.rotateDiv.image.height) { and change the "auto", on width or height (depend if you game is landscape, portrait), and add window.innerWidth + 'px' (or height), with this, your img always resize,we forze it, yes maybe can deform a little if the device has too wide aspect, or too portrait, but, this is the only way I found to always see the image, and always display correctly. before ios9, this feature works perfect, don't know why ios9 appear to broke all (google safari webAudio...) Enpu about panda2, I want to know, why not webGL ? you did a webgl port to impactjs, trying to save it, (I guess only haha), then that's your start point to create this wonderfull engine as panda, incredibble performance with webgl, (yes canvas perform very well too, but webgl is still faster), and then, version 2.0, you decide not implemeted? is there a reason? Every engine I know, is always more capable if has webgl support from the start (because when it's a third party plugin, always is a bad signal), and always the engine with native support of it performs well, so really don't understand the meaning of this, for example, the same project build with panda, if you transcode to panda 2, you get better or at least same performance than panda 1?, I mean, you are creating a super canvas performance engine?, or this is another reason? I really want to know about this, because I want to continue using panda forever, I using impactjs, like a year, then will start to phaser, but sudendly I see panda, reconize you for the impact-webgl-pixi plugin, and don't think twice, since then I have using panda, but this kind of giving webgl support to v2, like a non priority or only for external plugin... I really make me affraid of it. anyway, good work!
  6. Hi, I use ejecta to build my game to native xcode, and all was working ok. My question is because I need to implemente a third party native xcode api to the game, so, I need to get some way my score, and send it to this api. so, my question is, is possible some way, I can create a native objC var and set it with my score var from my javascript game?, or it simple impossible? Really thanks guys!.
  7. hi, this is weird, but I add a sprite to the loader bar, (first load texture, when texture it's loaded I create sprite var, and when sprite width/height is correct detected (on the first frame it's show 1), then I add to stage, and everything it's ok, the problem it's before that I do: this.logo.interactive = true; this.logo.buttonMode = true; = this.logo.touchstart = this.clickLogo.bind(this); but the function clickLogo never call, clickLogo:function() { alert("QQQQ")'MY LINK!!!/'); }, all other links on my game works, so, is there some problem to call events on loader? (I make this code on the loader.js class, and swapChildren my logo for the barFg, so this way the bar is over my logo. thanks! EDIT: I forgot to mention, no debugs errors at all, just the event's don't fired
  8. yes, I already do that, as I commented it (sorry if I wrote like shit haha, my english it's not good), but I try to delete the baseTexture and the texture, with destroy, using generateTexure, and using cacheasBitmap too, with generateTexture, I see how the sprite using that texture, becoming a black square, so I see how the baseTexture is deleting, then asign null to that texture, with cacheAsBitmap, I, try to set to null, all sprites become again, (no longer a bitmap), and remove every one, but after 6 or 8 times of generate this textures the browser crash (it's same effect If I generate this textures at same time, it's for this I can be sure this bitmaps don't remove from memory, no mather what destroy or other method I use. I can check too, it's not a ios problem, on android too, but android has a lot memory assigned to the browser ( on android I can generate about 15-20 of this textures), so really can't do more, You can check my game right?, I generate a long tile base divided maps before, now I use every tile as a single draw call, but with a smart culling control, so the performance I gained using a single bitmap, is equally to now, instead of the extra draw calls. thanks!
  9. well... finally can't find a solution, every time I make a generateTexture or cacheAsBitmap, it's like memory never release, so finally the game will crash (on mobile, obiosly), no matter what what thing I do to delete cache, texture, memory etc... so finally I create a method to culling my tiles, yes, this will generate more draw calls than use only one big sprite, but, incredibble, my performance it's not worst, I think maybe a little, but no more 1-3 fps less, and this way, my game never crash, always use same memory, Still don't know why the hell the are generateTexture and cacheAsBitmap methods, if you can't use them n times??, maybe you need to unload all cache memory? (but this means reset all your game), really don't understand it, hope someone can explain it. thanks!
  10. found the problem... it's... AUDIO CLASS !!, looks like when resume function executed, try to resume audio too,but I haven't any debugs or error msgs here, but I track audio class and found, when I have on game, and I change from other tab, game pause, and then I came back, game resume but my backgroud music stop and this msg throw (this in on pc too, only on ios work fine) TypeError: Value being assigned to AudioParam.value is not a finite floating-point value. and the line generate that error is: audio.playbackRate.value = rate || 1; function play from audio class I change audio.playbackRate.value = rate || 1; to simple audio.playbackRate.value = 1; and all works ok now, game resize ok, etc... what was exactly this rate value?? thanks!
  11. here's the exact code than make my bug real: alert("ok5") if (this.rotateScreenVisible && game.system && typeof game.system.pause === 'function') game.system.pause(); if (!this.rotateScreenVisible && game.system && typeof game.system.resume === 'function') game.system.resume(); alert("ok6") on android, I got unitl OK5, so the code hang there, (this is the this.checkOrientation(); function)
  12. found the problem!! it's more weird... its FALSE ON ANDROID?!?!?!? WHY?!?!?!?! (on ios it's ok) this is the part of code: EDIT!! IT"S NOT THAT!!! WRONG debug!!! haha sorry, it's the this.checkOrientation(); function the problem onResize: function() { alert("QQQ " +; // Mobile orientation if ( this.checkOrientation(); //if (!game.System.scale) return; if ( { alert("NO????") this.ratio = this.orientation === 'landscape' ? this.width / this.height : this.height / this.width; alert("NO???") this.resizeToFill(); // Mobile resize var width = window.innerWidth; var height = window.innerHeight; // iOS innerHeight bug fixes if (game.device.iOS7 && window.innerHeight === 256) height = 320; if (game.device.iOS7 && window.innerHeight === 319) height = 320; if (game.device.iOS7 && game.device.pixelRatio === 2 && this.orientation === 'landscape') height += 2; if (game.device.iPad && height === 671) height = 672; the second time, the game never pass if ( { part very very weird....
  13. I have three different android devices, and none of them have some changes, I I send you a link throught private msg, can you check it?, wait game load, and then rotate it, and rotate again, maybe if you see the resize problem, you have an idea
  14. I just check!, on sytem, I just debug it, and on ios, when you rotate the device, (portrait to landscape, landscape to portrait, etc), always enter to the onResize function, inside the if module if (this.width > this.height) { because is a landscape game, but on android, only the first time, and never more... very weird...