Differences From Artifact [5bf75f7f55fc5b47]:
- File
test.d
- 2012-07-14 01:58:20 - part of checkin [6819168095b] on branch trunk - Correct parsing of Flooding. (user: kinaba) [annotate]
To Artifact [5ea3ddf4a0f6a860]:
- File
test.d
- 2012-07-14 02:04:49 - part of checkin [7693c375f5] on branch trunk - Air indicator. (user: kinaba) [annotate]
179 179 Map m;
180 180 int score;
181 181
182 182 this(Map m)
183 183 {
184 184 noMessageFilter();
185 185 this.m = m;
186 - this.text = "Dark Integers";
186 + this.text = .text("Score: ", score, " air[",m.water_proof-m.underwater,"]");
187 187 this.keyDown ~= &myKey;
188 188 this.score = 0;
189 189 }
190 190 override void onResize(EventArgs ev) {
191 191 invalidate();
192 192 }
193 193 override void onPaint(PaintEventArgs ev)
................................................................................
262 262 break;
263 263 }
264 264 if(m.cleared) {
265 265 writeln();
266 266 writeln("Score: ", score);
267 267 Application.exit();
268 268 }
269 - this.text = .text("Score: ", score);
269 + this.text = .text("Score: ", score, " air[",m.water_proof-m.underwater,"]");
270 270 invalidate();
271 271 }
272 272 }
273 273
274 274 void main(string[] args)
275 275 {
276 276 Form myForm = new MyForm(new Map(File(args[1])));
277 277 Application.run(myForm);
278 278 }