public TileGrid() {
map = new Tile[20][15];
for(int i = 0; i < map.length; i++) {
for (int j = 0; j < map[i].length; j++) {
map[i][j] = new Tile (i * 64, j * 64, 64, 64, TileType.futurefloor);
}
}
}
public void Draw() {
for (int i = 0; i < map.length; i++) {
for (int j = 0; j < map[i].length; j++) {
Tile t = map[i][j];
DrawQuadTex(t.getTexture(), t.getX(), t.getY(), t.getWidth(), t.getHeight());
}
}
}
I’ve moved from Java software rendering to LWJGL which someone suggested on one of my newb posts, I’m finding it more fun and effective. I’ve got a question here about a tilemap array I’ve managed to draw to the screen.
How would I go about removing tiles, lets say upon a mouse click?
Thanks