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); } } }
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); } }