Leakoo
thinmatrix from patreon
thinmatrix patreon

City-Builder Code Download

🕑 Added 2020-12-31 14:19:06 +0000 UTC

Comments

ThinMatrix

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.

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?

Mathias Bader

Looking forward to the next video!


More Creators