Git Product home page Git Product logo

phaser3-multiplayer-with-physics's Issues

Error when player timeout

I got this error: Error: ENOENT: no such file or directory, open 'C:\Game Dev\phaser3-multiplayer-with-physics\[email protected]\phaser-on-nodejs\lib\node:internal\process\task_queues'

it happened when player reach timeout after export const USER_KICK_TIMEOUT = 60_000 // 1 minute

Please help me fix this

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

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!

Add hot-reloading

Since we're sticking with webpack we should add hot reloading to the client, stats, and and physics webpack configs.

Server is already hot reloaded via nodemon.

Compiled files are missing?

Thanks for sharing this code!

I couldn't run it without TypeScript.
I guess the repo should also include compiled files?

Use Parcel instead of Webpack

Webpack configs are yet another thing we have to maintain. I think Parcel is faster, has reasonable defaults, and would make implementing hot reloading easier.

I want to call API from server side, but Phaser on Nodejs not allow

I want to call API to save score from my game using phaser on nodejs:

let res = await axios.post(API_GAME_SCORE, payload,config);

and I got this error:

Error: ENOENT: no such file or directory, open ‘C:\Game Dev\RockRun\[email protected]\phaser-on-nodejs\lib\https:\api-testing.therocks.io\api\v1.0\game\score\update’

I think because of fakeXMLHttpRequest

Do you have any solution for this?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.