Graphics 800, 600, 32, 2 SetBuffer BackBuffer() ; Our loop runs forever until we press ESC While Not KeyHit(1) ; Key 1 is the Escape key

Flip

The numbers (203, 205) are DirectX scan codes. You can look them up, or use Blitz's built-in constants: KEY_LEFT , KEY_RIGHT , KEY_UP , KEY_DOWN . 5. Making Noise (The Joy of Beeps) No game is complete without sound. Load a WAV file (keep it small) and play it when the ball hits the wall.

First, put a file called boop.wav in your project folder.

; 2. Ball Movement ball_x = ball_x + ball_dx ball_y = ball_y + ball_dy