This dancer sample code for the Sony Ericsson T6xx and Z600 devices is a simple Java platform sample code that moves an animated image of a dancer around the screen. Press the joystick UP to make the dancer jump. You can control the height of the jump by holding the joystick UP for a shorter or longer period. Likewise you can make the dancer breakdance on the ground by pressing the joystick DOWN or you can move him sideways with joystick LEFT or RIGHT. You can also make him jump sideways by combining key presses; to jump right, first press joystick UP and then joystick RIGHT. Instead of using the joystick, you can also use the keys 2, 4, 6 and 8.
Code examples and code modules