VitaZheltyakov

Members
  • Content Count

    184
  • Joined

  • Last visited

About VitaZheltyakov

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location
    Russia, Volgograd

Recent Profile Visitors

1521 profile views
  1. player.body.mass = 1; animal.body.mass = 999;
  2. sprite1.body.mass = 99999999; sprite2.body.mass = 99999999;
  3. Use code: var configuration = { 'render' : Phaser.CANVAS, // Render type 'canvas_width_max' : 2048, // The maximum width of the canvas 'canvas_width' : 1000, // The width of the canvas 'canvas_height_max' : 2048, // The maximum height of the canvas 'canvas_height' : 650, // The height of the canvas 'scale_ratio' : 1, // Scaling factor 'aspect_ratio' : 1, // Aspect ratio }; // Calculate the scaling factor and the aspect ratio configuration.canvas_width = window.screen.availWidth * window.devicePixelRatio; configuration.canvas_height = window.screen.availHeight * window.devicePixelRatio; configuration.aspect_ratio = configuration.canvas_width / configuration.canvas_height; if (configuration.aspect_ratio < 1) configuration.scale_ratio = configuration.canvas_height / configuration.canvas_height_max; else configuration.scale_ratio = configuration.canvas_width / configuration.canvas_width_max; game = new Phaser.Game(configuration.canvas_width, configuration.canvas_height, configuration.render, 'gamewindow', { preload: preload, create: create, update: update, render: render }); player = game.add.sprite(game.world.centerX, game.world.centerY, 'player'); player.scale.set(configuration.scale_ratio);
  4. setCircle(45); It sets new size and ignores the scale. You need use: setCircle(45*scaleValue);
  5. https://github.com/VitaZheltyakov/phaser-nine-patch-plugin
  6. What does the server?
  7. Use the forum search. This topic has been discussed a thousand times.
  8. Performance is almost the same.
  9. Yes, 'addMoveCallBack' not detect 'pointer.isUp'
  10. The angle of the Body in radians
  11. VitaZheltyakov

    Zoom

    https://github.com/photonstorm/phaser-examples/blob/master/examples/camera/zooming%20the%20camera.js
  12. I can assume that the problem is associated with different screen sizes. The relative sizes of the player are the same?
  13. Do as described in the commentary above. And turn off the GPU-backlist in Crosswalk