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

Player inventory (initial version) #408

Merged
merged 4 commits into from
Jun 24, 2024
Merged

Commits on Jun 24, 2024

  1. Gather the server's accumulated changes into a struct

    While the server is making changes to the world, it keeps a record of
    these changes for one frame, which is later transmitted to exiting
    clients in a Spawns struct. Rather than storing these changes ad-hoc in
    several fields and local variables, this change combines them all into a
    single struct to enhance readability and hopefully avoid mistakes.
    patowen committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    a57a271 View commit details
    Browse the repository at this point in the history
  2. Give the player an inventory

    Breaking blocks adds them to the inventory, and placing blocks removes
    them from the inventory, failing if no such item can be found.
    patowen committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    f253867 View commit details
    Browse the repository at this point in the history
  3. Hide gameplay features behind a flag

    Gameplay features, such as an inventory and the need to collect
    resources, can unnecessarily restrict creative freedom, so while
    gameplay features are being developed, it would be good to keep them
    behind a flag to avoid interrupting people who just want to build.
    patowen committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    03994b7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dd4ed44 View commit details
    Browse the repository at this point in the history