Thursday, December 30, 2010

Back soon!

I'll be back stay tuned! I just have a lot of work at the moment, next week i'll continue, then jan 19th till feb 6th I get a well deserved holiday!

Then back to it!

Saturday, December 4, 2010

Trees grow!

Going back to generating a sort of flat plane makes things so much easier, I have it flatten the world then grow now, so what your seeing is:

Generate a flat plane with seeds,

If there's air on top of seeds, replace seeds with roots and place a plant on top.
If there's a plant on top make a tree.

Everything is percent. So like a 40% of growing, to get a variety.

The good thing about this is if I don't want to generate hills I can take out 1 line of code, same with growing. So I could have different plants, generate this on their own, if 1 then generate hills for this planet, if 0 then don't.

Simple and easy.

Gamepad input

I found this handy website that maps keys to a controller so that's what i'm going to use for the time being.

Goto it Here.

It's called JoytoKey it works awesomely, you could even play world of warcraft with it, or anything, I'll try and work with only a few buttons to use to keep it simple.