added different coloured balls and random generator

added some different colored balls to show user enemy vs balls you can eat.
Fixed. Thanks for picking that up.

John Lok

m: +852 63131448
e: john.lok.djinn@gmail.com
w: http://johnlok.me

On Mon, Dec 15, 2014 at 8:37 PM, Mark Wilson <notifications@github.com>
wrote:
>
> In js/states/level_round.js
> <https://github.com/wdi-hk-sep-2014/baller/pull/11#discussion-diff-21820786>
> :
>
> > -        var enemy = smallerEnemies.create(game.world.randomX, game.world.randomY, 'ball');
> > +        var random = Math.ceil(Math.random() * 3);
> > +        var enemy;
> > +
> > +        if (random === 1) {
> > +            enemy = smallerEnemies.create(game.world.randomX, game.world.randomY, 'blue_ball');
> > +        }
> > +        else if (random === 2) {
> > +            enemy = smallerEnemies.create(game.world.randomX, game.world.randomY, 'red_ball');
> > +        }
> > +        else {
> > +            enemy = smallerEnemies.create(game.world.randomX, game.world.randomY, 'green_ball');
> > +        }
> > +
> > +
> > +        randomBallColor(enemy);
>
> Where is this defined?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/wdi-hk-sep-2014/baller/pull/11/files#r21820786>.
>