How to change the Contents

Sep 16, 2012 at 9:55 PM

Hey folks,

I got the source here and try to figure out how it works.
So far I think I understand the basics, but what I don't get is how the Engine takes out the Textures out of the blocks.png inside the EngineContent-Project.
I need to know this, because I have an idea for a game which I want to build on the base of the TechCraft and I want to put some new blocks in there.

Hope someone can help...!


Greetings from Germany

Sep 17, 2012 at 12:51 PM
Edited Sep 17, 2012 at 12:54 PM

Look inside ThreadedWorldRenderer.cs  for this line in LoadContent

_textureAtlas = content.Load<Texture2D>("Textures\\blocks_APR28_3");

Replace that with a similar 8x8 atlas, and your new block textures will be used.

Don't forget to put your newer PNG file in the Textures folder, recompile. If you're referring instead to how to create specific new blocks, and not just textures, reply, and i'll explain. I wasn't too sure what your exact question was.