We are about to switch to a new forum software. Until then we have removed the registration on this forum.
In p5 not processing, does anybody know how to turn this sprite thing into full graphics? I'm a total noob.
https://github.com/maxwihlborg/youtube-tutorials/blob/master/space-invaders/res/invaders.png
Answers
You load the file using loadImage for example. Then, you use the get() method with 4 parameters: https://p5js.org/reference/#/p5.Image/get
You need to get the pixel coordinates of every sub-image in the main image manually.
Kf
Coords.: https://GitHub.com/maxwihlborg/youtube-tutorials/blob/master/space-invaders/index.html#L58-L63