Giter Site home page Giter Site logo

Backpack modifications about jadventure HOT 4 CLOSED

progether avatar progether commented on July 22, 2024
Backpack modifications

from jadventure.

Comments (4)

blackwolf12333 avatar blackwolf12333 commented on July 22, 2024

The way I see it is that you just substract the amount of 'item' used in the command. Usually that will be one. The weight system is a good idea.

A backpack should be just a map of the item and the amount of that item. Or you could create a separate class for that for example ItemStack that would contain basically only one extra property, amount. In that case you would only need a List for a backpack, or any kind of storage system.

from jadventure.

blackwolf12333 avatar blackwolf12333 commented on July 22, 2024

I started working on this, the current version is on the inventory branch in my fork.(how can I add those commits here?)

The only thing that needs to be done for it now is only serialisation of itemstacks so that your inventory can actually be saved. I have no idea how json works so I would just fuck around and mess things up...

from jadventure.

projectdelphai avatar projectdelphai commented on July 22, 2024

You can't add a commit to an issue as far as I can tell. We'll just keep on adding to your branch until it's finished and then you can make a pull request which references this issue.

Looking over your branch and noticed some formatting errors. We're using 4 spaces rather than tabs which is how your files are formatted. In your ide, you should be able to set tabs to 4 spaces.

from jadventure.

blackwolf12333 avatar blackwolf12333 commented on July 22, 2024

I had that set, I guess sublime didn't remember :/

from jadventure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.