MisanthropicBit / terminal_blocks

A Tetris clone you can play in your terminal
MIT License
0 stars 0 forks source link

Better guides #6

Closed MisanthropicBit closed 5 years ago

MisanthropicBit commented 5 years ago

Currently, the guides for where a block will end up when dropped are simply drawn by drilling down the game grid for each position of the block's squares. This gives some wonky results when one square hits another early while another square continues to hit the bottom of the game grid for example.

Instead, simply use the existing collision detection to find the final position of the block and draw the guides there. One could then replace the '_' guide characters with something more representative.