// ****************************************************************************
//
// Logic 10: Redraw playing area
//
// ****************************************************************************

#include "defines.txt"

#define tmp_x v251
#define tmp_y v252
#define varno v253
#define real_tmp_x v254
#define real_tmp_y v255

tmp_y = 20;
next_tmp_y:
tmp_x = 11;
next_tmp_x:

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

v248 = 0;  // view & loop number
v249 = *varno;  // cel number
v250 = 4;  // priority & margin
real_tmp_x = tmp_x; real_tmp_x *= 5;
real_tmp_y = tmp_y; real_tmp_y *= 8;
add.to.pic.v(v248,v248,v249,real_tmp_x,real_tmp_y,v250,v250);
tmp_x++;
if (tmp_x < 21) { goto(next_tmp_x); }
tmp_y--;
if (tmp_y > 0) { goto(next_tmp_y); }

return();