blobs-io / blobsgame

✨ The official repository for the blobs browsergame
7 stars 2 forks source link

rewrite(core): use typescript #90

Closed y21 closed 5 years ago

y21 commented 5 years ago

Everything kind of works, but under the hood it's a pain to read through the code. I've decided that we should use TypeScript (a superset of JavaScript) that makes code more readable by specifying types and generally makes it more fun to write code.

Additionally, we should change the way authenticating (logging in) works. Right now it emits events (socket.io) for things like sending username and password to validate it on the server, requesting a captcha, ... Instead of using socket.io for this, we could either make the login section a form that posts data, or listen to the click event for the login button and send an HTTP request.

y21 commented 5 years ago

Backend part is done, however we won't merge it since there may be some bugs and we haven't tested it fully yet.

y21 commented 5 years ago

Done.