I'm making a game right now, and I want to draw out my own pictures on Photoshop first, and then put them in the game rather than having to make a bunch of rectangles and circles. I originally thought that I would use loadImage(), but it only works in draw and setup, and my game requires different images for each time the character turns.
So the question is how do I put in an image? Also how do i display text?
In my zombie game, the zombies are allowed to move only when the space in front of them is empty, and in this case, if the pixel matches the gray background. However, I do not know how to find the color of the pixel in front, though the get() method under the pixels section hold potential.
Does anyone know how to detect color, or can explain to me how the get() method works and what it returns?
So I'm trying to make a zombie game, and so far I have written a zombie class with a zombie constructor. However, I do not want to have to hard code each and every zombie into the game. Is there a way for me to constantly generate new zombies but without having to give them names?