SHORT: Multi-player Tetris clone. With source. Looks nice. Editable levels. Action: Assign Tetris: . Hello everyone! This is my obligatory Tetris clone. I figure its playable enough to release. If anyone feels the need to improve the game, do it. I would enjoy hearing from you and adding any code changes you might have. My internet address is: umsmigi0@ccu.umanitoba.ca This program can only be started from CLI and needs 2.0. OPTIONS PLAYERS - Number of players. Right now has a max of 3. You can have more players by adding new raw key code strings to the ControlKeys array. Also add a corrosponding KeyTask element to the Tasks array. LEVEL - Level to start at. DEPTH - Depth of bitmaps. Will probably crash if you set it higher than the screen. It will default to 2, even if your screen is deeper. XSIZE - Change the width of the Tetris pieces. YSIZE - Change the height of the Tetris pieces. BORDER - Size of ther border around the Tetris 10×20 playfield. NOWAIT - Don't wait for other players. Normally you will not go to the next level if other players have not finished the level as well. LEVELS To use the levels you need to assign Tetris: to the place where the levels directory is. Use the TxtToBin command to make the levels. There are some example levels in the supplied directories. The format for making a level is: line 0: Decimal number which shows how this level is to end. You will usually want to use 3, I'm not sure if anything else will work. Bit 1 means you need to clear X number of rows. X is defined later on. Bit 2 says you only have Y seconds to finish. Y is defined later. line 1: Number of rows to clear. (X from above) line 2: Time to play. If the time runs out, game over. (Y from above) line 3: How many seconds until a line pops up from the bottom. line 4-24: 20 lines of hex numbers which describe the playfield. Only the last 10 bits are used by TxtToBin. BUGS The joystick stuff was a little buggy. I don't think the port is freed. Which I don't understand, because I used the code Commodore supplied. If you want to use the joystick, rearrange the ControlKeys and Tasks array so that JoyTask is first. The score, time and row count are not adjusted according to XSize and YSize. Same goes for the next piece display. Can't think of anymore. I think I've found and removed all the enforcer and mungwall hits. TODO It would be nice to have a level editor. Be able to change the colors of the pieces. Maybe use patterns as well. Let the user change the keys to use. High score table. etc. Trevor umsmigi0@ccu.umanitoba.ca ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 0 0 0.0% 18-Nov-92 08:35:14 Tetris/ 3111 957 69.2% 28-Oct-92 18:26:36 Tetris/GamePort.c 3692 1664 54.9% 31-Oct-92 18:59:06 Tetris/GamePort.o 326 177 45.7% 28-Oct-92 18:26:42 Tetris/GamePort_protos.h 198 144 27.2% 18-Nov-92 05:27:04 Tetris/SCOPTIONS 6677 2354 64.7% 18-Nov-92 05:32:56 Tetris/TestImages.c 27780 15412 44.5% 18-Nov-92 08:11:02 Tetris/Tetris 15320 3702 75.8% 18-Nov-92 08:10:38 Tetris/Tetris.c 2022 976 51.7% 18-Nov-92 07:41:14 Tetris/Tetris.h 2675 1351 49.4% 18-Nov-92 08:37:16 Tetris/Tetris.readme 7000 2189 68.7% 18-Nov-92 05:32:52 Tetris/TetrisImages.c 1090 556 48.9% 18-Nov-92 05:32:32 Tetris/TetrisImages_protos.h 1159 563 51.4% 18-Nov-92 05:32:26 Tetris/Tetris_protos.h 3540 2349 33.6% 18-Nov-92 07:50:58 Tetris/TxtToBin 1792 841 53.0% 18-Nov-92 07:50:54 Tetris/TxtToBin.c 1296 694 46.4% 18-Nov-92 05:32:34 Tetris/con_input.h 4562 1650 63.8% 18-Nov-92 05:33:02 Tetris/joy_input.c 6182 2006 67.5% 18-Nov-92 05:54:24 Tetris/key_input.c 0 0 0.0% 18-Nov-92 08:34:52 Tetris/levels/ 50 23 54.0% 18-Nov-92 07:51:06 Tetris/levels/0 50 35 30.0% 15-Sep-92 17:28:40 Tetris/levels/1 50 28 44.0% 15-Sep-92 17:28:44 Tetris/levels/2 12154 3952 67.4% 18-Nov-92 08:01:06 Tetris/main.c 879 490 44.2% 18-Nov-92 06:36:14 Tetris/main_protos.h 735 262 64.3% 17-Nov-92 07:22:46 Tetris/smakefile 0 0 0.0% 18-Nov-92 08:34:54 Tetris/txtlevels/ 50 18 64.0% 15-Sep-92 17:22:06 Tetris/txtlevels/0 59 32 45.7% 15-Sep-92 17:21:58 Tetris/txtlevels/1 71 22 69.0% 15-Sep-92 17:21:52 Tetris/txtlevels/2 -------- ------- ----- --------- -------- 102520 42447 58.5% 18-Nov-92 14:50:12 29 files