Progress: Server Loops

This commit is contained in:
Jeremiah Billmann
2013-05-21 19:36:03 -04:00
parent c12bbbf0af
commit 864ab4eabf
3 changed files with 30 additions and 10 deletions
+17 -3
View File
@@ -1,13 +1,27 @@
window.GarageServerIO = (function (socketio) {
window.GarageServerIO = (function (window, socketio) {
var io = socketio,
connectToGarageServer = function (path) {
garageServerGame = null,
connectToGarageServer = function (path, options) {
io.connect(path + '/garageserver');
},
startGarageServerGame = function (options) {
garageServerGame = new GarageServerGame(options);
};
function GarageServerGame (options) {
}
GarageServerGame.prototype.update = function () {
};
return {
connectToGarageServer: connectToGarageServer
};
}) (io);
}) (window, io);