I’m coming from processing js (PJS).
in PJS we can do something like:
image(imgObj, x, y);
How can I accomplish similar in Phaser 3?
Why do I need to do this?
Well in my project I have stars I render using points. But it’s boring so I want to change every point to an image (there will be different types of star images).
If I loaded in every single star as a image Game Object. That would take an enormous amount of
memory. So I need to find a way to render all the stars that are only on screen.
I wish there was something like:
this.renderer.draw(imgKey, x, y)
or something.
Is there a way to accomplish this?