I am using java to make a game. I want to make a method that makes it easy to create a world with just a couple lines. I want to have a method like this...
public void makeLevel(see following*)
{
if (... == 1
{
drawGrass(0, 16);
}
......
}
- I want an easy way to have about 100 - 200 inputs right here.
I want to call it like this
makeLevel(1,2,1,1,2,2,1,3,2,1,2,2,1,2,1,2,3,2,2,2,2,1,2,1,2,2,1,2,1,2,1,2,3,2,1,2,3);
I will also have a method called drawGrass and drawWater that will use Graphics2D to draw these pictures.
I don't think that you need my code but if you do just tell me and I will put it here.
I was thinking that i could somehow use an array or somthing like that.