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

Online score storage #108

Open
ForNeVeR opened this issue Oct 11, 2015 · 8 comments
Open

Online score storage #108

ForNeVeR opened this issue Oct 11, 2015 · 8 comments
Assignees
Labels

Comments

@ForNeVeR
Copy link
Member

It'd be nice to have an online score storage. After the player finishes the game, he could have a choose whether to store his high score in either offline or online score storage (it should be fully optional I think).

I think that the score should be encrypted or hashed with hash of the current game level pack (and maybe game code itself), so we can check it on server. It will not be completely safe, but at least it wouldn't be deadly simple to hack and send fraud score to our server.

I think it would be nice and consistent to hack a server with common lisp, but if we want a more familiar environment, we can make something with Clojure.

The server could have a web interface and/or a client could show a top score list somewhere. I would like to discuss these details and factor that to a distinct tasks (and maybe even another project). The client-server API of course should be deadly simple.

Note that we also have some plans to implement multiplayer in future: #37.

@rexim
Copy link
Member

rexim commented Oct 12, 2015

Nice idea! But as discussed on the stream, this is not high priority right now.

Also, I think it's possible to implement the server side on Emacs Lisp. :) So we should consider this language as an option along with Clojure and CL.

@ForNeVeR
Copy link
Member Author

Hm, and how could it be executed then? Emacs on server? Nice :)

@rexim
Copy link
Member

rexim commented Oct 12, 2015

@ForNeVeR
Copy link
Member Author

Please note that aside of the main functionality (e.g. score storage) there are some nice additional features I mentioned (such as the web interface) that may be extremely difficult to implement with such a... strange platform for web servers.

And if elisp solution will require some additional software such as nginx or lighttpd or some CGI gateway - that'll create a big problem for portability. And personally I couldn't afford such hardly portable solution.

@rexim rexim mentioned this issue Oct 12, 2015
@rexim
Copy link
Member

rexim commented Oct 12, 2015

@rexim
Copy link
Member

rexim commented Oct 12, 2015

Elnode is a non-blocking IO webserver written entirely in EmacsLisp. It’s like an EmacsLisp version of node.js.

@ForNeVeR
Copy link
Member Author

Hmm, okay then. It seems like a reasonable idea now.

@rexim rexim removed the question label Oct 12, 2015
@rexim
Copy link
Member

rexim commented Oct 12, 2015

Not questioning this issue anymore. Hence removing the question label. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants