Jump to content

Timofii

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hi! When i increment sprite.y coordinate inside the game loop, the sprite moves to bottom, like y increment is below zero. Console values of increment and sprite.y is above zero. Attaching my code: let renderer, stage, character, sprite; const alpha = 45, tanAlpha = Math.tan(alpha / 180*Math.PI); function setup () { renderer = PIXI.autoDetectRenderer( {backgroundAlpha: 0}); character = PIXI.Texture.from('Content\\images\\slogosb.png'); stage = new PIXI.Container(); sprite = new PIXI.Sprite(character); stage.addChild(sprite); document.getElementByI
×
×
  • Create New...