I have a following problem. Some time ago I made a game with DelphiX. It is a space shooter for two. One on one viewed from top perspective. You can accelerate and break and you can turn left or right (0..360 degrees).

But the problem is here : DelphiX use float for X and Y coordinates of the Sprite. PowerDraw rutine RenderEffect only uses integer for X and Y coordianted. This is a problem because I calculate movement like this:

Ship.X := Ship.X + Round(cos(Ship.Angle) * Ship.Speed)
Ship.Y := Ship.Y + Round(sin(Ship.Angle) * Ship.Speed)

Now speed cannot be to big or the movement would be to fast, but it speed is small 0.05 or 0.1 then there is no accuracy because the result is rounded up.

In DelphiX the movement is accurate and very smooth, but in PowerDraw there is not.

Does anyone has a solution or workaround for this?


Thanks.
Runner