Diff
Not logged in

Differences From Artifact [a1f9b7cabb9073dd]:

To Artifact [a6dfca9cc307c324]:


55 this.font = new Font("MS Gothic", cell-2, GraphicsUnit.PIXEL); 55 this.font = new Font("MS Gothic", cell-2, GraphicsUnit.PIXEL); 56 this.backColor = Color(255,255,255); 56 this.backColor = Color(255,255,255); 57 this.colors['#'] = 57 this.colors['#'] = 58 this.colors['.'] = Color(255,191,127); 58 this.colors['.'] = Color(255,191,127); 59 this.colors['*'] = 59 this.colors['*'] = 60 this.colors['@'] = Color(255,127,127); 60 this.colors['@'] = Color(255,127,127); 61 this.colors['R'] = Color(128,128,0); 61 this.colors['R'] = Color(128,128,0); > 62 this.colors['r'] = Color(100,128,255); 62 this.colors['d'] = Color(255,0,0); 63 this.colors['d'] = Color(255,0,0); 63 this.colors['\\'] = 64 this.colors['\\'] = 64 this.colors['L'] = 65 this.colors['L'] = 65 this.colors['O'] = Color(127,255,127); 66 this.colors['O'] = Color(127,255,127); 66 this.colors['w'] = Color(204,229,255); 67 this.colors['w'] = Color(204,229,255); 67 this.colors['W'] = 68 this.colors['W'] = 68 this.colors['!'] = Color(159,159,159); 69 this.colors['!'] = Color(159,159,159); ................................................................................................................................................................................ 70 foreach(char c; '1'..':') this.colors[c] = Color(255,142,255); 71 foreach(char c; '1'..':') this.colors[c] = Color(255,142,255); 71 this.render['#'] = "■"; 72 this.render['#'] = "■"; 72 this.render['*'] = "✹"; 73 this.render['*'] = "✹"; 73 this.render['@'] = "❁"; 74 this.render['@'] = "❁"; 74 this.render['.'] = "♒"; 75 this.render['.'] = "♒"; 75 this.render['\\'] = "λ"; 76 this.render['\\'] = "λ"; 76 this.render['R'] = "☃"; 77 this.render['R'] = "☃"; > 78 this.render['r'] = "☃"; 77 this.render['d'] = "☠"; 79 this.render['d'] = "☠"; 78 this.render['L'] = "☒"; 80 this.render['L'] = "☒"; 79 this.render['O'] = "☐"; 81 this.render['O'] = "☐"; 80 this.render['W'] = "ꔣ"; 82 this.render['W'] = "ꔣ"; 81 this.render['!'] = "✄"; 83 this.render['!'] = "✄"; 82 foreach(c,tp; g.map.tr_target) this.render[c] = [cast(dchar)('☢' 84 foreach(c,tp; g.map.tr_target) this.render[c] = [cast(dchar)('☢' 83 foreach(char c; '1'..':') this.render[c] = [cast(dchar)('☢' 85 foreach(char c; '1'..':') this.render[c] = [cast(dchar)('☢' ................................................................................................................................................................................ 100 102 101 // Paint map. 103 // Paint map. 102 for(int y=1; y<=g.map.H; ++y) 104 for(int y=1; y<=g.map.H; ++y) 103 for(int x=1; x<=g.map.W; ++x) { 105 for(int x=1; x<=g.map.W; ++x) { 104 Rect r = Rect(cell*(x-1), scrH-cell*y, cell, cell); 106 Rect r = Rect(cell*(x-1), scrH-cell*y, cell, cell); 105 char c = g.map[y,x]; 107 char c = g.map[y,x]; 106 if( c != ' ' ) { 108 if( c != ' ' ) { 107 if( c == 'R' && g.dead ) | 109 if( c == 'R' ) 108 c = 'd'; | 110 c = (g.dead ? 'd' : g.cleared ? 'r' : 'R 109 graphicContext.drawText(this.render[c], font, th 111 graphicContext.drawText(this.render[c], font, th 110 } 112 } 111 } 113 } 112 114 113 // Update textual info. 115 // Update textual info. 114 this.text = .text( 116 this.text = .text( 115 "Score: ", g.score, 117 "Score: ", g.score,