• Content count

  • Joined

  • Last visited


About bubamara

  • Rank
    Advanced Member

Contact Methods

  • Website URL
  • Twitter

Profile Information

  • Gender
    Not Telling
  • Location

Recent Profile Visitors

1,209 profile views
  1. PIXI.utils.isMobile not working

    and to prevent popup blocking read more about trusted events here : https://www.w3.org/TR/DOM-Level-3-Events/#trusted-events
  2. PIXI.utils.isMobile not working

    @charlie_says ios 11.2.6 and the UA strings iPad : Mozilla/5.0 (iPad, CPU OS 11_2_6 .... ) iPhone : Mozilla/5.0 (iPhone, CPU OS 11_2_6 .... ) if you want to check iPad only : PIXI.utils.isMobile.apple.tablet
  3. PIXI.utils.isMobile not working

    What iOS version are you testing? Looks ok on 11.2.6 var a = PIXI.utils.isMobile.phone; var b = PIXI.utils.isMobile.tablet; console.log(a + ' | ' + b);
  4. Hello, ParticleContainer is not supposed to work with interactions by design, you have to use PIXI.Container instead http://pixijs.download/release/docs/PIXI.particles.ParticleContainer.html
  5. Help to create a curved path

    ouch Phaser... I was talking about pure PIXI way - http://pixijs.download/release/docs/PIXI.mesh.Mesh.html you should ask in Phaser section instead
  6. Help to create a curved path

    divide the path segment between two control points of bezier curve, take these points and use them to construct mesh
  7. Animate drawing a stroke along a bezier path

    you see no animation, right? you have to call animate(); first or use app's ticker instead
  8. problems with pointertap event

    yes, it's a bug : https://github.com/pixijs/pixi.js/issues/4374 workaround : store object on which pointerdown was fired and compare it with object on which pointertap was fired. If they don't match, it wasn't real pointertap
  9. question about concatenation

    nice way var l = []; for (var i=0; i < 2; i++) { l.push( { a : i } ); } console.log(l[0], l[1]); in this case, this === window -> better not pollute it, but you can use it on your own object without worries for (var i=0; i < 2; i++) { this[ 'l' + i ] = { a : i }; } console.log(this); console.log(this.l0, this.l1); nasty way for (var i=0; i < 2; i++) { eval( 'l' + i + ' = { a : i } ' ); } console.log(l0, l1);
  10. Performance

    there is also raised issue on github https://github.com/pixijs/pixi.js/issues/4371 for me personaly iOS11 works fine on several devices while some others are experiencding FPS drops
  11. Strange Text Outlines? - Trying To Polish Beta1...

    http://pixijs.download/release/docs/PIXI.TextStyle.html The lineJoin property sets the type of corner created, it can resolve spiked text issues. Default is 'miter' (creates a sharp corner). try 'round'
  12. Drag from point which was clicked

    agree, examples should be more friendly to newcomers
  13. Drag from point which was clicked

    the reason why bunny pops to cursor position is bunny's anchor point. You need to store offset and use it while dragging bunny function onDragStart(event) { // store a reference to the data // the reason for this is because of multitouch // we want to track the movement of this particular touch this.data = event.data; this.alpha = 0.5; this.dragging = true; this.offX = this.x - this.data.getLocalPosition(this.parent).x; this.offY = this.y - this.data.getLocalPosition(this.parent).y; } function onDragMove() { if (this.dragging) { var newPosition = this.data.getLocalPosition(this.parent); this.x = newPosition.x + this.offX; this.y = newPosition.y + this.offY; } }
  14. Confused About Pre-Loading PNG Image Sprites...

    it comes from PIXI.loader : http://pixijs.download/dev/docs/PIXI.loaders.Loader.html PIXI.loader .add("images/treasureHunter.json") .load(setup); function setup(loader, resources) { var id = resources["images/treasureHunter.json"].textures; // object with generated textures (dungeon.png, door.png, ..) console.log(id); }
  15. Procedural Generated 2D Starfield

    one or two layers of tiling sprites could do the trick. you can move background layer slowly than the layer above it -> nice parallax effect