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

Inventory #18

Closed
4 tasks done
satoshinm opened this issue Apr 2, 2017 · 0 comments
Closed
4 tasks done

Inventory #18

satoshinm opened this issue Apr 2, 2017 · 0 comments

Comments

@satoshinm
Copy link
Owner

satoshinm commented Apr 2, 2017

Implement a simple inventory item system:

  • Inventory slots of items held by player, finite amounts
  • Harvest blocks when broken: adds item of that block to inventory
  • Take blocks when building: removes item of that block from inventory
  • No infinite items, except when in "creative mode" (vs "survival mode")
@satoshinm satoshinm changed the title Inventory items Inventory Apr 2, 2017
satoshinm added a commit that referenced this issue Jun 4, 2017
)

* Cherry-pick from "HUD expansion": twetzel59/CraftNG@a604e73

* Decrease item rendering size to 32

* Rename _item to item_hotbar to clarify its purpose

* Revert "Rename _item to item_hotbar to clarify its purpose"

This reverts commit 59f7056.

* Cherry-pick item counts from "Inventory with HUD."

twetzel59/CraftNG@3b44099
twetzel59/CraftNG@7e7c624

* Refactor render_item_count tx/ty

* Move the hotbar flush up against the right edge, fix width shifting

#175 (comment)

* Translate Z of item hotbar slightly to fix text overlap

* Increase clipping plane and z translate to not overlap on web

* Fix unnecessary whitespace after item count text

* Zero-initialize fixed size (not variable) buf in render_item_count

* Increase hotbar size to 9 items

* Remove count labels from hotbar items for now
satoshinm added a commit to satoshinm/WebSandboxMC that referenced this issue Jun 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant