I'm having compiler errors with this typescript code:)
I've defined playerBullets like so:
playerBullets: Array = Array[40];
and try to do this:
this.playerBullets = this.playerBullets.filter(function (bullet) {
return bullet.active;
});
but this code has been market with red syntax errors:
WebUI/ts/game.ts(89,19): Expected var, class, interface, or module WebUI/ts/game.ts(88,29): Cannot convert '{}[]' to 'Array'
If I change the definition to this:
playerBullets = [];
it works, any ideas?