yandeu / phaser3-multiplayer-with-physics

Phaser 3 - Real-Time Multiplayer example with Physics (MatterJS and Arcade)
MIT License
178 stars 51 forks source link

Weird | `npm install` failed, but `npm start` works for local server running #16

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi, Just after having cloned the repo, I tried to install node modules by npm install. But it fails with some errors which seem to be related with typescript syntax. However, I can execute npm start - i.e. npm run dev so that the local game server runs properly on port 3000.

image

image

I cannot understand why. Please help me!

yandeu commented 1 year ago

It's an old example. I don't really know what the error is.

Today I would use https://github.com/yandeu/arcade-physics instead of https://github.com/geckosio/phaser-on-nodejs. It's much much faster.

ghost commented 1 year ago

@yandeu Thanks for your kind reply. arcade-physics looks much better!

image