tanques/clase_fondo.py
2023-06-01 00:39:26 +02:00

11 lines
300 B
Python

import pygame
class Fondo:
def __init__(self, juego):
self.screen = juego.screen
self.rutaImagen = 'imagenes/fondo.png'
self.image = pygame.image.load(self.rutaImagen)
def blitme(self):
''' Pintar fondo actual '''
self.screen.blit(self.image, (0, 0))