AI-Project/survival/tile.py

10 lines
194 B
Python
Raw Normal View History

2021-03-14 22:57:18 +01:00
import random
2021-03-04 14:07:44 +01:00
class Tile:
2021-03-14 22:57:18 +01:00
origins = [(0, 0), (32, 0), (64, 0), (96, 0)]
def __init__(self, origin=(0, 0)):
2021-03-14 22:57:18 +01:00
self.origin = random.choice(Tile.origins)
2021-03-14 18:42:40 +01:00
self.image = None