Giter Site home page Giter Site logo

phat-pong-game's Introduction

Phat-Pong-Game

Programming test for Phat Loot Studios

Best to run the game in 1280x720 display as the NetworkManagerHUD isn't very responsive.

The NetworkStartPosition components are used to load players to specified spawn locations. These spawn points are selected in a round-robin fashion thus will populate player 1 at the bottom and player 2 above that for the first time the 2 players connect.

If a non-host player disconnects and reconnects, they can spawn at the same location as the host but I didn't think it was necessary to handle this for the test.

Movement is client authoritative since it feels bad when latency affects controls. I didn't do any server validation checks for any client movement or boundary collision so this would be cheatable.

Only the host can restart the game.

Ball has some noticeable latency issues due to it being controlled server side. To reduce it I'd likely let the client control the initial location of the ball (whilst player is in possession of the ball) and once launched, let the server manage it. This would hide the most obvious displays of lag.

I left cross-player collision on since it felt more interesting (balls can collide with other balls and other players paddles).

Requires port-forwarding if playing with someone outside your local network.

phat-pong-game's People

Contributors

jashonbrown avatar

Watchers

 avatar

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.