Jump to content

rossi46

Members
  • Content Count

    65
  • Joined

  • Last visited

About rossi46

  • Rank
    Advanced Member

Recent Profile Visitors

1492 profile views
  1. i see the example. https://pixijs.io/pixi-particles-editor/#bubblesVertical. it move bubbles from bottom to top. How to set it run from top to bottom. Thanks
  2. Ok I will try. And how to extend PIXI.Sprite. I want to add some property to sprite like. PIXI.Sprite.value, PIXI.Sprite.inx... I create a class extends PIXI.Sprite: let class Sprite extends PIXI.Sprite{ value: number; inx: number; contructor(){ super(); } } but when i use: let s = new Sprite(TextureCache["something"]), it say: Sprite doesn't have contructor has on parameter. Thanks
  3. I use typescipt to code my app. When i create a bitmaptext and set anchor for it, but the typescript show error:"Property 'set' does not exist on type 'number | Point'. Property 'set' does not exist on type 'number'.". var txt = new PIXI.extras.BitmapText("0sfsfds", { font: "15px RockerSmall", align: "center" }); txt.anchor.set(0.5); why. Thanks
  4. i use webpack, typescript and pixijs to build my app. But when i build it has error: ERROR in ./node_modules/pixi.js/lib/index.js Module not found: Error: Can't resolve './accessibility' in 'D:\Zone\G1\Client\G1.Client\slots\node_modules\pixi.js\lib' @ ./node_modules/pixi.js/lib/index.js 34:21-47 @ ./libs/libs.ts @ multi ./libs/libs.ts ERROR in ./node_modules/pixi.js/lib/index.js Module not found: Error: Can't resolve './core' in 'D:\Zone\G1\Client\G1.Client\slots\node_modules\pixi.js\lib' @ ./node_modules/pixi.js/lib/index.js 18:12-29 @ ./libs/libs.t
  5. i use V 4.5. I create a button in my game. When i click button I want to my game full screen in mobile. But when i click button, my console say : "Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture." that.btnSpin.on("pointerover", that.btnOver).on("pointerout", that.btnOut).on("pointerdown", that.btnSpinDown).on("touchstart", checkFullScreen).on("click", checkFullScreen).on("mousedown", checkFullScreen).on("tab", checkFullScreen); var checkFullScreen = function () { document.documentElement.requestFullscreen ? document.documentElement.requ
  6. How to set and cancel pixi game in mobile. I use some code but not work: if (document.documentElement.requestFullscreen) { document.documentElement.requestFullscreen(); } else if (document.documentElement.mozRequestFullScreen) { document.documentElement.mozRequestFullScreen(); } else if (document.documentElement.webkitRequestFullscreen) { document.documentElement.webkitRequestFullscreen(); } else if (document.documentElement.msRequestFullscreen) { document.documentElement.msRequestFullscreen(); }
  7. ok thanks. i will try and post result here for your help.
  8. Here is another example. I think it is particles, but i don't know how to do it.
  9. How to create effect lines line this. I attack images. Line have change position. Thanks
  10. I deleted all game and i just have create canvas it is hitting the snag. I load one image size 1110x624 and just create game loader.add("iconsAnimation", ConfigSt.BASE_URL + "assets/images/anim.png"); this.game = new PIXI.Application(1140, 500, { antialias: false, transparent: true, resolution: 1 }); //this.game.ticker.speed = 2; //this.game.ticker.minFPS = 60; $("#gamePlay").append(this.game.view); this.mainContainer = new Container(); this.containerColumn1 = new Container(); this.containerColumn2 = new Container();
  11. here is memory of my game. I do not use particles.
  12. I create pixi game. when i change tab it normal. but when i minimize browser. it has "webgl has hit a snag". and my canvas fail. console log has: "webgl: context_lost_webgl: losecontext: context lost". How to fixed it. Thanks
  13. I want to create a graphics timer. how to do that. Link demo: http://jsfiddle.net/m1erickson/P2qTq/
  14. I use original example of pixi-timer. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Pixi.js Test</title> <script src="https://pixijs.download/v4.5.3/pixi.min.js"></script> <script src="js/pixi-timer.js"></script> </head> <body> <script> var renderer = new PIXI.autoDetectRenderer(800,600); document.body.appendChild(renderer.view); var stage = new PIXI.Container(); function animate(){ window.requestAnimationFrame(animate); renderer.render(stage);
×
×
  • Create New...