Ejemplo n.º 1
0
 public static void draw(String msg, int x, int y, int color, int data, Screen screen) {
   int length = msg.length();
   for (int i = 0; i < length; i++) {
     String c = msg.charAt(i) + "";
     int icon = characters.indexOf(c);
     if (icon >= 0) {
       screen.drawWithWash(Art.FONT[icon % 16][icon / 16], (i * 8) + x, y, color, data, false);
     } else {
       screen.drawWithWash(Art.FONT[0][7], (i * 8) + x, y, color, data, false);
     }
   }
 }
Ejemplo n.º 2
0
 public static void drawToLevel(String msg, int x, int y, int color, int data, Screen screen) {
   int length = msg.length();
   msg = msg.toUpperCase();
   for (int i = 0; i < length; i++) {
     String c = msg.charAt(i) + "";
     int icon = characters.indexOf(c);
     if (icon >= 0)
       screen.drawWithWash(Art.FONT[icon % 16][icon / 16], (i * 8) + x, y, color, data, true);
   }
 }