Okay, I guess dx,dy can be ints. But then they are used like this:
x=x+Cos(angle)*speed
This has the form Int = Int + Float and results in the behavior I described, i.e. faster movement to the left.
As a matter of personal style I would still make them floats because of the way they are interact with other variables.
x=x+Cos(angle)*speed
This has the form Int = Int + Float and results in the behavior I described, i.e. faster movement to the left.
As a matter of personal style I would still make them floats because of the way they are interact with other variables.