Created
December 29, 2018 15:18
-
-
Save Valkryst/8b1bab211650cb2ab427aa51db0f176e 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 java.io.IOException; | |
public class Driver { | |
public static void main(final String[] args) throws IOException { | |
final Screen screen = new Screen(20, 5); | |
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