Coder Social home page Coder Social logo

netgameexample's People

Contributors

cppleon avatar gbudee avatar gustavopsantos avatar revenantx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

netgameexample's Issues

Usage of precompiled DLL's

Hey,

I really enjoy your library but in the readme you state this "Always use library sources instead of precompiled DLL files ( because there are platform specific #ifdefs and workarounds for unity bugs". But in both of your Unity example you use precompiled DLL's right?

Am I missing something or why aren't you using the source files?

What is NetworkGeneral.SeqDiff(...) and Why is it Used for Interpolation?

public const int MaxGameSequence = 1024;
public const int HalfMaxGameSequence = MaxGameSequence / 2;
public static int SeqDiff(int a, int b)
{
return Diff(a, b, HalfMaxGameSequence);
}
public static int Diff(int a, int b, int halfMax)
{
return (a - b + halfMax*3) % (halfMax*2) - halfMax;
}

I was trying to understand the RemotePlayer.cs logic for interpolating remote players' positions (since we only get so much data from the network, and we want to smooth out the display of other players' positions over time).

However, I don't understand what NetworkGeneral.SeqDiff(...) is doing, nor why MaxGameSequence = 1024 nor what that variable means.
Would someone be able to explain?

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.