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

Suggestion: package as open web app #4

Open
freddyb opened this issue Apr 13, 2015 · 3 comments
Open

Suggestion: package as open web app #4

freddyb opened this issue Apr 13, 2015 · 3 comments

Comments

@freddyb
Copy link

freddyb commented Apr 13, 2015

First of all, this is a really well done port. Thanks you for doing this.

I want to suggest packaging this as an open web app. This would enable BrowserHack to run in Android (as a Cordova/Phonegap app) and Firefox OS.

To work in these runtimes, BrowserHack would need to show a softkeyboard or focus a hidden element to use the system's softkeyboard.

I'd be happy to work on this, if you can guide on which files to touch :-)

@coolwanglu
Copy link
Owner

A few places you might want to investigate
web/index.html, in preRun you can inject your init functions
win/web/nethack_lib.js is the logic for the whole UI, especially input events are handled with buffer, for the C code to read from.

If you modified nethack_lib.js, you should rebuild the project.

@freddyb
Copy link
Author

freddyb commented Apr 13, 2015

Thanks.
I am right to assume that you put your code in web/ also under nethack public license (dat/license)?

@coolwanglu
Copy link
Owner

Yes, as nethack was originally distributed under Nethack GPL.

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