public void render(Graphics g, Component c){
//g.setColor(Color.red);
//g.fillRect(x-Frame.sx,y-Frame.sy,16,16);
if (TileId==1){
tileset1groundlefttop.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==2){
//g.fillRect(x-Frame.sx,y-Frame.sy,16,16);
tileset1groundtop.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==3){
tileset1groundrighttop.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==4){
tileset1groundleft.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==5){
tileset1ground.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==6){
tileset1groundright.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==7){
tileset1groundbotleft.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==8){
tileset1groundbot.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==9){
tileset1groundbotright.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==10){
tileset1grounddrytop.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==11){
tileset1groundsides.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==12){
tileset1trunkslim.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==13){
tileset1groundlintersectleft.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==14){
tileset1groundlintersect.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==15){
tileset1groundlintersectright.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==16){
tileset1groundrintersectleft.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==17){
tileset1groundrintersect.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==18){
tileset1groundrintersectright.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==19){
tileset1spike1.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==20){
tileset1spike2.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==21){
tileset1groundsteepslopel.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==23){
tileset1brick.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==24){
tileset1door1.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
if (TileId==25){
tileset1door2.paintIcon(c,g,x-Frame.sx,y-Frame.sy);
}
}