Uniwersalna ścieżka pliku
This commit is contained in:
parent
1e0163f5ef
commit
8e1c43aaba
@ -1,3 +1,4 @@
|
||||
from pathlib import Path
|
||||
import pygame as pg
|
||||
import random
|
||||
|
||||
@ -30,7 +31,8 @@ class Interface:
|
||||
|
||||
# tilesy
|
||||
self.cell_size = pg.Vector2(64, 64)
|
||||
self.textures = pg.image.load("../res/tiles.png")
|
||||
textures_path = Path("../res/tiles.png")
|
||||
self.textures = pg.image.load(textures_path)
|
||||
|
||||
# okno
|
||||
pg.display.set_caption("Inteligentna śmieciarka")
|
||||
|
Loading…
Reference in New Issue
Block a user