Writing text using ObjectTextRender only having OamManaged OR A better approach to writing text in general #536
Unanswered
CombustibleToast
asked this question in
Q&A
Replies: 1 comment 1 reply
-
ManagedOam provides an ordered list abstraction over UnmanagedOam. I have a branch with this abstraction pulled out in #537. This will let you use UnmanagedOam with the sorted object list, although at that point you could manage it yourself too. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm pretty new to both Rust and agb, so please forgive my ignorance.
I'm trying to figure out how to make a simple score readout for my game. My attempt at this involves using an
ObjectTextRender
as it had the most documentation and seemed fairly straightforward. I had everything implemented up until I needed to pass a&mut OamUnmanaged.iter()
intoObjectTextRender.commit()
. The borrow checker disallowed me from doing this because I already borrowed&mut gba
earlier in the function when getting theOamManaged
for all of my other sprites, so I can not also get theOamUnmanaged
. Here's a stripped down version of my main function:I'm wondering if it's viable to use both the Managed and Unmanaged OAMs in the same code so I can use the Unmanaged with the ObjectTextRender. If there is a better way to write text that I am missing, please let me know. Any guidance appreciated. TIA!
Beta Was this translation helpful? Give feedback.
All reactions