Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

scale sprite matter.js

Bodies.circle(x, y, 46, {
  render: {
    sprite: {
      texture: 'images/stone.png',
      xScale: 2,
      yScale: 2
    }
  }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #scale #sprite
ADD COMMENT
Topic
Name
3+3 =