pixels frames pixels second pixels
------ / ------ = ------ * ------ = ------
second second second frames frame
The sprite's speed in pixels per frame will then be
inversely proportional to the game frame rate, i.e.
the higher the frame rate, the lower the sprite speed
in pixels per frame.
Download the "Lunar Lander" program.
A simple landing platform has been added to the program (See AnimatedSpriteDemoPanel.java).
Make the following changes to the program: