Closed grimtastic closed 11 years ago
It looks good to me.
Yep I like it.
Not too sure why, but I think something I changed requires the sun to have a lot more mass now, although I may just have confused myself wither the old code, I.e. maybe it was that way in the old code too.
It's probably ok to push the changes to the main repo now. As long as things are staying in orbit I wouldn't worry about the mass of the sun for now.
Is there a reason why this hasn't been merged yet?
Oh, I forgot about it. Not used to pull requests yet.
GameObject objects are now Entity objects. Entity objects are now Nodes.
Entity objects are now attached to parent Node objects. Parent Node objects are responsible for applying gravity to their children and calling their update methods.
Removed the Player class and the HUD code. Additional work will be needed to add a player into the world (namely preventing it from falling through the surface of the planet). Was trying to simplify and clean up code, so I removed the HUD code as I don't think it was great code and not sure if people were using it.
Left Sun in as a distinct object so that the flare and colour will be set automatically.