Search found 2 matches
- Sun Aug 18, 2024 11:20 pm
- Forum: Support and Development
- Topic: Problem with eventual corrupted state in tetris
- Replies: 2
- Views: 3663
Re: Problem with eventual corrupted state in tetris
Welcome to the forums. The problem is in gameBoard:clearRows(). You're basically shifting all rows down, but you're not creating a new empty one on the top. The first time you delete a row, row 2 becomes the same table as row 1. On subsequent times, that reference keeps propagating down, until all ...
- Sun Aug 18, 2024 6:22 pm
- Forum: Support and Development
- Topic: Problem with eventual corrupted state in tetris
- Replies: 2
- Views: 3663
Problem with eventual corrupted state in tetris
The Problem: In my Tetris clone, after some amount of play time, my board state will become corrupted so that when a Tetromino is placed, all the tiles in that Tetromino's columns will act as if they are filled despite no direct calls to fill the tiles. Once the bug occurs, any new Tetromino placed ...