Timeline for How do I determine the player's grid position?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 4, 2020 at 23:52 | history | edited | Pikalek | CC BY-SA 4.0 |
added info based on feedback received
|
Dec 4, 2020 at 23:30 | comment | added | Pikalek |
@amitp I agree that the mapping is unusual. My read was that OP specifically identified the the code given worked except that -0 needed to map to -1 . But it probably bears mentioning - I'll add an edit & would gladly update further if OP provides additional info.
|
|
Dec 4, 2020 at 23:07 | comment | added | amitp |
I agree -0 can act in unintuitive ways but I suspect -0 should become 0 and not -1 in this case. Otherwise the grid cell for 0 would include 0 ≤ x < 800 instead of -800 ≤ x < 800.
|
|
Dec 3, 2020 at 19:13 | history | edited | Pikalek | CC BY-SA 4.0 |
fixed typos
|
Dec 3, 2020 at 15:49 | history | answered | Pikalek | CC BY-SA 4.0 |