Ah, I see. I didn’t realize I had to change the Map.as accordingly to my level.
Just, babysit me once more and see if I forgot something crucial. If not, I’ll try to fix it myself. Hehe.
My TestLevel.oel is:
<level width="1920" height="1080">
<Ground tileset="Ground" exportMode="CSV">-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Ground>
<Start>
<PlayerStart id="0" x="0" y="840" />
</Start>
</level>
And the project file is:
<?xml version="1.0"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<OgmoVersion>2.1.0.6</OgmoVersion>
<Name>New Project</Name>
<BackgroundColor A="255" R="0" G="0" B="0" />
<GridColor A="255" R="54" G="54" B="54" />
<LevelDefaultSize>
<Width>1920</Width>
<Height>1080</Height>
</LevelDefaultSize>
<LevelMinimumSize>
<Width>640</Width>
<Height>480</Height>
</LevelMinimumSize>
<LevelMaximumSize>
<Width>640</Width>
<Height>480</Height>
</LevelMaximumSize>
<Filename>C:\Pugnotic\Flashpunk\Dwarflets\Test.oep</Filename>
<AngleMode>Radians</AngleMode>
<CameraEnabled>false</CameraEnabled>
<CameraSize>
<Width>640</Width>
<Height>480</Height>
</CameraSize>
<ExportCameraPosition>false</ExportCameraPosition>
<LevelValueDefinitions />
<LayerDefinitions>
<LayerDefinition xsi:type="TileLayerDefinition">
<Name>Ground</Name>
<Grid>
<Width>120</Width>
<Height>120</Height>
</Grid>
<ScrollFactor>
<X>1</X>
<Y>1</Y>
</ScrollFactor>
<ExportMode>CSV</ExportMode>
</LayerDefinition>
<LayerDefinition xsi:type="EntityLayerDefinition">
<Name>Start</Name>
<Grid>
<Width>120</Width>
<Height>120</Height>
</Grid>
<ScrollFactor>
<X>1</X>
<Y>1</Y>
</ScrollFactor>
</LayerDefinition>
</LayerDefinitions>
<Tilesets>
<Tileset>
<Name>Ground</Name>
<FilePath>src\assets\Tiles\rock.png</FilePath>
<TileSize>
<Width>120</Width>
<Height>120</Height>
</TileSize>
<TileSep>0</TileSep>
</Tileset>
</Tilesets>
<EntityDefinitions>
<EntityDefinition Name="PlayerStart" Limit="1" ResizableX="false" ResizableY="false" Rotatable="false" RotateIncrement="15">
<Size>
<Width>120</Width>
<Height>120</Height>
</Size>
<Origin>
<X>0</X>
<Y>0</Y>
</Origin>
<ImageDefinition DrawMode="Rectangle" ImagePath="" Tiled="false">
<RectColor A="255" R="255" G="0" B="0" />
</ImageDefinition>
<ValueDefinitions />
<NodesDefinition Enabled="false" Limit="-1" DrawMode="None" Ghost="false" />
</EntityDefinition>
</EntityDefinitions>
</project>