Jump to content
  • Advertisement
  • entries
    18
  • comments
    12
  • views
    17428

Redid the speed system for the second (or was it third) time

Sign in to follow this  
mousetail

373 views

So yea, I have a even better system for deciding who gets to move when. The last system was based on giving each object getting a amount of energy dependent on its speed, and then moving the maximum amount of times supported. Now I add a certain amount of energy to each object at the beginning of the loop, and then just keep looping till no object has enough energy to move, and then repeat. This approach is much simpler and faster then the last system, and it seems to work mostly. I also added support for costom actions like containers and other stuff.

The other thing I did was add containers. They work completely differently from how invetories work, so I might redo them sometime in the near future, to make nesting easier. Stacking is not yet working, and it needs stuff like capacity and weight calculations, however, I spent most of my time adding a framework for costom actions, like described above.

It's been such a long time since I have worked on this!

Any comments welcome!
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!