zakhov

Members
  • Content count

    24
  • Joined

  • Last visited

About zakhov

  • Rank
    Member

Recent Profile Visitors

707 profile views
  1. Playground examples for Panda 2?

    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. Playground examples for Panda 2?

    You can download the master from here: https://github.com/ekelokorpi/panda-engine-playground 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. 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. 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. 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. Plugins working with Panda 2?

    Cheers enpu.
  7. What are you guys currently working on?

    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.
  8. Plugins working with Panda 2?

    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); this.tweenIn.to({ 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); this.tweenOut.to({ 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();
  9. 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
  10. 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.
  11. Three.js 2.0 Plugin

    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!
  12. spriteTinter

    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!
  13. 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);
  14. Emitter, remove onComplete

    That solved it! Cheers enpu!
  15. Emitter, remove onComplete

    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.