Julian
Julian
Yes and no. What I'm used to is Apple's API, specifically `[UIScreen mainScreen].scale` on iOS, which is typically 1.0, 2.0, or 3.0. Games can use this factor to load higher-resolution...
This question just came up on the Gosu Discord server – the `ruby-audioinfo` gem should be able to do this. I still think there's value in having this in Gosu...
`length` will be added in #527. I've decided not to implement `position`, and will close this ticket. As mentioned in https://github.com/gosu/gosu/pull/504#pullrequestreview-406191563, `position` can be emulated by keeping track of when...
Hey @mullermp, that's actually a really cool use case. However, it sounds like Song#position is actually more important than Song#length, is that right? Because the latter has some conceptual problems...
> Unless I made a mistake, though, it seems as if we have to provide the a value (fourth parameter) as well. No mistake! But there is another method `Gosu::Color.rgb`...
Loading images from GIF seems simple enough. stb_image *almost* supports animated GIF files out of the box – note to self, search for "animated" here and there are some pointers:...
And one more thought. Right now Gosu reserves one dedicated OpenAL channel for songs. That prevents a situation where `Song.play` silently fails when many samples are playing already. One clean...
Another thing that I'll have to rethink with this PR is the "automagic handling" of Gosu::Song in the iOS/UIKit port: https://github.com/gosu/gosu/blob/master/src/GosuViewController.cpp#L108-L128 Both the code and logic are ancient. I need...
The problem with #287 was this: When `close` is called from within `tick` (in `update` or any of the other callbacks), `tick` must return false and the window must disappear;...
> tick seems to have multiple responsibilities Agreed, it's definitely a confusing API. On the other hand, I like that it hides an advanced use case behind a single method...