Hello, this is my first Open-Source Game, like I said before :D Here, I am doing a 2D Java Game where I am putting all my skills. First, of all, I recommend you to add this extension to your browser: Markdown Diagrams. Because I have some explanations for you prepared in Subjects' directory. The problem is, since I use mermaid to do diagrams and graphics, if you don't have something that converts mermaid's diagrams codes into diagrams (that can be a text editor, an extension...), you will lose some explanations.
This is why I recommend this extension.
- Just the jdk 8's toolkit
I just want to thank you due to giving me a chance to my project!
I hope you enjoy it :D
The game is already compiled (in the output directory) which means that you can execute.
But, it needs a special way to be run:
-
Copy the assets' folder to out/production/Java2dGame
xcopy /E /I "C:\Users\username\projectpath\Java2dGame\assets" "C:\Users\David\Downloads\Java2dGame\out\production\Java2dGame\assets"
-
After, we will just go into the package's folder and run the project using Java
cd "C:\Users\username\projectpath\Java2dGame\out\production\Java2dGame"
"C:\Program Files\Java\jdk1.8.0_281\bin\java.exe" com.davidalmarinho.main.Main
If you don't know much about how cmd works, I will give you an example. Let's suppose that you have downloaded the project and, now, the project is in Download's folder. So, the commands will be:
xcopy /E /I "C:\Users\David\Downloads\Java2dGame\assets" "C:\Users\David\Downloads\Java2dGame\out\production\Java2dGame\assets"
cd "C:\Users\David\Downloads\Java2dGame\out\production\Java2dGame"
"C:\Program Files\Java\jdk1.8.0_281\bin\java.exe" com.davidalmarinho.main.Main
The game is already compiled (in the output directory) which means that you can execute.
But, it needs a special way to be run:
-
Copy the assets' folder to out/production/Java2dGame
cp ~/projectPath/assets ~/projectPath/out/production/Java2dGame/
-
After, we will just go into the package's folder and run the project using Java
cd ~/projectPath/out/production/Java2dGame java com.davidalmarinho.main.Main
If you don't know much about bash, I will give you an example. Let's suppose that you have downloaded the project and, now, the project is in Download's folder. So, the commands will be:
cp ~/Downloads/Java2dGame/assets ~/Downloads/Java2dGame/out/production/Java2dGame/ cp ~/Downloads/Java2dGame/levels ~/Downloads/Java2dGame/out/production/Java2dGame/ cd ~/Downloads/Java2dGame/out/production/Java2dGame/ java com.davidalmarinho.main.Main