public void drawradar(Graphics g) {
    for (int i = 0; i < midlet.instancemanager.numinstances; i++) {
      if (midlet.instancemanager.instances[i].type == INSTANCE_ENEMY) {

        redspike.paintfull(
            g,
            60 + (midlet.instancemanager.instances[i].x / 8),
            3 + (midlet.instancemanager.instances[i].y / 8));
      }
    }
  }
  public void paint(Graphics g) {

    mar.paintfill(g);
    fondomar.paintfull(g, 0, 108);
    fondomar.paintfull(g, 65, 108);

    //  	nube.paintfull(g,barco_x/2,0);

    radar.paintfull(g, 45, 0);
    //  	redspike.paintfull(g,20+(barco_x/4),5);

    //     barco.paint(g,barco_x,barco_y,0);
    //  barco.paintfull(g,barco_x,barco_y);
    //	g.setColor(255,255,255);

    //    g.drawString ("intro",
    //         barco_x, barco_y, Graphics.TOP|Graphics.LEFT);

    //   submarino.paintfull(g,submarino.x,submarino.y);
    //   torpedo.paintfull(g,torpedo.x,torpedo.y);
    // barco2.draw(g);

    midlet.instancemanager.draw(g);
    //	midlet.actormanager.draw(g);
    //	midlet.bulletmanager.draw(g);
    g.setClip(0, 0, 100, 100);
    // g.drawString("Ready: " + cargaslistas,0,0, Graphics.TOP|Graphics.LEFT);
    g.drawString("" + (maxcargas - cargaslanzadas), 95, 0, Graphics.TOP | Graphics.LEFT);
    g.drawString("T:" + (gametime / 1000), 0, 10, Graphics.TOP | Graphics.LEFT);
    int i;
    int cx = 0;
    for (i = 0; i < cargaslistas; i++) {
      indicarga.paintfull(g, cx, 0);
      cx += 5;
    }
    drawradar(g);
  }