diff --git a/highway_vector.py b/highway_vector.py index 09ef1db..b8d06f6 100755 --- a/highway_vector.py +++ b/highway_vector.py @@ -644,14 +644,27 @@ class Game: ) self.spares.append(spare) + # GENERACIÓN INCREMENTADA DE BLOQUES for y in range(10, GRID_SIZE_Y - 12): - if y % 6 == 0: - lane = (y * 3) % GRID_SIZE_X - if (y // 6) % 2 == 0: - self.entities.append(WhiteBlock(lane, y)) + # Genera bloques cada 2 filas en lugar de cada 3 o 6 + if y % 3 == 0: + lane1 = (y * 3) % GRID_SIZE_X + lane2 = (y * 5 + 2) % GRID_SIZE_X + + # Bloque blanco o morado alternado + if (y // 2) % 2 == 0: + self.entities.append(WhiteBlock(lane1, y)) else: - self.entities.append(PurpleBlock(lane, y)) + self.entities.append(PurpleBlock(lane1, y)) + + # Añade un segundo bloque en la misma fila para crear barreras más tupidas + if lane1 != lane2: + if y % 4 == 0: + self.entities.append(WhiteBlock(lane2, y)) + else: + self.entities.append(PurpleBlock(lane2, y)) + # Configuración de Enemigos if y % 14 == 0: self.entities.append(Enemy(2.0, y, destructible=True)) @@ -738,7 +751,7 @@ class Game: if self.lives <= 0: self.screen.fill((0, 0, 0)) msg = self.font.render( - "GAME OVER - Press R to Restart", True, (255, 50, 50) + "GAME OVER - Pulsa R para Reiniciar", True, (255, 50, 50) ) self.screen.blit( msg, (SCREEN_WIDTH // 2 - 150, SCREEN_HEIGHT // 2) diff --git a/img-versiones/version_final_05-zona0.png b/img-versiones/version_final_05-zona0.png new file mode 100644 index 0000000..3339d56 Binary files /dev/null and b/img-versiones/version_final_05-zona0.png differ diff --git a/img-versiones/version_final_05.png b/img-versiones/version_final_05.png new file mode 100644 index 0000000..f983a61 Binary files /dev/null and b/img-versiones/version_final_05.png differ