egordorichev / LastTry

:deciduous_tree: LastTry is open-source game written in Java, using LibGDX library and inspired by Terraria :deciduous_tree:
MIT License
119 stars 17 forks source link

Entities can now step up walls (Variable for height allowed) #23

Closed Col-E closed 7 years ago

Col-E commented 7 years ago

Entity.stepHeight allows entities to step up blocks as high as the value goes.

By default it is 1, so players can now climb up 1-block tall hills.

egordorichev commented 7 years ago

Thanks! Do they stop, when they step on a block? World gen looks cool! But my texture is broken.

Col-E commented 7 years ago

What do you mean by stop?

Here's a 10 second video of the step in action. It can only climb up 1-block high walls. If it hits a 2-block high wall it will stop if thats what you're asking.

egordorichev commented 7 years ago

Ok, awesome!

Col-E commented 7 years ago

Here's a 2-block high wall for example.

egordorichev commented 7 years ago

How do you generate terrain? Is it 1d-perlin noise?

Col-E commented 7 years ago

The terrain I showed is just a cosine. Simplex (An improved perlin noise) noise would be better later down the road.