overdrivenpotato / rust-psp

Rust on PSP. Panic and allocation support. Access PSP system libraries.
Other
588 stars 31 forks source link

How to draw sprites to display without embedded graphics? #141

Closed imagineeeinc closed 1 year ago

imagineeeinc commented 1 year ago

I am trying to make a game where I need to display sprites to the screen, I followed a tutorial to setup a graphics system, but can't seem to draw sprites, If anyone can point me in the right direction to set up.

sajattack commented 1 year ago

You'll want to use sceGu. I wrote a sprite engine that uses sceGu in this example https://github.com/overdrivenpotato/rust-psp/blob/master/examples/fontdue-scrolltext/src/graphics/sprite.rs

sajattack commented 1 year ago

If you need more help, feel free to join the #rust-psp channel in the PSP homebrew discord and I'll try to walk you through it https://discord.gg/WY8XhDG