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

CLEO Redux - Some doubts! #16

Closed
nonunknown opened this issue Dec 4, 2021 · 4 comments
Closed

CLEO Redux - Some doubts! #16

nonunknown opened this issue Dec 4, 2021 · 4 comments

Comments

@nonunknown
Copy link

Could be Event-driven stuff be added to Javascript version of cleo?

Like, instead of having a while loop as the main code, we could have something like:

//script.js

GameEvents.onKeyPressed(keyCode) => {
   //......

}

Also a lot of events, so we can have less expensive code!

There's a way to use external Classes from Javascript?

For example the class WebScoket

@x87
Copy link
Contributor

x87 commented Dec 4, 2021

Idea to create callbacks to game event is very interesting. We had some brief discussion of that here: #1

I think it could be nice to have such a feature.

As for using external classes, can you elaborate what do you mean? Call game functions or import code from external files/libraries ?

@nonunknown
Copy link
Author

Thanks for the response!

I saw the discussion, and will be cool to have a place were we modders, could place which events are more used, necessary, so people can upvote and downvote, not sure, but this will be really useful.

About external classes, I'm not sure but maybe I can be saying shit, but its possible to integrate with like nodejs? I mean, it will be like C++ coding, you can integrate any external library to your code, and nodejs let us do that!

@x87
Copy link
Contributor

x87 commented Dec 5, 2021

We have a discord channel, link in the readme

@x87
Copy link
Contributor

x87 commented Jan 5, 2022

See #27 and #28

@x87 x87 closed this as completed Jan 5, 2022
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

2 participants