XaiJu
thinmatrix
thinmatrix

patreon


City-Builder Code Download

Hey 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

Hey 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?

Looking forward to the next video!

Mathias Bader


More Creators