tetr.rb banner

tetr.rb

7 devlogs
10h 52m 55s

Tetris clone… IN RUBY!!

Uses ruby.wasm and a standard JS canvas.

Demo Repository

Loading README...

Shuflentity

game now resets when new piece cant spawn
and started working on score, currently only tracks line clears

Attachment
1

Comments

Shuflentity
Shuflentity about 1 month ago

oh and also next piece display i forgot

Shuflentity

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)

Attachment
0
Shuflentity

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)

Attachment
0
Shuflentity

movement and rotation and gravity and collision and randm pieces and board collision and next piece and piece locking

Attachment
0
Shuflentity

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

Attachment
0
Shuflentity

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

Attachment
0