Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stars = this.physics.add.group({
- key: 'star',
- repeat: 11,
- setXY: { x: 12, y: 0, stepX: 70 }
- });
- stars.children.iterate(function (child) {
- child.setBounceY(Phaser.Math.FloatBetween(0.4, 0.8));
- });
Add Comment
Please, Sign In to add comment