AI-Project/survival/tile.py
2021-03-14 22:57:18 +01:00

10 lines
194 B
Python

import random
class Tile:
origins = [(0, 0), (32, 0), (64, 0), (96, 0)]
def __init__(self, origin=(0, 0)):
self.origin = random.choice(Tile.origins)
self.image = None