Browse Source

Made animation quicker

Kenneth van Ewijk 11 years ago
parent
commit
51bd0ac686
1 changed files with 7 additions and 0 deletions
  1. 7 0
      GUIboard.java

+ 7 - 0
GUIboard.java

@@ -133,6 +133,9 @@ public class GUIboard {
         double centerMargins = 20-regel1CharArray.length;
         double centerMargins = 20-regel1CharArray.length;
         int centerLeft = (int) Math.floor(centerMargins/2.0);
         int centerLeft = (int) Math.floor(centerMargins/2.0);
         
         
+        double centerMargins2 = 20-regel2CharArray.length;
+        int centerLeft2 = (int) Math.floor(centerMargins2/2.0);
+        
         
         
         for(int i=0; i<centerLeft; i++)
         for(int i=0; i<centerLeft; i++)
         {
         {
@@ -145,6 +148,10 @@ public class GUIboard {
         
         
         IO.writeShort(0x40, '\n');
         IO.writeShort(0x40, '\n');
         
         
+        for(int i=0; i<centerLeft2; i++)
+        {
+            IO.writeShort(0x40, ' ');
+        }
         for(char ch : regel2CharArray)
         for(char ch : regel2CharArray)
         {
         {
             IO.writeShort(0x40, ch);
             IO.writeShort(0x40, ch);