Guest User

Untitled

a guest
Jun 19th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. stars = this.physics.add.group({
  2. key: 'star',
  3. repeat: 11,
  4. setXY: { x: 12, y: 0, stepX: 70 }
  5. });
  6.  
  7. stars.children.iterate(function (child) {
  8.  
  9. child.setBounceY(Phaser.Math.FloatBetween(0.4, 0.8));
  10.  
  11. });
Add Comment
Please, Sign In to add comment