Setup for basic Editor for map, started gameplay screen

This commit is contained in:
2026-05-20 15:58:06 +02:00
parent cc0a92060b
commit 6283fb0d5a
13 changed files with 383 additions and 59 deletions
+16
View File
@@ -0,0 +1,16 @@
import pygame as pg
import os
img_path='assets/images'
WINDOW_SIZE=(800,600)
def load_image(path, colorkey=(0,0,0)):
img = pg.image.load(img_path + path).convert()
img.set_colorkey(colorkey)
return img
def load_images(dir_path):
images = []
for img_name in os.listdir(img_path+dir_path):
images.append(load_image(dir_path + '/' + img_name))
return images