Code Monkey home page Code Monkey logo

simple-realtime-phaser-3-platformer's Introduction

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:
    //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/

simple-realtime-phaser-3-platformer's People

Contributors

aaron5670 avatar arnekeller avatar candelibas avatar chrisk-7777 avatar chrisl8 avatar dependabot[bot] avatar evoluogames avatar photonstorm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

simple-realtime-phaser-3-platformer's Issues

Detecting collision between multiple players and allowing them to move each other?

Any easy way I could compensate for something like this:
//client 2 pushes client 1
//client 1 recieves client 2s onlinePlayerPos (the pushed player pos)
//override client 1 playerPos with client 2 onlinePlayerPos

It might be a stretch because the current system is peer-to-peer position passing and not passed through any 1 client..

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.