|
文章出处: http://soapdragon.emedia.net.nz/SoapDragon/Default.aspx?tabid=58
里面题到有一段 We can also calculate a point within each map cell for more accuracy. I divide each map cell into a grid of 32x32 (or more accurately a grid of TileDepth by TileDepth). The point in the centre of the grid is (0,0). The point on the cell at the top left is (-16,-16), and the bottom right is (16,16). This can be used to calculate where on the cell an actor is located. If we didn’t use this then they would “jump” between cells rather than slowly move from one to another. We call these values DeltaX and DeltaY.
他说的deltaX和deltaY到底是什么?
|