Make tiles background random

This commit is contained in:
= 2021-03-14 22:57:18 +01:00
parent 1ded0c4c5e
commit 5417c5e3fb

View File

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