Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int getWidth(String[] level){
- return level[0].length();
- }
- public void printPrint(String level){
- int y = -64;
- int x = 0;
- for(int i = 0; i < level.length(); i++){
- if( i % getWidth() == 0)
- y += 64;
- //x = level.length()*64;
- char c = level.charAt(i);
- GImage fieldImage = createGImage(c);
- add(fieldImage, 64*i, y);
- }
- }
Add Comment
Please, Sign In to add comment