What language is the server/client written in? Is the game open-source?
What language is the server/client written in? Is the game open-source?
Last edited by oops_ur_dead; September 25th, 2016 at 11:40 AM. Reason: can't spell
Server's in nodejs and javascript. the web client is javascript/html, and android is... android.
i'll pm you the repo its in
FM XVII: Bonney Jewelry (Journalist)
FM XVIII: Kalou (Savage Godfather)
FM XX: Joseph Bertrand (Marshall)
FM XXI: USA (Escort)
FM XV: Whiskey (Whore)
Nice.
Have you ever considered adding the option for users to program their own roles? I was working on a Java-based mafia game that had roles and a lot of the game logic programmed in Javascript, which would be executed on the server on the fly. The idea would be that users could easily add/tweak settings and roles. It never really went anywhere, but it would be a cool idea.
I've been designing the game so that it'd be easy for me to implement new roles easily. It took me all of 1 hour to have Poisoner added and tested.
However, any way I think of trying to do custom roles via programming sounds like a security nightmare. How were you implementing it in your version?
FM XVII: Bonney Jewelry (Journalist)
FM XVIII: Kalou (Savage Godfather)
FM XX: Joseph Bertrand (Marshall)
FM XXI: USA (Escort)
FM XV: Whiskey (Whore)
The way I currently have it set up, is that only people with strictly one-phase night actions would be able to be inserted into the game. Any special day mechanics, or special two-time passes would be tough to implement.
I guess it could be in a permanent database connected to the user who created it.
FM XVII: Bonney Jewelry (Journalist)
FM XVIII: Kalou (Savage Godfather)
FM XX: Joseph Bertrand (Marshall)
FM XXI: USA (Escort)
FM XV: Whiskey (Whore)
Yep, the actual Java implementation for my finished product was intended to be pretty bare-bones, essentially just a chat client with some Mafia-necessary stuff, like ability to input actions. The implementation of much of the game logic, such as routing chat messages, night actions, win conditions, voting, etc., were all implemented in Javascript. The intention was to allow people to change even the most low-level parts of the game, to allow for unusual setups like Kingmaker.
It never got farther than writing part of the engine, though.