various fixes
This commit is contained in:
@@ -32,7 +32,7 @@ def main() -> None:
|
|||||||
|
|
||||||
pyg.display.set_caption('')
|
pyg.display.set_caption('')
|
||||||
window = pyg.display.set_mode((720, 480))
|
window = pyg.display.set_mode((720, 480))
|
||||||
#pyg.display.toggle_fullscreen()
|
pyg.display.toggle_fullscreen()
|
||||||
|
|
||||||
reel = imgReel(IMG_DIR, window)
|
reel = imgReel(IMG_DIR, window)
|
||||||
|
|
||||||
@@ -40,7 +40,7 @@ def main() -> None:
|
|||||||
while running:
|
while running:
|
||||||
reel.draw_next()
|
reel.draw_next()
|
||||||
|
|
||||||
time.sleep(0.5)
|
time.sleep(10)
|
||||||
|
|
||||||
for event in pyg.event.get():
|
for event in pyg.event.get():
|
||||||
if event.type == pyg.QUIT:
|
if event.type == pyg.QUIT:
|
||||||
@@ -58,6 +58,7 @@ class imgReel:
|
|||||||
self.images = []
|
self.images = []
|
||||||
|
|
||||||
for path in os.listdir(IMG_DIR):
|
for path in os.listdir(IMG_DIR):
|
||||||
|
ic(path)
|
||||||
self.images.append(pyg.image.load(str(IMG_DIR) + path))
|
self.images.append(pyg.image.load(str(IMG_DIR) + path))
|
||||||
|
|
||||||
ic(self.images)
|
ic(self.images)
|
||||||
|
|||||||
Reference in New Issue
Block a user