I’ve been working on a small game to learn Android further, I’ve got one question about replacing digital numbers with graphical ones. I’m tired of using Canvas.drawText…
How to create a function that understands which frame to write after which if numbers are printed on a png image?
Ok, let’s say I’ve score 1240, I want to be able to replace those numbers with graphic numbers on Canvas.
I hope I made my question clear, cheers!
It’s not very hard, just place some drawables in correct places.
But if you want to make a robust widget, you need more consideration and calculation.