comparison game/Engine.java @ 67:b47f874db6be

Change language to English.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Feb 2011 08:28:12 +0200
parents d406e14b870d
children 52897e3865bf
comparison
equal deleted inserted replaced
66:d406e14b870d 67:b47f874db6be
431 431
432 432
433 g.setFont(font1); 433 g.setFont(font1);
434 g.setPaint(Color.white); 434 g.setPaint(Color.white);
435 435
436 g.drawString("RistiPolku v0.5", x + 10, y + 25); 436 g.drawString("RistiPolku (CrossPaths) v0.5", x + 10, y + 25);
437 if (aboutSecret) 437 if (aboutSecret)
438 { 438 {
439 g.drawImage(aboutImg, x + 15, y + 35, aboutImg.getWidth(), aboutImg.getHeight(), null); 439 g.drawImage(aboutImg, x + 15, y + 35, aboutImg.getWidth(), aboutImg.getHeight(), null);
440 g.drawString("Dedicated to my", x + 225, y + 55); 440 g.drawString("Dedicated to my", x + 225, y + 55);
441 g.drawString("favorite woman", x + 225, y + 85); 441 g.drawString("favorite woman", x + 225, y + 85);
443 g.drawString("- Matti", x + 350, y + 155); 443 g.drawString("- Matti", x + 350, y + 155);
444 } 444 }
445 else 445 else
446 { 446 {
447 g.drawString("(c) Copyright 2011 Matti 'ccr' Hämäläinen", x + 10, y + 55); 447 g.drawString("(c) Copyright 2011 Matti 'ccr' Hämäläinen", x + 10, y + 55);
448 g.drawString("Ohjelmointiprojekti Java-kurssille T740306", x + 10, y + 105); 448
449 g.setPaint(Color.white);
450 g.drawString("Programming project for Java-course", x + 10, y + 105);
451 g.drawString("T740306 taught by Kari Laitinen.", x + 10, y + 135);
449 } 452 }
450 } 453 }
451 454
452 public void paintComponent(Graphics g) 455 public void paintComponent(Graphics g)
453 { 456 {
656 659
657 class BtnNewGame extends IDMButton 660 class BtnNewGame extends IDMButton
658 { 661 {
659 public BtnNewGame(float x, float y) 662 public BtnNewGame(float x, float y)
660 { 663 {
661 super(x, y, KeyEvent.VK_ESCAPE, font1, "Uusi peli"); 664 super(x, y, KeyEvent.VK_ESCAPE, font1, "New Game");
662 } 665 }
663 666
664 public void clicked() 667 public void clicked()
665 { 668 {
666 startNewGame(); 669 startNewGame();
669 672
670 class BtnSwapPiece extends IDMButton 673 class BtnSwapPiece extends IDMButton
671 { 674 {
672 public BtnSwapPiece(float x, float y) 675 public BtnSwapPiece(float x, float y)
673 { 676 {
674 super(x, y, KeyEvent.VK_SPACE, font1, "Vaihda"); 677 super(x, y, KeyEvent.VK_SPACE, font1, "Swap");
675 } 678 }
676 679
677 public void clicked() 680 public void clicked()
678 { 681 {
679 lauta.pieceSwapCurrent(); 682 lauta.pieceSwapCurrent();
682 685
683 class BtnAbout extends IDMButton 686 class BtnAbout extends IDMButton
684 { 687 {
685 public BtnAbout(float x, float y) 688 public BtnAbout(float x, float y)
686 { 689 {
687 super(x, y, KeyEvent.VK_A, font1, "Tietoja"); 690 super(x, y, KeyEvent.VK_A, font1, "About");
688 } 691 }
689 692
690 public void clicked() 693 public void clicked()
691 { 694 {
692 aboutEnabled = true; 695 aboutEnabled = true;