Timeline for Floats vs. Ints for position and collision
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 29, 2021 at 1:50 | comment | added | user122973 |
Your code assumes TileWidth == TileHeight or in the given code TileData.TILE_SIZE == 16 . It would be better to split the pixels variable into x and y with the second using TileHeight as the multiplier. As for maxCells use (int)(1/(MOVE_SPEED * dt) +1) where dt <= Game1.TargetElapsedTime for full precision at 60FPS and a movement speed of 100 use 0x1771 .
|
|
Jul 6, 2021 at 3:20 | history | edited | FreddyFlares | CC BY-SA 4.0 |
deleted 8 characters in body
|
Jul 6, 2021 at 3:15 | review | First posts | |||
Jul 6, 2021 at 14:32 | |||||
Jul 6, 2021 at 3:10 | history | answered | FreddyFlares | CC BY-SA 4.0 |