// ****************************************************************************
//
// Logic 12: New game
//
// ****************************************************************************

#include "defines.txt"
#define tmp_x v255
#define tmp_y v254
#define varno v253

tmp_y = 1;
next_y:
tmp_x = 11;
next_x:

varno = tmp_y;  varno *= 10;  varno += tmp_x;  varno += 9;
*varno = 0;

tmp_x++;
if (tmp_x < 21) {
  goto(next_x);
}
tmp_y++;
if (tmp_y < 21) {
  goto(next_y);
}
call(10); // redraw playing field


fall_delay = start_fall_delay;  
random(1,7,next_piece);
random(1,6,next_colour);
next_rotation = 0;
call(3);  // next piece
reset(drop_pressed);
display(13,30,"     0 ");
score_1 = 0;
score_2 = 0;
reset(game_over);



return();