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

Extendable Item class #63

Open
saricden opened this issue Mar 4, 2019 · 1 comment
Open

Extendable Item class #63

saricden opened this issue Mar 4, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@saricden
Copy link
Owner

saricden commented Mar 4, 2019

Create an Item class that extends Image (or Sprite, if animated), and adds some extra metadata during it's instantiation. So it can have a physics body if instantiated in a Level class, but can also be used in UI (possibly drag n drop bag) w/o physics.

Metadata we're going to track per Item class:

  • Sprite key and animation key (if applicable)
  • Add to physics to just add (physics body || UI mode)
  • Money value in whatever our mid-apocalyptic currency will be
  • Meta info like name, description, etc.
  • isMaterial boolean

If isMaterial: true:

  • Engineering attribute & value (will design system for engineering in future issue)
@saricden saricden added the enhancement New feature or request label Mar 4, 2019
@saricden saricden added this to Todo in No Place Like - Africa MVP via automation Mar 4, 2019
@saricden
Copy link
Owner Author

saricden commented Mar 6, 2019

Item class should have mode boolean: uiMode (which is to say, physics is disabled, and Item is placed wherever the UI calls for).

saricden added a commit that referenced this issue Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant