News for hackers. Stuff that matters.
Re:Celebrating the first NES Tetris game crash by darylteo on Friday December 22, 2023 @11:18PM (#38741591)
> level 30

This is also an interesting one...

Thought 1 - is this a result of the limitations of assembly coding? Is it more efficient (either computationally or memory-wise) to store 29 constants rather than doing it computationally? This would make "29 levels" a conscious assumption and I'm assuming there must be some kind of technical hardware limitation that makes it 29.

Thought 2 - is this a result of game coding logic?

Game code runs on a game loop. So there is a "minimum" logical number of frames that things could possibly happen i.e. 1 frame. So, the "max speed" is set at 1 frame. You can't go any faster than that. So if they just made (e.g.) 1 frame less per next level, they just decided that 29 frames was a nice starting speed.

This makes "29 levels" less of an assumption, and more a consequence of other decisions.

Re:Celebrating the first NES Tetris game crash by tom_ on Saturday December 23, 2023 @12:01AM (#38741754)
there's a disassembly here, it looks like: https://github.com/CelestialAmber/TetrisNESDisasm
Re:Celebrating the first NES Tetris game crash by jncfhnb on Saturday December 23, 2023 @06:25PM (#38749327)
NES level 29 is a drop per frame, yes