+atari2600land Posted June 30, 2009 Author Share Posted June 30, 2009 After discovering that some combinations of pieces weren't falling down the way they were supposed to, I spent hours trying to get it right. I think I did here. I copied and pasted the same thing that worked for player0 to player1, so both players should work good now. As usual, please report any bugs you see. tetris2player8.bas.bin tetris2player8.bas 1 Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted June 30, 2009 Author Share Posted June 30, 2009 The 1-player mode is pretty much done at this point, unless, of course, you or I spot any bugs. I still need to know what happens if someone reaches a game over in 2-player mode. Does the other player keep playing until they get game over too, or does he/she automatically win and the game is over? tetris2player9.bas.bin tetris2player9.bas 1 Quote Link to comment Share on other sites More sharing options...
GroovyBee Posted June 30, 2009 Share Posted June 30, 2009 You wrote the code so you can tell us what happens. Quote Link to comment Share on other sites More sharing options...
RevEng Posted June 30, 2009 Share Posted June 30, 2009 I believe he means what happens in "official" 2-player tetris, not his program. But AFAIK there is no official 2 player tetris. Some clones have the game end when one of the players lose, other have you play it out. One feature some have, which you may choose to copy, is if you get a tetris it causes your opponent to have his stack move up and random blocks inserted on the bottom rows. Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted June 30, 2009 Author Share Posted June 30, 2009 What about the two-player Tetris in 'Tetris & Dr. Mario' for the SNES? Quote Link to comment Share on other sites More sharing options...
SeaGtGruff Posted June 30, 2009 Share Posted June 30, 2009 But AFAIK there is no official 2 player tetris. Some clones have the game end when one of the players lose, other have you play it out. This is what I was thinking about: (1) Stop the losing player's score and display "GAME OVER," but let the other player keep playing until he loses. (2) The player who lasted the longest gets a marker (maybe using a "spare life" icon or something). (3) Each player's high score is remembered and displayed. Then the two players can decide how they want to determine the overall winner-- first player to earn two markers (i.e., outlasting the other player on "two out of three" rounds); or whoever gets the highest high score overall. Or something like that. Michael Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted July 1, 2009 Author Share Posted July 1, 2009 In this version when playing 2-player and one person gets a game over, the other person keeps playing. When both of them get a game over, both totals will be on the title screen. tetris2player10.bas tetris2player10.bas.bin 1 Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted July 1, 2009 Author Share Posted July 1, 2009 I've discovered yet another bug about the lines falling. While trying to simplify the code, I've stumbled across another problem that needs help. It's at line 455. What should y equal there? Help! tetris2player11.bas 1 Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted August 10, 2009 Author Share Posted August 10, 2009 I got back to working on this, and I solved the problem I was having. Now, I think line clearing more than once is good, but if you see any bugs, please report them. If you want the two player game, have the right difficulty switch be A (F7 in Stella), otherwise, you'll get the one player game. tetris2player11a.bas.bin tetris2player11a.bas 1 Quote Link to comment Share on other sites More sharing options...
smartkitten26 Posted August 10, 2009 Share Posted August 10, 2009 (edited) Nice job on that, it looks pretty good for a bB game Edited May 19, 2015 by smartkitten26 Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted August 10, 2009 Author Share Posted August 10, 2009 Made it so the dreaded red number doesn't show up during the two-player game. Please play this version instead of 11a, as I changed a few other lines of code. tetris2player13.bas.bin tetris2player13.bas 1 Quote Link to comment Share on other sites More sharing options...
smartkitten26 Posted August 11, 2009 Share Posted August 11, 2009 Made it so the dreaded red number doesn't show up during the two-player game. Please play this version instead of 11a, as I changed a few other lines of code. Attached File(s) tetris2player13.bas.bin ( 32K ) Number of downloads: 5 tetris2player13.bas ( 33.74K ) Number of downloads: 1 Wow! you did a good job!! all i can think of next is to make the blocks in different colors. 1 Quote Link to comment Share on other sites More sharing options...
smartkitten26 Posted August 11, 2009 Share Posted August 11, 2009 (edited) Made it so the dreaded red number doesn't show up during the two-player game. Please play this version instead of 11a, as I changed a few other lines of code.Attached File(s)tetris2player13.bas.bin ( 32K ) Number of downloads: 5tetris2player13.bas ( 33.74K ) Number of downloads: 1 Wow, you're doing a great job! All i can think of doing next is making the blocks different colors. Edited May 20, 2015 by smartkitten26 Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted August 12, 2009 Author Share Posted August 12, 2009 Unfortunately, I have to make all the blocks the same color because I'm using the playfield for them. And I found a new bug I have to work on. Quote Link to comment Share on other sites More sharing options...
Atari Dogs Posted August 12, 2009 Share Posted August 12, 2009 (edited) Nevermind. I just played again. Everything fine. Edited August 12, 2009 by Atari Dogs Quote Link to comment Share on other sites More sharing options...
smartkitten26 Posted August 12, 2009 Share Posted August 12, 2009 (edited) This is one of the best games youv'e ever made. And it's also one of the best bB games too. Edited December 13, 2011 by Nati Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted August 12, 2009 Author Share Posted August 12, 2009 Thanks for the compliments. I think I've fixed the bug I talked about earlier. Please play this and see if there's any new ones that popped up, especially the 2-player version. tetris2player15a.bas.bin tetris2player15a.bas 1 Quote Link to comment Share on other sites More sharing options...
smartkitten26 Posted August 12, 2009 Share Posted August 12, 2009 (edited) Thanks for the compliments. I think I've fixed the bug I talked about earlier. Please play this and see if there's any new ones that popped up, especially the 2-player version. I haven't really found any bugs yet (I've only been playing for five minutes), but I think that two player mode should be sped up a little. Edited May 19, 2015 by smartkitten26 Quote Link to comment Share on other sites More sharing options...
smartkitten26 Posted August 12, 2009 Share Posted August 12, 2009 (edited) . Edited May 19, 2015 by smartkitten26 1 Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted August 13, 2009 Author Share Posted August 13, 2009 (edited) I found a few more bugs and squished them (hopefully). The program isn't the way I want it to be, but it'll have to do. I hate being a perfectionist. I sped up the two-player game by cutting time in half. Hopefully it's not too fast now. The dreaded red number has shown up again and I need to fix it. tetris2player16.bas.bin tetris2player16.bas Edited August 13, 2009 by atari2600land 1 Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted August 13, 2009 Author Share Posted August 13, 2009 Red number in debug score gone, however it does display 000000 sometimes. While I was working on it, it displayed 000000, but in red instead of white. Is there a difference between red and white when the number is at 0? tetris2player17.bas.bin tetris2player17.bas 1 Quote Link to comment Share on other sites More sharing options...
smartkitten26 Posted August 13, 2009 Share Posted August 13, 2009 Red number in debug score gone, however it does display 000000 sometimes. While I was working on it, it displayed 000000, but in red instead of white. Is there a difference between red and white when the number is at 0? It's great but i noticed a bug in the blocks, They tend to repeat, for example here's the pattern i got Upside Down T-Block Square Block Square Block Square Block Square Block Square Block L-Block Line Quote Link to comment Share on other sites More sharing options...
+atari2600land Posted August 13, 2009 Author Share Posted August 13, 2009 I noticed that too. I tried putting in something like "z=rand16" but just got different patterns like that. It also likes to repeat those square blocks for some reason (just like the Game Boy version). Just so you know, the blocks that are falling are supposed to be random. Quote Link to comment Share on other sites More sharing options...
smartkitten26 Posted August 13, 2009 Share Posted August 13, 2009 (edited) Keep up the good work, I'm sure you'll figure it out somehow. Edited May 19, 2015 by smartkitten26 Quote Link to comment Share on other sites More sharing options...
RevEng Posted August 13, 2009 Share Posted August 13, 2009 If you have an extra couple of bytes of ram you could throw in some anti-repeat code. If a block matches the last selected one, randomly select another one. That should cut the multiple-runs down a fair bit, and not add too many cycles. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.