• Content Count

  • Joined

  • Last visited

About zakhov

  • Rank

Recent Profile Visitors

1592 profile views
  1. That does sound like a great idea, if you need any help just drop a PM and I'll do my best to assist.
  2. You can download the master from here: and then run it locally using your LAMP Stack. Bear in mind some of the functions have changed in syntax (particles for example) or might be deprecated if you're using the latest dev engine but for most part it still serves its purpose well.
  3. zakhov

    Loader in Pandajs 2

    Cool. I would've made a pr but I thought my method was a bit too hack-ish. Good to hear that you've fixed it though. Cheers
  4. zakhov

    Loader in Pandajs 2

    Nevermind, fixed it myself. I just added a workaround to check for the audio formats at the getfile funciton in loader.js and ignore them even if retina | hires is enabled. Cheers
  5. zakhov

    Loader in Pandajs 2

    game.addMedia('assetfile','assetfilenname') So we only use game.addMedia for all asset loading from now on? I used game.addAsset and game.addAudio previously last time I used Panda JS 2.0. I'm going through the latest panda develop version and just trying to wrap my head around some of the changes. Something weird happened when I tried loading m4a/ogg audio files though, I enabled retina/hires and it loads all the image and image@2x assets correctly, including fonts. But for some reason it's looking for filename@2x.m4a/ogg for audio files as well. Is this a bug? game.addMedia('sound/sound_sfx.m4a','sound_fx'); Cheers
  6. Most of the stuff I've done is POC only. I'm quite a newbie to HTML5 games development in general so I'm just experimenting around. Using PandaJS has definitely been a great experience for me as it's a powerful engine whilst being "cleaner" and object-oriented than what I've tried in the past. I haven't published anything on the web yet, but that might change soon or when Panda 2.0 is officially released.
  7. Fader plugin is working for me here in Panda 2.0. Made some alterations to the code though. game.module( 'plugins.fader').body(function() { game.createClass('Fader', { color: 0x000000, speed: 500, fading: false, init: function(settings) { game.merge(this, settings); this.sprite = new game.Graphics(); this.sprite.beginFill(this.color); this.sprite.drawRect(0, 0, game.system.width, game.system.height); }, fadeIn: function(callback) { this.stop(); this.callback = callback; if (this.sprite.alpha === 0) this.sprite.alpha = 1; this.sprite.addTo(this.stage); this.tweenIn = new game.Tween(this.sprite);{ alpha: 0 }, this.speed); this.tweenIn.onComplete(this.fadeComplete.bind(this, true)); this.tweenIn.start(); this.fading = true; }, fadeOut: function(callback) { this.stop(); this.callback = callback; if (this.sprite.alpha === 1) this.sprite.alpha = 0; this.sprite.addTo(this.stage); this.tweenOut = new game.Tween(this.sprite);{ alpha: 1 }, this.speed); this.tweenOut.onComplete(this.fadeComplete.bind(this)); this.tweenOut.start(); this.fading = true; }, fadeComplete: function(remove) { this.fading = false; this.stop(); if (typeof this.callback === 'function') this.callback(); if (remove) this.stage.removeChild(this.sprite); }, stop: function() { if (this.tweenIn) { this.tweenIn.stop(); this.tweenIn = undefined; } if (this.tweenOut) { this.tweenOut.stop(); this.tweenOut = undefined; } }});});The you call it when transitioning to another scene (call it sceneNextScene for example) like this: this.addTimer(1000,function(){ game.system.setScene('sceneNextScene'); });this.fader = new game.Fader({color: 0xffffff, speed: 1000, stage: this.stage});this.fader.fadeOut();
  8. zakhov

    Panda 2 development

    Is Spine support for 2.0+ planned? I'm drafting a few character sketches and was wondering if we could eventually use Spine like in previous versions. Thanks
  9. zakhov

    Panda 2 development

    Same issue with me, on Safari with my iPhone 5C, the game doesn't go to fullscreen(browser nav buttons/address bar shows) and it pushes up the canvas as well in landscape view. Worked fine in iOS8 on iPhone 4S. Perhaps they changed something again.
  10. This is really nice. Would be really useful for a demo that I'm planning to do soon, now I can just use PandaJS and this plugin. Thanks!
  11. zakhov


    Nice work dude! Does this work with Animated sprites and bitmap text as well? EDIT: It seems like with Animation, the sprites flicker. Not working with text on my end so far. But it's working great with normal sprite images!
  12. zakhov

    Delete sprite?

    Depending on how you implemented the sprite to your scene, game.scene.container.removeChild(this.sprite);//replace container with container name you used to add the sprites//orthis.parent.removeChild(this.sprite);
  13. That solved it! Cheers enpu!
  14. Hi enpu, using the same code as above with the latest update freezes the game and triggers an infinite error log in the console - this.parent is not a function I'm not sure exactly but I think the "this.remove();" function might be the culprit.