-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fucked up somewhere #1
Comments
import sys creating the data structure for piecessetting up global varsfunctions- create_grid- draw_grid- draw_window- rotating shape in main- setting up the mainpygame.init() #screen dymensions #Define the different tetromino shapes (I, J, L, O, S, T, Z) using 2D arrays. SHAPES = [ Initialize tetromino positiontetromino_x, tetromino_y = WIDTH // 2, 0 Create the game windowscreen = pygame.display.set_mode((WIDTH, HEIGHT)) Initialize the grid (2D array to track placed blocks)grid = [[None] * (WIDTH // GRID_SIZE) for _ in range(HEIGHT // GRID_SIZE)] clock = pygame.time.Clock() Game loopGame loopwhile True:
Clean uppygame.quit() |
this is not what i had in mind
The text was updated successfully, but these errors were encountered: