Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pressure.screen;
- import pressure.Main;
- public class Screen {
- public static char[][] screen = new char[58][30];
- public void render() {
- for (int countX = 0; countX < 58; countX++) {
- for (int countY = 0; countY < 30; countY++) {
- Main.font.drawString(countX * 8, countY * 8, "" + screen[countX][countY]);
- }
- }
- }
- public void placeString(int X, int Y, String Out) {
- char[] puts = Out.toCharArray();
- for(int countX = X; countX < X + Out.length(); countX++) {
- screen[countX][Y] = puts[countX - X];
- }
- }
- public void placeChar(int X, int Y, char Out) {
- screen[X][Y] = Out;
- }
- }
Add Comment
Please, Sign In to add comment