Skip to content
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

Spriteにどのように描画をするかを保持する構造体を追加する #3

Open
Hato1125 opened this issue Nov 18, 2023 · 0 comments
Assignees
Labels
suggestion Code and feature suggestions.

Comments

@Hato1125
Copy link
Owner

概要

Spriteクラスのメンバに、Spiteをどのように描画するかの情報が入っている構造体を追加する

メリット

  • 描画する際の設定が同じ場合、かつforで回せない状況で一個ずつ設定をしていくのがしんどいのと、それをすると間違える可能性があるので、設定を構造体に分けそれを入れていけばそれを解決することができる

デメリット

  • 設定にアクセスする際にsprite.メンバ名.設定項目と少しタイプ数が増える (あまり気にしないかもしれないけど)
@Hato1125 Hato1125 added the suggestion Code and feature suggestions. label Nov 18, 2023
@Hato1125 Hato1125 self-assigned this Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Code and feature suggestions.
Projects
None yet
Development

No branches or pull requests

1 participant