LF08/tilemap.py

14 lines
525 B
Python
Raw Normal View History

2023-04-19 10:59:13 +02:00
import pygame
class tilemap(pygame.sprite.Sprite):
def __init__(self):
super().__init__()
self.image =pygame.image.load("roads2w.png").convert_alpha()
self.rect = self.image.get_rect()
self.rect = 0, 0
self.road_quer = self.image.subsurface(64*2, 0, 64, 64)
self.map_array = [[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0],
[0, 0, 0, 0, 0]]