Parking-Master / FPS2

Welcome to FPS2. A lightweight multiplayer FPS game made with pure, native JavaScript.
https://fps2.uk.to
MIT License
6 stars 9 forks source link

Running fully statically #6

Closed NarmakTwo closed 1 week ago

NarmakTwo commented 2 weeks ago

I took a look through the server.js code and it looks like it could be run fully static. So would hosting it through something like python3 -m http.server 8080 work?

Parking-Master commented 2 weeks ago

Hello @NarmakTwo! Yes, all of the game's files are hosted open-source on this GitHub repository. Everything can be run locally by doing a simple node server.js and going to http://localhost:8080 in your browser.

Or you can use any method such as the command you posted. Anything will work to host the files statically.

NarmakTwo commented 2 weeks ago

is there any way to host the backend too?

Parking-Master commented 2 weeks ago

There actually is no backend. The only service that uses backend is PubNub and Back4App's Parse. These are in the cloud though, and used as an API in the client-side code for FPS2. However, you could get your own API keys from PubNub and Back4App it you'd like to clone your own standalone game that doesn't use the public database/multiplayer APIs.