GithubHelp home page GithubHelp logo

paper.io's Introduction

Paper.io

A cross-platform online multiplayer game built with socket.io



Steps to run

  • Install npm modules by running npm install .
  • Run node Server.js .
  • From any browser open index.html .

paper.io's People

Contributors

3bhady avatar ahmedsa-mir avatar mohamedali1995 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

paper.io's Issues

Time Step

the client needs to advance from block to block with a fixed time step that depends only on time and not on FPS
but drawing frames needs to be smooth and the player has to advance through each block in order to prevent him from jumping over other players when the game is laggy.

Reference for the issue and semi-solution

Filling

when the player enters his own region the area should be filled.

Scaling the blocks

Blocks should be scaled to fit a fixed number of blocks in each window

Server Simulates Logic of players

In Server.js, for each room:

  • function Simulate() should iterate over the players.
  • Each player is moved by delta time and it's speed of moving from start of a block till the end of it.
  • If the new position will cause the player to jump cells then it should first iterate on each cell it would jump.
  • If the player was registered to move and the player reached the end of the cell:
    1. The player changes directions.
    2. Each user in the room receives either the grid or run length of the grid.

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.