<commit_before>int horBlks = 28;
int verBlks = 10;

int w = horBlks * 20;
int h = verBlks * 20;

void setup() { 
  size(w, h);
  background(1,1,1);
  //noLoop();
}

var brD = {
  "draw": 'brick'
};

var ruD = {
  "draw": 'rug'
};

var grD = {
  "draw": 'grass'
};

var smD = {
  'draw':'swamp'
};

var snD = {
  'draw':'sand'
};

var ptD = {
  'draw':'path'
};

var flD = {
  'draw':'floor'
};

var wtD = {
  'draw':'water'
};

var mapD = [[wtr,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD],
            [wtD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,wtD],
            [wtD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,wtD],
            [wtD,grD,brD,brD,brD,brD,brD,brD,grD,grD,grD,brD,brD,brD,brD,brD,brD,grD,grD,brD,brD,brD,brD,brD,brD,grD,grD,wtD],
            [wtD,grD,brD,flD,flD,flD,flD,brD,grD,grD,grD,brD,ruD,ruD,ruD,ruD,brD,grD,grD,brD,flD,flD,flD,flD,brD,grD,grD,wtD],
            [wtD,grD,brD,flD,flD,flD,flD,brD,grD,grD,grD,brD,ruD,ruD,ruD,ruD,brD,grD,grD,brD,flD,flD,flD,flD,brD,grD,grD,wtD],
            [wtD,grD,brD,flD,flD,flD,flD,brD,grD,grD,grD,brD,ruD,ruD,ruD,ruD,brD,grD,grD,brD,flD,flD,flD,flD,brD,grD,grD,wtD],
            [wtD,grD,brD,flD,flD,flD,flD,brD,grD,grD,grD,brD,ruD,ruD,ruD,ruD,brD,grD,grD,brD,flD,flD,flD,flD,brD,grD,grD,wtD],
            [wtD,grD,brD,brD,flD,brD,brD,brD,grD,grD,grD,brD,brD,brD,ruD,brD,brD,grD,grD,brD,brD,brD,brD,flD,brD,grD,grD,wtD],
            [wtD,grD,grD,grD,ptD,grD,grD,grD,grD,grD,grD,grD,grD,grD,ptD,grD,grD,grD,grD,grD,grD,grD,grD,ptD,grD,grD,grD,wtD],
            [wtD,grD,grD,grD,ptD,grD,grD,grD,grD,grD,grD,grD,grD,grD,ptD,grD,grD,grD,grD,grD,grD,grD,grD,ptD,grD,grD,grD,wtD],
            [wtD,grD,grD,grD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,grD,grD,grD,wtD],
            [wtD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,ptD,ptD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,wtD],
            [wtD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,wtD],
            [wtD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,wtD], 
            [wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD],
            [wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD]];

void draw() {

  draw_bg(wtr['draw'],1,1);
  draw_bg(wtr['draw'],1,2);
  draw_bg(grs['draw'],1,3);
  fill(255,255,255);
  text(wtr['draw'],20,20);
  text(grs.draw,20,40);
  text(map['test'],20,60);
  text(map['test'],20+map['rows'],80);
  /*
  int mapX0 = player.mapX - player.x/20;
  int mapY0 = player.mapY - player.y/20;
  int yi = 1;
  int xi = 1;
  
  
  for(int y = 1; y <= verBlks; y++) {
    yi = y + mapY0;
    if (yi > -1 && yi < map['rows']) {
      for(int x = 1; x <= horBlks; x++) {
        xi = x + mapX0;
        if (xi > -1 && xi < map[yi].length) {<commit_msg>Update drawgame.pde<commit_after>int horBlks = 28;
int verBlks = 10;

int w = horBlks * 20;
int h = verBlks * 20;

void setup() { 
  size(w, h);
  background(1,1,1);
  //noLoop();
}

var brD = {
  "draw": 'brick'
};

var ruD = {
  "draw": 'rug'
};

var grD = {
  "draw": 'grass'
};

var smD = {
  'draw':'swamp'
};

var snD = {
  'draw':'sand'
};

var ptD = {
  'draw':'path'
};

var flD = {
  'draw':'floor'
};

var wtD = {
  'draw':'water'
};

var mapD = [[wtr,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD],
            [wtD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,wtD],
            [wtD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,wtD],
            [wtD,grD,brD,brD,brD,brD,brD,brD,grD,grD,grD,brD,brD,brD,brD,brD,brD,grD,grD,brD,brD,brD,brD,brD,brD,grD,grD,wtD],
            [wtD,grD,brD,flD,flD,flD,flD,brD,grD,grD,grD,brD,ruD,ruD,ruD,ruD,brD,grD,grD,brD,flD,flD,flD,flD,brD,grD,grD,wtD],
            [wtD,grD,brD,flD,flD,flD,flD,brD,grD,grD,grD,brD,ruD,ruD,ruD,ruD,brD,grD,grD,brD,flD,flD,flD,flD,brD,grD,grD,wtD],
            [wtD,grD,brD,flD,flD,flD,flD,brD,grD,grD,grD,brD,ruD,ruD,ruD,ruD,brD,grD,grD,brD,flD,flD,flD,flD,brD,grD,grD,wtD],
            [wtD,grD,brD,flD,flD,flD,flD,brD,grD,grD,grD,brD,ruD,ruD,ruD,ruD,brD,grD,grD,brD,flD,flD,flD,flD,brD,grD,grD,wtD],
            [wtD,grD,brD,brD,flD,brD,brD,brD,grD,grD,grD,brD,brD,brD,ruD,brD,brD,grD,grD,brD,brD,brD,brD,flD,brD,grD,grD,wtD],
            [wtD,grD,grD,grD,ptD,grD,grD,grD,grD,grD,grD,grD,grD,grD,ptD,grD,grD,grD,grD,grD,grD,grD,grD,ptD,grD,grD,grD,wtD],
            [wtD,grD,grD,grD,ptD,grD,grD,grD,grD,grD,grD,grD,grD,grD,ptD,grD,grD,grD,grD,grD,grD,grD,grD,ptD,grD,grD,grD,wtD],
            [wtD,grD,grD,grD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,ptD,grD,grD,grD,wtD],
            [wtD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,ptD,ptD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,grD,wtD],
            [wtD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,wtD],
            [wtD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,snD,wtD], 
            [wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD],
            [wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD,wtD]];

void draw() {

  draw_bg(wtr['draw'],1,1);
  draw_bg(rug['draw'],1,2);
  draw_bg(grs['draw'],1,3);
  draw_bg(smp['draw'],1,4);
  draw_bg(snd['draw'],1,5);
  draw_bg(pth['draw'],1,6);
  draw_bg(flr['draw'],1,7);
  draw_bg(Frd['draw'],1,8);
  fill(255,255,255);
  text(wtr['draw'],20,20);
  text(rug.draw,20,40);

  /*
  int mapX0 = player.mapX - player.x/20;
  int mapY0 = player.mapY - player.y/20;
  int yi = 1;
  int xi = 1;
  
  
  for(int y = 1; y <= verBlks; y++) {
    yi = y + mapY0;
    if (yi > -1 && yi < map['rows']) {
      for(int x = 1; x <= horBlks; x++) {
        xi = x + mapX0;
        if (xi > -1 && xi < map[yi].length) {
{'fraction_non_alphanumeric': 0.2392083528128409, 'fraction_numerical': 0.017765310892940627, 'mean_word_length': 5.54230377166157, 'pattern_counts': {'":': 6, '<': 11, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3996963', 'n_tokens_mistral': 4051, 'n_tokens_neox': 3965, 'n_words': 240}