Harryk89

Members
  • Content Count

    14
  • Joined

  • Last visited

About Harryk89

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Harryk89

    physics library

    Please tell me, what is the best physics library for Pixi.js or commonly used and do they all work with pixi.js v5?
  2. Harryk89

    resize window

    if i use app.renderer.resize(window.innerWidth, window.innerHeight); get it
  3. Harryk89

    resize window

    Hi! I need help, I need it when the screen is rotated, all the children have kept their size, but the background has been adjusted to the screen size. I have code let app = new PIXI.Application({ width: window.innerWidth, height: window.innerHeight, autoResize: true, resolution: devicePixelRatio }); document.body.appendChild(app.view); function resize() { app.view.style.width = window.innerWidth + 'px'; app.view.style.height = window.innerHeight + 'px'; } window.onresize = resize; The last figure shows what is happening now.
  4. Why not work on my laptop PIXI.RenderTexture, on another computer, the code works fine. The example also does not work on my laptop.
  5. Thanks, did not notice at once this in the examples
  6. Harryk89

    Loader Json

    The problem was in the name of the file (red.atlas.txt), renamed to red.txt and everything started.
  7. HI! I'm only learning PIXI, help is needed. How to implement a similar effect (erasing a picture), as an example https://grnch-net.github.io/. I have two pictures, on each other, I want to gradually erase the top picture with the cursor to see the bottom one.
  8. Harryk89

    Loader Json

    I upload files (red.atlas.txt, red.json, red.png) using PIXI.Loader var spineLoaderOptions = { metadata: { spineAtlasSuffix: '.txt' } }; PIXI.loader .add('character_assets/red.json', spineLoaderOptions) .load(init); but nothing happens, even the error does not give out and does not go into the function init()
  9. Harryk89

    Loader Json

    HI! which boot loader JSON should I use to boot now? And tell me the difference between JsonLoader, SpineLoader and PIXI.Loader
  10. I meant both with pixi-spine.js put in project
  11. To download json, I need to connect some script?
  12. When I load json in loader gives an error message PIXI.loader .add('spineCharacter', 'character_assets/red.json') .load(function (loader, resources) { var animation = new PIXI.spine.Spine(resources.spineCharacter.spineData); self.container.addChild(animation); }); but if I use another method PIXI.loader .add('character_assets/red.json') .load(init); function init() { this.spin = new PIXI.spine.Spine(PIXI.loader.resources['character_assets/red.json'].spineData); this.container.addChild(this.spin); } There is no error, but the screen is just black and nothing is displayed
  13. Harryk89

    Connect Spine

    PIXI.loader.add('character_assets/red.json') when I load json, the application hangs and the black screen
  14. Harryk89

    Connect Spine

    Hi, everebody! Tell me how to connect to pixi.js spine