v3-----v4------v5
1. Installs and de-installs keyboard, timer, mouse, and sound handlers.
2. Displays introductory sequence.
3. Gets level, category and player information.
4. Plays background and completion MIDI and .wav sounds.
5. Loads initial pictures.
6. Waits for break keys (esc ends game at any time) and mouse click on "guess" button, exiting game and switching to guess mode, respectively.
7. Turns over portions of the PCX file upon a collision.
8. Calculates trajectories of ball after detecting collisions.
9. Matches correct guesses and calls next level.
10. Returns incorrect guesses to game with score penalty.
11. Counts number of paddle hits.
12. Keeps track of paddle position to detect collisions.
13. Anything else we come across in our final project endeavor!
AX = 704h
BX = Offset of XMIDI data
CX = Segment of XMIDI data
SI = Low word of length of XMIDI data
DI = High word of length of XMIDI data
Outputs:
AX = 0 Unable to register XMIDI data
AX = 1 XMIDI registered, held in MIDPAK's buffer
AX = 2 XMIDI file registered, but keep data at same address