So i am making a game and i'm at the point where i'm writing the walls. However, i really only know how to make walls in the shape of rectangles. Every solution i looked up online either A, only shows rectangle walls or B, requires using stuff like pygame.Ploygon . Since i draw all my images in MS Paint, it would really be annoying to basically have to draw everything again. Also i mostly use if and elif statements for walls, so if possible, that's how i would like to get this done.
Below is just a test program that i'd use for this.
#START PROGRAM
import pygame
import random
pygame.init()
size = (640,520)
screen = pygame.display.set_mode(size)
pygame.display.set_caption("test")
done = False
clock = pygame.time.Clock()
tb=pygame.image.load("testblock.png")
tm=pygame.image.load("testmap.png")
x=0
y=0
while not done:
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
keys=pygame.key.get_pressed()
screen.blit(tm,(0,0))
screen.blit(tb,(x,y))
if keys[pygame.K_w]:
y-=2
if keys[pygame.K_a]:
x-=2
if keys[pygame.K_s]:
y+=2
if keys[pygame.K_d]:
x+=2
pygame.display.flip()
clock.tick(60)
pygame.quit()
Any help would be appreciated. I've been stuck on this for many hours now.