# HG changeset patch # User Matti Hamalainen # Date 1299121024 -7200 # Node ID 8932b1300ba180a3f63b80ea23b547cdab692359 # Parent 3d34258ccc2cfa472e41637eca353a8a87fc4ec5 Adjust about box size, add instructions. diff -r 3d34258ccc2c -r 8932b1300ba1 game/Engine.java --- 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." + ); } }