I am making a game that is a tetris-like puzzle game, and it involves placing square blocks down. I have it set up to where when the program is run, a block is spawned above a fenced in area, and that block moves down every 1000ms. It can be moved in different directions using left, right, or down, and when it hits the bottom boundary, the y position resets back to default and a "copy" of the block is placed at it's previous position. I am trying to figure out how to make the copy stay drawn, and also how to make the copy block impermeable, as the main block can actually occupy the same position as the copy after it is placed down.
I am very new to python and pygame, so all I have thought to do is possibly make a variable called copyCount, and whenever a copy is drawn, add a number to that count, and for every number in range(copyCount), draw a rectangle. Otherwise though, I am blanking. No idea also on how to make said copy block impermeable (check both the Y positions of the copy and main block?)
I expected for the blocks to stay drawn on the screen but they do not.