Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Create a progress bar
- - By nifriz Date 2019-02-12 12:49
I'm working on a little game, and I need to put on screen a progress bar...
How can I do it with Gosu? I need OPENGL? If yes, some advise about gem to use and some simple example?

Thank you
Parent - - By jlnr (dev) Date 2019-02-12 13:42
You don't need OpenGL for that. I've hacked together a quick example here: https://gist.github.com/jlnr/413b03c4289dab70932540e6fc0b01a6

If you want to draw a textured progress bar, you can also draw two images on top of each other, but use Gosu.clip_rect to only draw a portion of the inner bar.
Parent - By nifriz Date 2019-02-12 14:17
Ok, it's a sly hack, thank you!
Up Topic Gosu / Gosu Exchange / Create a progress bar

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill