City-Builder Code Download
Added 2020-12-31 14:19:06 +0000 UTCHey everyone,
I hope you're all safe, healthy, and having a good time over the holiday period. I just wanted to wish you all a great start to the new year, and I wanted to thank you for all the support you've given me, especially during this crazy year!
Here's the latest code download for the city-builder game:
https://drive.google.com/file/d/1gxD580gUOKv0WYljq-EiSykkQTF4WYR-/view?usp=sharing
This includes the new things that were shown in the latest devlog video, such as the basics of the save system (found in thinmatrix.lowPolyEngine.resourceManagement.saveSystem), improvements to the UI system, as well as some new work on the main menu (found in thinmatrix.cityBuilderGame.gui.gameMenu).
Here's a quick video showing how to set up the code 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.
Hope you all have a great start to 2021!
Karl
Comments
I do actually use getResourceAsStream() to load the shaders (it's just wrapped up in the MyFile class.) The shaders are inside the jar file when I export the game so I have to load them like that. But I'm probably planning on keeping the other resources (models, textures, entity files, etc.) outside the jar file, to make it easier for modding, and so I can simply load them using Java.io.File.
ThinMatrix
2021-01-25 08:32:09 +0000 UTCHey TM, I am glad you are feeling better. Just curious why you don't load shaders and stuff using something like ClassName.class.getClassLoader().getResourceAsStream() to load resources like shaders?
2021-01-21 19:09:06 +0000 UTCLooking forward to the next video!
Mathias Bader
2021-01-02 19:04:05 +0000 UTC