I'm programming my first 2D game in java. I'm writing the code in Atom. I compile and run the code from the terminal on my Mac. The game works great so far! But I fear I am structuring my project incorrectly and will not be able to deploy it when it comes time. I want to know the proper way to build a directory structure for a project like a 2D java-based game, ideally, doing it from scratch.
I put the game making on hold to figure out structuring. I tried using LibGDX as a means of packaging my project, and then importing it as a Gradle project into Eclipse. I suddenly found myself with a huge and unclear directory structure surrounding my once-simple project. I felt the task was no simpler than structuring the project myself from scratch. In addition, I could not get any simple java code to run from within this auto-generated directory structure provided by LibGDX, now inside Eclipse. I would prefer to write all code in Atom, and compile and test the code from the terminal, creating appropriate JARs when necessary, again from the terminal.
I decided to simplify the task at hand and return to the Oracle docs, and I determined that what I'm trying to build is a self-contained java application. Sweet! But the Oracle docs don't seem to go too into depth on the logic behind the necessary directory structure needed for such a project. They tell you the two main components you need are the resources for your application (so the .java files, images and audio, etc.) and a copy of the JRE so that the user has everything they need to play the game when they execute the program. I just don't feel confident with how to set up this directory structure with the information provided.
I would like to overcome this "how should this all be structured?" problem so I can return to developing the game. Thanks in advance for reading and providing feedback.