digitsensitive / phaser3-typescript

Phaser 3 and TypeScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Most games are not compiling

scottschafer opened this issue · comments

If I change the webpack.config.js to point to various games, I run into this compile issue:
photonstorm/phaser3-docs#24

For example,
entry: './src/games/space-invaders/game.ts',

ERROR in /Users/sschafer/personal/projects/phaser3-typescript/src/games/asteroid/objects/asteroid.ts
[tsl] ERROR in /Users/sschafer/personal/projects/phaser3-typescript/src/games/asteroid/objects/asteroid.ts(37,15)
TS2339: Property 'allowGravity' does not exist on type 'Body | StaticBody | BodyType'.
Property 'allowGravity' does not exist on type 'BodyType'.

What's the best way to resolve this?

commented

@scottschafer Hello! The problem should be solved now. A lot of it was out of date. I have refactored every game. Every game is now an independent project.

Thank you Eric! Much appreciated