-
-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Type object pattern #555 #848
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
Conversation
After reading the game article that inspired this addition, I would want to see how this pattern contribution is useful. May we see an effective extension of the breed-monster idea as candy. How would we deliver the promise of the pattern; for example, overlay a rootbeer gummy into the base candy set to dynamically grow the candy set (monster) game? |
I am not sure what you mean by how, so do let me know if this doesn't answer your question, but I think it's a change you could probably make in the json file, assuming that we only want some kind of change in the property of the candy and not some behavioural change, i.e. maybe having this overlay would make it have more points or something like that. What I understood from the pattern was that it makes that kind of thing easier, but there will be some trade-off when it comes to behaioural change, which can't be put in the json file. It is a pretty simple pattern, I was just attracted to the idea of being able to implement so many different "types" of object using a single class and just a json file. |
Good job @AnaghaSasikumar 👍 |
* typeobject pattern * fixing errors * fix error cellpool * Update README.md * Update README.md
Type object pattern implementation