Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example use in node.js app #11

Closed
MatLeid opened this issue Jan 6, 2021 · 1 comment
Closed

example use in node.js app #11

MatLeid opened this issue Jan 6, 2021 · 1 comment

Comments

@MatLeid
Copy link

MatLeid commented Jan 6, 2021

Hello,

I tried to get the ECS running within a node.js app. I build a simple example with a LoggerSystem similar to the one from the browser example.

However the System never gets updated in my example. It seems the ECS won't start properly. How it is supposed to be used in a node js application. Should the ECS be running in some kind of loop within the app? Or are there any possiblities to debug the ECS?

Some tipps would be appreciated.

@MatLeid
Copy link
Author

MatLeid commented Jan 6, 2021

Hi, sorry for the issue. I looked again at the provided example and realised that the app has to call the world.update() on its own (like with a game loop). So it is clear for me now. You can close the issue.

@MatLeid MatLeid closed this as completed Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant