14 lines
525 B
Python
14 lines
525 B
Python
|
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]]
|