Using array of images to spawn enemies in game

Avoid calling image(PImage img, float x, float y, float xSize, float ySize); it degrades performance.

Always call image(PImage img, float x, float y) instead.

If you need to resize your images, resize the file so the computer does not have to resize them EVERY time.

1 Like