You are the cube. Use the left and right arrow keys (or a and d) to move yourself left and right. You automatically bounce up and down. Move to dodge the missiles. Each time a missile reaches the edge you get a point and the top and bottom edge in. Space to pause.
All my coding and graphics Two player version: https://scratch.mit.edu/projects/112174225/