XaiJu
thinmatrix
thinmatrix

patreon


Latest Code Download

Here is the latest download link for the code for the city-builder game:

https://drive.google.com/file/d/1kcnVxkRAM_NcU5OoUwTCKzX_TrSUBWZz/view?usp=sharing

Here's a quick video showing how to set it up in Eclipse:

https://www.dropbox.com/s/jxl92yn8p776fq0/How%20to%20set%20up%20engine.wmv?dl=0

although to run it you'll now need to run the thinmatrix.cityBuilderGame.main.MainApp class, as opposed to the test class shown in the video.

Thanks as always!

Comments

Thank you for sharing! Your YouTube channel made me excited to finally learn Java (coming from being a Python programmer and some JavaScript for work, and making some games with Godot + Blender)! I downloaded IntelliJ because it feels more noob-friendly, but I had to make a quick fix to get the code to run; thought I'd share in case anyone also runs into this problem. IntelliJ put everything in an out/ folder, which made the command FileUtils.getRootFolder() in thinmatrix.lowPolyEngine.engineMain.master.EngineFiles think that the root folder of the project was "out/production/{project name}". (The error was thrown in a color palette loader file because it could not find the file 'res/palette.png'). So, to fix this, I changed the code EngineFiles.java like so: ``` package thinmatrix.lowPolyEngine.engineMain.master; import java.io.File; import thinmatrix.toolbox.fileUtils.FileUtils; public class EngineFiles { private static final File EDITOR_ROOT_FOLDER = new File(String.valueOf(FileUtils.getRootFolder())); private static final File PROJECT_ROOT_FOLDER = new File(String.valueOf(EDITOR_ROOT_FOLDER.getParentFile().getParentFile().getParentFile())); public static final File RES_FOLDER = new File(PROJECT_ROOT_FOLDER, "res"); public static final File ERROR_FOLDER = new File(PROJECT_ROOT_FOLDER, "ErrorLogsTM"); public static final File GUI_FOLDER = new File(RES_FOLDER, "GUIs"); public static final File FONT_FOLDER = new File(RES_FOLDER, "fonts"); public static final File DEFAULT_FONT_ATLAS = new File(FONT_FOLDER, "default.png"); public static final File DEFAULT_FONT_META = new File(FONT_FOLDER, "default.fnt"); public static final File ICON_FOLDER = new File(RES_FOLDER, "windowIcon"); public static final File LANG_FILE = new File(RES_FOLDER, "languageFile.csv"); } ``` Not a very pretty solution but the game seems to be working now!


More Creators