home *** CD-ROM | disk | FTP | other *** search
- call("vaisseau");
- if(Number(aa) == 0)
- {
- found = 0;
- aa = 1;
- col = random(11);
- tentatives = 0;
- while(Number(found) < 1 and Number(tentatives) < 12)
- {
- tentatives = Number(tentatives) + 1;
- row = 4;
- while(Number(found) == 0)
- {
- if(eval("f" add (row * 11 + col)) == 1)
- {
- found = 1;
- ax = eval("x" add (row * 11 + col));
- ay = eval("y" add (row * 11 + col));
- setProperty("/alienfire", _X, ax);
- }
- else
- {
- row -= 1;
- if(Number(row) == Number(-1))
- {
- found = -1;
- }
- }
- }
- if(Number(found) < 1)
- {
- found = 0;
- col = Number(col) + 1;
- if(Number(col) == 11)
- {
- col = 0;
- }
- }
- }
- }
- else
- {
- ay = Number(ay) + 3;
- setProperty("/alienfire", _Y, ay);
- if(336 < Number(ay))
- {
- setProperty("/alienfire", _Y, 400);
- aa = 0;
- }
- if(325 < Number(ay) and Number(ay) < 331 and Number((ax - dx) * (ax - dx)) < 101)
- {
- gameover = 1;
- }
- tx = ax;
- ty = ay;
- }
-