jonkogan / nullpomino

Automatically exported from code.google.com/p/nullpomino
0 stars 0 forks source link

[SQUARE mode] Spin avalanche acts strangely #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Uncomment the if(engine.tspin) {...} section of calcScore() in SquareMode
2. Do a spin
3. Watch the carnage

It should break up all blocks below the spin into single, connection-less 
blocks that can't form squares. Then, each of these pieces falls under its own 
gravity. Everything above the spin falls as if under naive gravity. However, 
some wacky stuff goes on where everything is done in one frame, and the naive 
gravity doesn't work...

I've been thinking about this problem for the past few days, and just figured I 
should leave it out for now, but if anyone else wants to take a stab at what 
I've done, go ahead. Might this call for the implementation of cascade gravity?

Original issue reported on code.google.com by Zirc...@gmail.com on 30 Jun 2010 at 5:38

GoogleCodeExporter commented 8 years ago

Original comment by Zirc...@gmail.com on 2 Jul 2010 at 6:38

GoogleCodeExporter commented 8 years ago
I added cascade gravity in r49, and I modified Square mode to use that when 
spin avalanche happens.
Because the algorithm is quite dirty, there may be bugs, so I don't close this 
issue yet.

Original comment by pbomqlu910963@gmail.com on 9 Jul 2010 at 5:54

GoogleCodeExporter commented 8 years ago
Well, the avalanche is only supposed to break apart all the blocks below the 
line where it occurred, and then use cascade gravity on those. It uses naive 
gravity for everything above the highest line cleared during the spin, and 
doesn't break anything up there that wouldn't normally be broken by regular 
line clears.

It doesn't act exactly as it does in The New Tetris, but at this point I'm not 
sure how much that matters :D

Original comment by Zirc...@gmail.com on 9 Jul 2010 at 7:08

GoogleCodeExporter commented 8 years ago
I added The New Tetris style avalanche in r62. I don't know how accurate it is 
though.

Original comment by pbomqlu910963@gmail.com on 15 Jul 2010 at 6:53

GoogleCodeExporter commented 8 years ago
Fixed completely in r183. Closing.

Original comment by Zirc...@gmail.com on 2 Aug 2010 at 6:40