-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inaccessible *ebiten.DrawImageOptions #22
Comments
Animation player should not be responsible for the screen drawing. It only needs to return for example: func (g *Game) Draw(screen *ebiten.Image) {
screen.DrawImage(animation.GetFrame(), MyDrawImageOptions)
} |
I completely agree with it, let’s discuss the new API. Maybe we could add it as separate interface and then clean up as v3. Currently, ganim8 is almost direct translation of love2d, so there could be a better design. |
Sorry my finger slipped |
This comment was marked as off-topic.
This comment was marked as off-topic.
I would greatly appreciate if you could share the code of your animation library if you have written one. I was thinking that the |
Thanks for sharing the code. It looks really nice and solid. I might create a PR if there's anything I noticed. |
The link https://github.com/sokartes/ape does not work though |
I deleted my second account, a more updated version is available at this link. https://github.com/setanarut/bulimia/blob/main/engine%2Fanimplayer.go for static sprites just set frameCount=1. example is in bulimia game. |
Yes i came up with the same issue. I would prefer to be able to just get the next frame and draw it my way which already handles rotations etc. also i see that there is v3: https://pkg.go.dev/github.com/yohamta/ganim8/v3 |
*ebiten.DrawImageOptions is the most important struct in ebitengine. It needs to be accessible to work with 2D camera systems.
https://github.com/yohamta/ganim8/blob/5328f97f11666ae6d0a2e570995835c25470462d/sprite.go#L161C15-L161C15
The text was updated successfully, but these errors were encountered: