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

Decorator Pattern #357

Open
IceOnFire opened this issue May 30, 2020 · 0 comments
Open

Decorator Pattern #357

IceOnFire opened this issue May 30, 2020 · 0 comments

Comments

@IceOnFire
Copy link

Hey @munificent,

I just read your book and I loved it. I still have some unanswered questions though, and the main one is: what about the Decorator pattern? Without any experience in game development (but a few years in software engineering) I would say it's a perfect fit for powerups such as FireballShootingMario, or DoubleJumpDude, or even FlamingSword: it allows to easily add and remove these powerups, and even combine them together. Does it have any drawbacks? How to combine it with the State pattern that the Player could already feature?

I would love to read an extra chapter with your take on this subject.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant