changeset 81:8932b1300ba1

Adjust about box size, add instructions.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 03 Mar 2011 04:57:04 +0200
parents 3d34258ccc2c
children b8bc5d08b512
files game/Engine.java
diffstat 1 files changed, 29 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/game/Engine.java	Thu Mar 03 04:56:56 2011 +0200
+++ b/game/Engine.java	Thu Mar 03 04:57:04 2011 +0200
@@ -42,7 +42,7 @@
         aboutSecret = false;
         
         setPos(150f, 150f);
-        setSize(600f, 400f);
+        setSize(675f, 420f);
     }
 
     public void setTextFont(Font font, FontMetrics metrics)
@@ -143,7 +143,34 @@
 
             setTextPaint(Color.white);
             drawString(g, "Programming project for Java-course\n" +
-                          "T740306 taught by Kari Laitinen.");
+                          "T740306 taught by Kari Laitinen." +
+                          "\n \n");
+
+            setTextPaint(Color.red);
+            drawString(g, "Controls:\n");
+
+            IDMPoint old = currOffs.copy();
+            
+            setTextPaint(Color.white);
+            drawString(g,
+            "Arrow keys / mouse wheel\n"+
+            "Enter / mouse click\n"+
+            "Space bar\n");
+
+            currPos.x += 330;
+            currOffs.y = old.y;
+            drawString(g,
+            "- Rotate piece\n" +
+            "- Place/lock piece\n" +
+            "- Swap piece\n");
+            
+            currPos.x -= 330;
+            setTextPaint(Color.green);
+            drawString(g,
+            "\nObjective: Create a path long as possible by rotating\n"+
+            "and placing pieces. More points will be awarded for\n"+
+            "advancing the path by several segments per turn."
+            );
         }
     }