kirjavascript / TetrisGYM

nes tetris training rom
Other
189 stars 17 forks source link

Safer debug mode #37

Closed zohassadar closed 1 year ago

zohassadar commented 1 year ago

Another for your consideration. I noticed that debug mode was easy to instantly end a game if you unpaused in the wrong position, so I dug into the code and made tweaks.

Here's the changes:

Prevent unpausing if position is invalid. Prevent switching from tile placer (not sure what to call it) if position is invalid. TetriminoX and TetriminoY are now constrained to the playfield when using tile placer, looping from side to side or between top & bottom.
Piece selection cycles from longbar to T or T to longbar instead of stopping.

kirjavascript commented 1 year ago

I kinda like that you can get outside the playfield

" Piece selection cycles from longbar to T or T to longbar instead of stopping" is nice though. we should probably add the throttled stuff to it too

zohassadar commented 1 year ago

Updated accordingly

kirjavascript commented 1 year ago

oh yeah this too :100:

maybe I should add these to the changelog