-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various issues #2
Comments
I have the exactly same symptom. In addition, the spaceship does not follow the mouse point sometimes. |
Running the node index.js (after doing a npm install on Mac OS 10.9.5) gave me the following error:
So I changed the f to an F on line 21 in server.js, and the next error is:
I followed lobsterhands suggestion regarding changing client/dist to client/production on line 15 (also in server.js) and the app runs without error. However, when starting a game, there is nothing but a black screen. |
What I had to do to get this to work is... Note: If this doesn't work, start the client side first. This will build the files needed for the server side. Server Side (starting in root): Client Side (starting in root): |
I followed jshemas instructions and now it loads, but the game window is black. |
it loads, but it can't pull down the assets due to the code in ws.js just using the hostname and not the port. Change line 7 to var myIoSocket = io.connect(window.location.hostname + ":8000"); and you'll be able to see the assets loading. |
When I first downloaded and tried to run $ node index.js, I got an error that express had deprecated res.sendfile. I updated server.js line 21 to read res.sendFile(...). Then I got an error pointing to client/dist/index.html, which didn't exist. I found index.html in client/production so on line 15 of server.js I pointed staticPath to client/production.
Now the game loads. It seems I have to refresh the page to get the game to actually load. Also, I'm having an issue getting 2 players in the game from different browsers on the same computer (though I can run multiple instances of the game).
The text was updated successfully, but these errors were encountered: