So I’m planning on making a tile-based survival game in LWJGL. (Yep I’ve finally been converted to pure LWJGL I guess I’m kicking Slick2D to the curb) Right now the game runs off of maps that are arrays of numbers:
int[][] map = {
{1,1,2,2,2,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
{1,2,2,2,2,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
{1,1,2,2,2,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
{1,1,1,2,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
};
I want to make a custom level editor so I don’t have to do all this number crap. Any technique I can use?
I would need a program that could load images into it and make those arrays. Or should I use a program that is especially made for my game, something that already has all the tiles I need in it? I don’t know. I just need a little counsel on this before I blow into a huge editor and break something.