Tetris clone… IN RUBY!!
Uses ruby.wasm and a standard JS canvas.
Tetris clone… IN RUBY!!
Uses ruby.wasm and a standard JS canvas.
had to refactor the entire input system for ARR so you can move the piece easier
also hold piece (the I piece in the top left)
Log in to leave a comment
7 bag for good randomness
ghost pieces for knowing where your piece will go when hard drop
and also hard drop
soryr im at school rn (comp sci class specifically no one around me knows how to clone an array)
Log in to leave a comment
movement and rotation and gravity and collision and randm pieces and board collision and next piece and piece locking
Log in to leave a comment
piece rendering. it uses the srs rotation table for info. making this table was such a timesave.
supports any of the 7 tetrominoes, with their respective colours, at any rotation, at any position
Log in to leave a comment
first real project with ruby. the syntax is a bit weird but after the inital learning curve i can finish in 10 hours
all i have now is a half decent drawing api, rn only used for the board outline
Log in to leave a comment