• entries
    732
  • comments
    1562
  • views
    491979

Ravuya.toXML()

Sign in to follow this  
Ravuya

57 views

I've been writing the ShipStats class, which handles most of your RPG-ish stuff and your inventory and cash supply. Obviously this is damned important to save and load!

This is but one of the many pieces I have to implement before I can get weapons to work properly.
Sign in to follow this  


4 Comments


Recommended Comments

I read back to your post about curvy health bars! I implemented something similar and didn't use any geometry.

I created a mask texture that was the shape of the hole (where the curvy bar is) and a graduated texture. I scale the graduated texture according to health (so if it's 50% then I only draw it 50% across) then I stick the mask on top to chop it off where it doesn't overlap.

Share this comment


Link to comment
I don't quite understand your system; could you please draw a picture or something?

I wanted to do something like this:

Share this comment


Link to comment

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