em desenvolvimento.2/fase2.js
//coletar estrelas e aparecer bombas/inimigo

coletar estrelas e aparecer bombas/inimigo
coletar estrelas e aparecer bombas / inimigo
function collectStar(player, telefone, boneco, ) {
    telefone.disableBody(true, true);
    scoreJogador1 += 1;
    scoreText.setText('Score1: ' + scoreJogador1);
    if (telefones.countActive(true) === 0) {
        telefones.children.iterate(function (child) {
            child.enableBody(true, child.x, 0, true, true);
        });
        var x = (player.x < 400) ? Phaser.Math.Between(400, 800) : Phaser.Math.Between(0, 400);
        var bomb = bombs.create(x, 16, 'bomb');
        bomb.setBounce(1);
        bomb.setCollideWorldBounds(true);
        bomb.setVelocity(Phaser.Math.Between(-200, 200), 20);
        bomb.allowGravity = false;
        var boneco = inimigo.create(500, 510, 'dude');
        boneco.setCollideWorldBounds(true);
        boneco.setVelocity(Phaser.Math.Between(-450, 0), 0);
        boneco.allowGravity = true;
    }
}
function collectStar ( player , telefone , boneco , ) { telefone . disableBody ( true , true ) ; scoreJogador1 += 1 ; scoreText . setText ( 'Score1: ' + scoreJogador1 ) ; if ( telefones . countActive ( true ) === 0 ) { telefones . children . iterate ( function ( child ) { child . enableBody ( true , child . x , 0 , true , true ) ; } ) ; var x = ( player . x < 400 ) ? Phaser . Math . Between ( 400 , 800 ) : Phaser . Math . Between ( 0 , 400 ) ; var bomb = bombs . create ( x , 16 , 'bomb' ) ; bomb . setBounce ( 1 ) ; bomb . setCollideWorldBounds ( true ) ; bomb . setVelocity ( Phaser . Math . Between ( - 200 , 200 ) , 20 ) ; bomb . allowGravity = false ; var boneco = inimigo . create ( 500 , 510 , 'dude' ) ; boneco . setCollideWorldBounds ( true ) ; boneco . setVelocity ( Phaser . Math . Between ( - 450 , 0 ) , 0 ) ; boneco . allowGravity = true ; } }
coletar estrelas e aparecer bombas/inimigo
coletar estrelas e aparecer bombas / inimigo
//  Add and update the score
 //  A new batch of stars to collect
 //criação do personagem no mapa
 // boneco.setBounce(1);
