Last active
December 29, 2018 15:17
-
-
Save Valkryst/d01732c89cc394f7c44a6d159c8460ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.valkryst.VTerminal.Screen; | |
import com.valkryst.VTerminal.font.Font; | |
import com.valkryst.VTerminal.font.FontLoader; | |
import java.awt.*; | |
import java.io.IOException; | |
public class Driver { | |
public static void main(final String[] args) throws IOException { | |
final Font font = FontLoader.loadFontFromJar("Fonts/DejaVu Sans Mono/18pt/", 1); | |
final Screen screen = new Screen(new Dimension(20, 5), font); | |
screen.addCanvasToFrame(); | |
for (int y = 0 ; y < screen.getHeight() ; y++) { | |
for (int x = 0 ; x < screen.getWidth() ; x++) { | |
screen.getTileAt(x, y).setCharacter('X'); | |
} | |
} | |
screen.draw(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment