Treasure Team is a cooperative game for 2-4 players. 

Players must work together to clear a path and reach the treasure as fast as possible. X marks the spot. 

Players can only remove blocks of the same color as themselves. 

Try to find the shortest route and beat the record. Enjoy! 


System Requirements:

Treasure Team can be played in VICE or a real C64. RUN and input the number of players.

The game requires a user port joystick adapter for more than 2 players. (The device is called "Classical games/Protovision" in VICE. The one used in development was a physical device available in retro computing shops. It is listed as compatible with "Bombmania".) 


About:
First time initialization is line 0-1. New game is initialized in line 2-4. The gameplay loop is in line 5-8. Line 9 uses an array to avoid if-then for saving new highscore and then starts new game. 

Arrays
A() is an array of pointers to where on screen each player is. 
Y() is an array of pointers used to read the joystick status of each player. 
D() is used to translate the joystick status (up/down/left/right) into player movement on the screen. 

Constants
U points to the address used for user port joystick data. One bit of data is output (joystick select) the others are input. Be careful if you modify the code. If the userport data direction is set wrong (at address U+2), it might damage your hardware. 
V points to video ram
S points to SID chip
C points to colour ram
W = 32
M = 50
