Table of Contents

More on Images, Animation and Sprites


Decoupling From Frame Rate

         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.         

Lab Activity: Menus


Lab Activity: Collisions

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: