Try adding infinite terrain, with the background grass texture on repeat, and trees and stuff added randomly on terrain. Besides figuring out an algorithm for random trees, it shouldn’t be too hard.
Ahahaha This looks awesome!
Still needs some art-work on the trunk though
[/quote]
I did notice after staring at it, that it looks a little awkward :clue:
That’s a goal, but do you have any suggestions on making the unlimited terrain? I really am not sure about that one… The trees seems easy although detecting for overlapping trees might take some thinking. Also just as a follow up any chance that AI code helped you out?
also, @isteinvids do you have any idea on how to get unlimited (background) terrain working? I am trying to find some stuff on the internet but no luck so far.
I did manage to do infinite background texture, it is made with Slick2d, but as long as you can get background texture width and height, it should work c:
Press space to toggle repeated texture, you should understand something if repeated texture is off.
grX and grY are just image width and height, gX and gY are position of grass texture, and you shouldn’t have to use toggleX.
Basically, the texture is in middle, and if it moves exactly it’s own width/height, it moves back to it’s original place. So, if the image is repeated, it gives the illusion of infinite terrain.