I’ve run into an issue recently when trying to implement movement. I tried making a game with all entities being 32x32 images and then used FP.screen.scale to increase the size by 2. When I went to implement movement, I implemented velocity (with friction and acceleration) but I ran into the issue of getting really jumpy looking movement. I think it was due to using Numbers to handle all the movement values (Friction, Acceleration, Velocity) which caused the moveBy to get non-whole numbers. So basically on each frame when it goes to move, it is thrown off because it can only move a full pixel, not a half pixel.
How can I implement acceleration and friction without causing this sketchy movement? Do I have to make sure I use whole numbers when dealing with movement? And should I stick to using a screen.scale of 1 so that I can have greater precision?