Hey everyone,
Just coding a game at the moment and was wondering how I would add a png to this object I have created:
cars = []
car_count = 2
for i in range(car_count):
x = random.randrange(0, 340)
car = Car(x, random.randrange(-150, -50), 0, random.randint(5, 10), 60, 60, CAR_COLOR)
cars.append(car)
For example instead of it just showing up as a box how would I be able to make it show up as a png image of my own choice. Thank you :)
Just coding a game at the moment and was wondering how I would add a png to this object I have created:
cars = []
car_count = 2
for i in range(car_count):
x = random.randrange(0, 340)
car = Car(x, random.randrange(-150, -50), 0, random.randint(5, 10), 60, 60, CAR_COLOR)
cars.append(car)
For example instead of it just showing up as a box how would I be able to make it show up as a png image of my own choice. Thank you :)


