3, 2, 1, start coding now!

It’s been more than 6 months since we started coding. And for a long time, only proof that our code works was textual output. Just recently I’ve added Voxel world and “Egg heads”. Deer were green cylinders, wolves red, and wolf leader dark red. Corn was represented as simple sticks in the ground.

But everything was functioning properly, settlers were moving, corn appeared out of nothing and started growing, even yielding food. Settlers got hungry and started eating. Deer started eating settlers corn field plants. Wolves are following their leader. And they moved around using simple Pythagorean principle via few lines of code. And, the final touch was the endless map, in all directions.

Looks really plain and empty. Well, let me show you what 2 days of (my first ever) playing with noise map and world generation code. It wasn’t easy to grasp the feeling how to tell generator to build a bridge if there is a lake. Or to do a tunnel through the mountain if it’s too high. I can tell you, it was really fun to play with it.

Like this one. I was trying to create 2-3 steps crossover between bridge and road, since they sometimes don’t fit together. First step was to fetch the right curve.

Making selection thinner.

I’ve changed the texture to the water texture, so it’ll be easier to spot. And finally got the right X coordinate. Only Z coordinate left to specify and steps are done.

 

The final result. Few trees to make it nicer looking.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>