I was thinking of actually using a table for this ( 0 - 45 degrees) and reusing this for the other values of the angle. The value in the table would specify how much pixels the vertical movement (m) should be for (n) pixels horizontally.
Or are there better ways to implement this?
Second question:
See picture. The idea is that the object is moving across the screen in a straight line until it enters the gravity-field of a planet. The course of the object get's changed (the close to the planet, the bigger the course deviation ofcourse). Multiple planets with interfering gravity fields could be on the screen at once.
I could ofcourse use the real mathematical formula's the realistically compute the trajectory of the object, but the target machine does not have the computing power for that (to further complicate matters, the only math. instructions it has are add and negate
Anyone have an idea about how to implement this? The trajectory doesn't have to be 100% correct, as long as it looks convincing. I don't need complete instructions, but just some pointers to info or something would be appreciated too...














