Hello everyone,
I came across the IntermediateSerializer, it looked perfect for my map-loading purposes, and so I used it to serialize some dummy info. Now, I have a test map XML file that looks like this :
<?xml version="1.0" encoding="utf-8"?>
<XnaContent xmlns:TileSystem="PlatformerPrototype.TileSystem" xmlns:PlatformerPrototype="PlatformerPrototype">
<Asset Type="TileSystem:TileMap">
<width>20</width>
<height>15</height>
<tileSetImage>
<Name>Sprites\player</Name>
<Tag Null="true" />
</tileSetImage>
<tileWidth>32</tileWidth>
<tileHeight>32</tileHeight>
<tileLayers>
<Item>0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0</Item>
</tileLayers>
<gameObjects>
<Item Type="PlatformerPrototype:Solid">
<position>0 300</position>
<maskPosition>0 0</maskPosition>
<maskSize>640 180</maskSize>
<depth>0</depth>
<debugTexture>
<Name>Sprites\player</Name>
<Tag Null="true" />
</debugTexture>
</Item>
<Item Type="PlatformerPrototype:Solid">
<position>0 100</position>
<maskPosition>0 0</maskPosition>
<maskSize>300 140</maskSize>
<depth>0</depth>
<debugTexture>
<Name>Sprites\player</Name>
<Tag Null="true" />
</debugTexture>
</Item>
</gameObjects>
</Asset>
</XnaContent>
Ok, so now, where do I go?
For now, I only have one project with everything in it.
Apparently, I’m supposed to create a new “class library” project and add it to the references.
The thing is, I’m new to C# in general and don’t know how to do that.
What should I put in my second project?
What should I put in my main project?
I’m using Visual Studio 2017 if that helps in providing some guidance as to what I have to do?
I’m sorry for the stupid question, but I’m genuinely puzzled.
Thank you in advance,