• Content Count

  • Joined

  • Last visited

About Branlin

  • Rank

Recent Profile Visitors

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

  1. I killed a couple of hours. In Arcade Phys it was easier to do with pivot. All I want is to twist the body around the point.
  2. Engineering ethics: "If it works, don't touch it."
  4. Thank all! app.render() is no need It's work. const app, resources; app = new PIXI.Application(800, 600, {forceCanvas:true, backgroundColor : 0xffffff}); document.body.appendChild(app.view); loader = new PIXI.loaders.Loader(); loader.add('bunny', 'bunny.png') loader.onComplete.add((result) => { resources = result.resources; run(); }); loader.load(); // function run() { var bunny = new PIXI.Sprite(resources.bunny.texture) app.stage.addChild(bunny); var pixels = app.renderer.extract.pixels(bunny); console.log(pixels); }
  5. var app = new PIXI.Application(800, 600, {forceCanvas:true, backgroundColor : 0xffffff}); document.body.appendChild(app.view); var bunny = PIXI.Sprite.fromImage('bunny.png') var pixels = app.renderer.extract.pixels(bunny); console.log(pixels) in devtool console: I need pixels, but I'm a strange result.
  6. debug.spriteInfo() show: bounds x: 50.0 y 50.0 w: 200.0 h: 200.0 This is not the correct value, right? It does not consider scaling.
  7. Example: Phaser CE v2.7.7 I display the image with a size of 200 by 200 In the configuration, the devicePixelRatio property with a value 2 I have two problems: 1) The size of the hit (click) area of the sprite is not changing. It is the same as the original file 200x200. But the displayed sprite is 100x100. B the cursor responds to an invisible area 2) The function spriteBounds displays an incorrect position of the sprite bounds. I'm about the green box. I don't know how to fix this. Without using devicePixelRatio everything is blurred on my retina display. It hurts me. I never used CE version. And I have not had these problems on older versions of Phaser. (But then I used method scale.setTo(0.5) for every sprite) Screenshot:
  8. Oh, and add /blog/ after
  9. Yes. Remove blog. subdomain from url, and read =) ->
  10. Hello! I bought the plugin, everything is fine, but i'm trying to solve one problem I need to define the path in area with the size 800x600 But in the editor the size is 640x480. How to change the size?
  11. I saw the description of this method in the documentation for older versions of the framework it missed a documentation generator, because there is no second asterisk in the opening comments
  12. Branlin

    this. usage

    Keyword "this" is a main thing of the OOP part of javascript I hope this will help you:
  13. What went wrong? "There was an attempt to use an object or a variable as a constructor, but that object or variable is not a constructor (class). " Your variable (scoreboard) after new is not a constructor var scoreboard = new scoreboard(; How to fix? Declare your scoreboard class code before follow: = function() {};