francisbyrne / hangwithme Goto Github PK
View Code? Open in Web Editor NEWA browser-based, multiplayer version of hangman where players race to solve a randomly generated word.
A browser-based, multiplayer version of hangman where players race to solve a randomly generated word.
Alternatively, you could just disable the name input box instead of hiding it on invitation.
Compared to examples on the meteor website, the performance for hangwithme is very choppy once deployed to meteor.com.
Looking at network analytics (via chrome dev console), it appears this may be due to large message sizes (1mb+) going back and forth from client to server.
Need to work out why this is happening and reduce the size.
Previous commit has stopped the letter validation methods working.
When all players have left the game, the game should be removed from the Collection, along with all the players/letters/guesses. It appears to be done on the client side, but when you refresh the page, the game is back again. May not be propagating to the server, or the server may be overriding. Letters/Players/Guesses works as expected.
No unit tests... bad, very bad.
When deployed to Meteor.com, the client doesn't appear to have access to any of the collections it subscribes to, eg. Players.find().fetch() on js console returns just the current player.
May be related to Issue #1.
This appears to happen every time the keepalive is sent because the Players Collection changes and the viewport is dependent on that, so it re-renders.
To fix this, the word would have to be decoupled from the game and kept server side. Server masks it before sending down to client.
Some xhr's are returning 404s when deployed to meteor.com. Not sure what the impact of this is, or whether it is expected; but might be causing some of the unexpected behaviour on the server.
Whenever an opponent is selected in the lobby, the select box de-focusses and the option appears to be de-selected. However, Multiplayer start button still appears and you can still start the game. UX issue though.
After completing a game and clicking "Back to Lobby", the players waiting no longer shows, even if there are players waiting.
Hangman image needs to be redrawn for both players (not just declining player) when player declines invitation. Need to think about how to do this. Can probably also implement decline notification for this.
My word was "circumfusion" and the word wrapped down to the next line. It should expand the main window to the width of the word, or you should make it big enough to hold the biggest word.
Currently no way of cancelling an invitation. This is annoying when you invite an idle or d/c'd player.
Should really do this.
This isn't really an issue, but more of an idea.
How can you take the sharing space aspect of this, cross it with publishing short status messages, and give people the ability to log in and publish to a server simultaneously?
Thinking about the possibilities of Meteor... Let me know if you have any ideas.
The new auth model in Meteor means that you need to allow updating Mongo collections, so all the database methods have broken. Must refactor to work with Meteor 0.5.0.
Appears to only occur in local version. Possibly due to Meteor upgrade 0.3 to 0.4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.