Need GameDev advices

Hi everyone,

I am nooby in code developing and try to find out the best approach of storing permanent data. I give an example. I have a terrain and I place grass randomly on it according height map. It’s hard to calculate grass coordinates, which look random and i want to store grass coordinates data in file.

How it usually works?I mean what file format I need to use, what java methods I need to use for fast reading and so on. If someone has experience, could you give me a brief advice.

Thanks.

I’d use a txt file. Very easy to use and doesnt take lot of practice to master.

If you want something a bit harder you could make a transparent image with green pixels on it and it

would find the translation depending on where the green dots on the image appeard.

A bit harder but good if you want to add loads of trees and other stuff…

1 Like
Addez said:
If you want something a bit harder you could make a transparent image with green pixels on it and it
would find the translation depending on where the green dots on the image appeard.
A bit harder but good if you want to add loads of trees and other stuff..

Do I understand right, that I can use terrain texture to place grass?

Isnt this what HelloTerain does in beginner tutorial. Green = grass, just get the picture and color it as you want.

My grass is geometry one, not texture of terrain.

aaaa, then use xml. Or generate glass positions randomly with a function.

1 Like