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

Add injectable scripts and events #44

Open
PlytonRexus opened this issue Nov 3, 2021 · 0 comments
Open

Add injectable scripts and events #44

PlytonRexus opened this issue Nov 3, 2021 · 0 comments

Comments

@PlytonRexus
Copy link
Owner

  • We can probably use events to signify when something, say, a variable, changes or a choice is selected or a scene starts. At such times, an event can be fired and used to create changes. Say, the background can be changed or a piece of music can be started, or text can flicker and so on ...
  • On similar lines, we can - later - introduce all these features via if-script syntax. But for now, at least, maybe we can add injectable JS that can carry listeners for the events that we fire. Besides, listeners, these scripts can contain the customisations that the authors may desire. One thought on doing so is to add a function injectible(callback(state)). Authors must pass the callback that will receive the current game state and be executed.
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