OtagoOpenSource / GamesRepo

This is the repo for the games team.
4 stars 6 forks source link

Updated code to match Software Design Document better #22

Closed grimtastic closed 11 years ago

grimtastic commented 11 years ago

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.

lechszym commented 11 years ago

It looks good to me.

timatooth commented 11 years ago

Yep I like it.

grimtastic commented 11 years ago

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.

lechszym commented 11 years ago

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.

lechszym commented 11 years ago

Is there a reason why this hasn't been merged yet?

grimtastic commented 11 years ago

Oh, I forgot about it. Not used to pull requests yet.