1
0
forked from s444399/AI
AI/floor.py
2020-03-26 21:07:50 +00:00

12 lines
393 B
Python

import pygame
class Floor:
def __init__(self, screen, cell, we, ns):
self.cell = cell
self.ns = ns
self.we = we
self.screen = screen
self.image = pygame.image.load(r'images/po.png')
self.image = pygame.transform.scale(self.image, (cell, cell))
def draw(self):
self.screen.blit(self.image, (self.cell*self.ns, self.cell*self.we))