Open ratijas opened 5 years ago
@ratijas Thanks for the information! I just implemented this on a whim and didn't know SRS or wall-kicks. It's interesting but seems hard to implement...! http://harddrop.com/wiki/SRS
there are no such stuff as 'tetro'.
Oh 😂 😂 That's good to know. English is difficult. I'll rename it later. Thanks again :)
https://github.com/ryym/textris/blob/284603b98f8de440053a7b3e3a7e10ae3ff4f38c/src/tetromino.rs#L42-L47
So, basically, there are just hard coded rotation values for single rotation position. No SRS support. No wall-kicks.
https://github.com/ryym/textris/blob/284603b98f8de440053a7b3e3a7e10ae3ff4f38c/src/play.rs#L193
fn move_tetro(&mut self, dir: Dir) -> Result<(), ()> {
AFAIK, there are no such stuff as 'tetro'. There are minos: little single squares; and tetrominos (or tetriminos): O, I, J, L, S, Z, T shapes consisting of four minos.
RTFM @ http://harddrop.com/wiki/Tetris_Wiki for more information.