Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to add Fixed16 in Nape to have consistency between PCs. (Haxe) #112

Open
jinjinjinK opened this issue Jun 25, 2018 · 0 comments
Open

Comments

@jinjinjinK
Copy link

Hello Luca,
Sorry to add this here, but I don't know how to reach you.
I'm trying to add Fixed points numbers in Nape because I need consistency in my multiplayer game.
As I use a deterministic lockstep system for online play it is a necessity.
I read that at some point you were thinking to add Fixed16 to Nape, I would be interested to know if you did ?
I thought I would ask before starting.
If you didn't, do you have any advice on how to implement it properly ?
If I just replace Float with Fixed16, I should probably revert the result back to float to have the correct value ?
Like in this test
var f:Float = 2.0 - 1.1;
trace(f); // 0.9
var fixed:Fixed16 = 2.0 -1.1;
trace(fixed); //58982
trace(fixed.tof()); //0,899993896484375

Or should I do it manually, case by case for every calcul in all Haxe classes ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant