SilentCog / rpgjs

Easter egg console.log game in the text based RPG fashion.
https://silentcog.github.io/console-game/
5 stars 2 forks source link

Get remote version back up and running #41

Open mimiflynn opened 9 years ago

mimiflynn commented 9 years ago

Sorry, broke it with my React whatnot, I think.

SandyGifford commented 9 years ago

I think we just lost traction somewhere - I'm going to redo my merge tomorrow morning. I've got a new tool to help me.

mimiflynn commented 9 years ago

Okay, I'd like to learn how to play the remote game, btw. Thinking about trying to use it for a social game internally at my office to get the peeps in all the different remote offices to get to know each other better. It would be cool if they could play the game together while on a video chat.

OMG, I want to set up a WebRTC thingy so badly.

SandyGifford commented 9 years ago

The remote game is not setup for multiplayer at the moment, but it wouldn't be difficult to make it happen - in fact you'd just have to rollback some of the compartmentalization I did.

Right now the remote just protects the game-data. It's essentially the same as the local game, but run (in a sense) isomorphically: All the client side code does is collect prompts from the user, send them to the server, and display the messages that come back. To make this possible, I had to instantiate new Games for every session connected to the server - if we wanted to make it multi-player all we'd have to do is have a single instantiation that multiple sessions could connect to.

mimiflynn commented 9 years ago

Oh, that would be super cool. You'd be using some of your magic from the other other game, eh?

SandyGifford commented 9 years ago

other other?

mimiflynn commented 9 years ago

GeoTrap. Move it into SilentCog! It'll be super cool.

Guess we should name this game then make separate repos for the different independent parts?