Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaron5670/simple-realtime-phaser-3-platformer
đšī¸ Simple realtime platform game build with Phaser 3, Socket.io, ExpressJS & Webpack 4.
https://github.com/aaron5670/simple-realtime-phaser-3-platformer
expressjs multiplayer-browser-game multiplayer-game multiplayer-web-game phaser phaser-framework phaser3 socket socket-io webpack
Last synced: 3 months ago
JSON representation
đšī¸ Simple realtime platform game build with Phaser 3, Socket.io, ExpressJS & Webpack 4.
- Host: GitHub
- URL: https://github.com/aaron5670/simple-realtime-phaser-3-platformer
- Owner: aaron5670
- Created: 2019-12-12T21:11:38.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-01T14:23:20.000Z (about 2 years ago)
- Last Synced: 2024-04-24T09:05:40.939Z (10 months ago)
- Topics: expressjs, multiplayer-browser-game, multiplayer-game, multiplayer-web-game, phaser, phaser-framework, phaser3, socket, socket-io, webpack
- Language: JavaScript
- Homepage:
- Size: 784 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple realtime platform game build with Phaser.io
Simple realtime platformer build with Phaser 3, Socket.io, ExpressJS & Webpack 4.### How to install
1. Git clone this repository
2. Create in the server folder a file called config.js
3. Add the following code to the config.js file:
```javascript
//CLOUD.MONGODB.COM DEVELOPMENT SETTINGS
// TIP: Create free online MongoDB Cluster at: https://cloud.mongodb.com/
const USERNAME = "YOUR_MONGODB_USERNAME";
const PASSWORD = "YOUR_MONGODB_PASSWORD";
const HOST = "your-host-url.mongodb.net";
const PORT = "27017";
const DB = "realtime-pusher-game";
module.exports = {USERNAME, PASSWORD, HOST, PORT, DB};
```
4. Run the command ``npm install`` in the client folder.
5. Run the command ``npm install`` in the server folder.
6. Run server.js with ``node server.js`` in the server folder.
7. Run the Webpack server in client folder with the command: ``npm start``.
8. Go to http://localhost:8080/