JacobNickerson / cetris

Tetromino based gravity puzzle game
GNU General Public License v3.0
3 stars 0 forks source link

Change tetromino blocks member to std::vector #8

Closed JacobNickerson closed 3 months ago

JacobNickerson commented 4 months ago

Currently the tetromino class has a member blocks which is an std::array, in the current implementation of sticky gravity, many functions have to populate a vector with the members of this array, it may be useful to refactor this member to be a vector and any methods that input a tetromino as a parameter

JacobNickerson commented 3 months ago

doing this completely broke the game lol, would require some more extensive rewriting, instead a vector is populated in the placetetromino function and then used for sticky gravity