in coinrun/coinrun.cpp [675:688]
void generate_test_level()
{
maze->spawnpos[0] = 2;
maze->spawnpos[1] = 2;
maze->coins = 0;
for (int y=0; y<maze->h; ++y) {
for (int x=0; x<maze->w; x++) {
char c = test[maze->w*(maze->h-y-1) + x];
if (is_coin(c)) maze->coins += 1;
maze->set_elem(x, y, c);
}
}
remove_traces_add_monsters();
}