I have been making a terminal styled... thing, and the only problem I'm still having trouble with (so far) is the loading screen. I simply wanted to add the illusion that it needed to load, nothing too complex. I need to delete the previous output line so it will load like, you know, a loading screen. I have looked through a lot of Q/As here and everything I tried didn't help I always either got random text or the text wasn't where it was supposed to be, or it plain didn't work. I am using Bluej.
Current Code:
public static void main(String [] args){
try{
System.out.println("▒█▀▀▀█ █▀▀█ █▀▀█ █▀▀█ ▀▀█▀▀ █▀▀█ █▀▀▄");
Thread.sleep(1000);
System.out.println("░▀▀▀▄▄ █░░█ █▄▄█ █▄▄▀ ░░█░░ █▄▄█ █░░█");
Thread.sleep(1000);
System.out.println("▒█▄▄▄█ █▀▀▀ ▀░░▀ ▀░▀▀ ░░▀░░ ▀░░▀ ▀░░▀");
Thread.sleep(1000);
System.out.println("o()xxxxxx[{:::::::::::::::::::::::::::::::>");
Thread.sleep(1000);
System.out.println("Loading... 0%");
Thread.sleep(2000);
//Code goes here
System.out.println("Loading... 13%");
Thread.sleep(2000);
//Code goes here
System.out.println("Loading... 42%");
Thread.sleep(2000);
//Code goes here
System.out.println("Loading... 74%");
Thread.sleep(4000);
//Code goes here
System.out.println("Loading... 92%");
Thread.sleep(1000);
//Code goes here
System.out.println("Loading... 100%");
}
catch (InterruptedException e) {
System.err.format("IOException: %s%n", e);
}
}
I would like to post the full output, but the art won't mix with this, so here's what it says, minus the art:
Spartan
Loading... 0%
Loading... 13%
Loading... 42%
Loading... 74%
Loading... 92%
Loading... 100%
It shouldn't show several "Loading..."s
I am open to any suggestions, within reason.