Code Monkey home page Code Monkey logo

Comments (2)

archbirdplus avatar archbirdplus commented on June 2, 2024

Stamina has multiple aspects to it. Of course, there is the global "running out of air" state. But each muscle has its own temporary store of oxygen/energy which it can use for some amount of time. That means that each muscle could be tracked independently. There's also a several categories of muscle fibers, which each use an/aerobic respiration and are used at different times.
This adds even more complexity to the game. Anaerobic respiration, for example, probably depletes hunger more quickly due to being less efficient. This means that running and sprinting could have slightly different stamina trackers. It also means that in one Cubyz day, it could make sense to split up work by muscle group. (Aside: sleep quality aiding stamina recovery could encourage players to build temporary shelters at night while exploring to allow for more optimal performance the next day)
On the topic of exercise, even more complexity could be made from simulating muscle growth. Cubyz could even consider the quality of sleep, or the amount of carbohydrates, fats, and amino acids that the player consumes throughout the day, compare that with the types of exercise each muscle had performed...

from cubyz.

IntegratedQuantum avatar IntegratedQuantum commented on June 2, 2024

Let's not overcomplicate things. A single "out of air"-stamina value is a good enough approximation that is easy to communicate to the player.

About sleep: it is an interesting idea to give the player a stat boost for sleeping well (though that is a different topic #258).
About exercise: That would basically be a skilling/levelling system. I'm not yet sure if I want something like that. Skilling often makes players grind more, and I don't know if I want that.
About nutrients: While it would be great to encourage eating different foods, it would put some pressure on biome design, since all nutrients should be accessible in most surface biomes. So I would like to leave it open for now.

from cubyz.

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.