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

Read from Standard Input #169

Open
blakeohare opened this issue Jun 16, 2017 · 0 comments
Open

Read from Standard Input #169

blakeohare opened this issue Jun 16, 2017 · 0 comments

Comments

@blakeohare
Copy link
Owner

This is sort of important since pretty much every desktop-faring programming language has this and so even though there aren't perfect equivalents in mobile or JS, it's still sort of a gaping hole in the core library. It'll also make simple tutorials much easier because you can demonstrate certain behaviors more easily than requiring users to basically understand the whole game loop pipeline first.

There are several tricky parts to this though. Most noticeably is the standalone VM runs in its own process and so the inter-process bridge from crayon.exe will have to support STDIN.

Other tricky bits:

  • Exported C# apps do not have a console window. Add a dependency to System.Windows and call MessageBox, maybe?
  • JavaScript - use window.prompt()
  • Mobile - pop open a message box like JS (in fact, the WebView versions may just work with the JS window.prompt() implementation).
  • PHP and future server-side - no equivalent. Just throw a not-implemented exception.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant