Hey!
I have recently started learning
Java and I'll be honest I'm having a pretty difficult time.
That aside I was following a tutorial to create a basic game engine just so i could gain some basic understanding.
Now I followed the tutorial and what i created works in Eclipse for the intended purpose. What it's supposed to do is create a screen and then create a black box that can be moved up, down, left, right via the keys W,A,S,D.
Now when I run it from the command line it creates a screen(JFrame) but the black box doesn't ever show up. I'm just trying to understand why not as it works as intended when run from eclipse, I'm using the same class files in both, I originally did it in notepad then copied and pasted in eclipse just
to give it one last try (as it was not working from the command line). Any help or explanation would be very appreciated.
Edit: I after trying it a bunch Ive found it does work, but not all the time? Now i am even more confused