Over the last few nights I have been working on a new feature we have wanted in Duolatic for a while, randomly generated usernames.
When I say random, I don’t necessarily mean completely random there is a bit of a method to it and a lot of attention has gone into creating the word lists.
The idea is each user is given a universally unique id or UUID that is stored in their browser’s local storage and the username is based off of that UUID as its seed. A seedable random number generator is used so that the same name is always the result of suing the same number. This means when a user returns to the game they will always keep their username.
The second part of this is generating location names, which will be the name of the “room” where you can play with another player online. When a player wants to play with a friend they can click a button and receive a link, when two players click the link and enter the game the location name will be displayed and they can come back and use the same location again if they like it.
For fun I created a small website where you can try out the name generator yourself outside of the game and see what interesting combinations it comes up with. (You can also hit the twitter links and share your findings with others!)
-Alex, Two Scoop Games
Challenge your friends anytime, anywhere!
Duolastic is a multiplayer online game coming soon to your browser!
Follow us on twitter for updates: @TwoScoopGames!