MapManager Fixes(still not working)

This commit is contained in:
Mootfrost777 2023-08-17 00:43:13 +03:00
parent 368d08cb41
commit eeae43ebe0
13 changed files with 673 additions and 56 deletions

View file

@ -26,7 +26,6 @@
/processorParam:TextureFormat=Color /processorParam:TextureFormat=Color
/build:animation1.png /build:animation1.png
#begin ButtonFont.spritefont #begin ButtonFont.spritefont
/importer:FontDescriptionImporter /importer:FontDescriptionImporter
/processor:FontDescriptionProcessor /processor:FontDescriptionProcessor
@ -55,6 +54,17 @@
/processorParam:TextureFormat=Compressed /processorParam:TextureFormat=Compressed
/build:Font2.spritefont /build:Font2.spritefont
#begin menuFon.jpg
/importer:TextureImporter
/processor:TextureProcessor
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=True
/processorParam:GenerateMipmaps=False
/processorParam:PremultiplyAlpha=True
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:menuFon.jpg
#begin MonstersAnimations.png #begin MonstersAnimations.png
/importer:TextureImporter /importer:TextureImporter
@ -68,18 +78,6 @@
/processorParam:TextureFormat=Color /processorParam:TextureFormat=Color
/build:MonstersAnimations.png /build:MonstersAnimations.png
#begin menuFon.jpg
/importer:TextureImporter
/processor:TextureProcessor
/processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=True
/processorParam:GenerateMipmaps=False
/processorParam:PremultiplyAlpha=True
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:menuFon.jpg
#begin PC_Computer_Dangerous_Dave_In_The_Haunted_Mansion_Death_Sequences.png #begin PC_Computer_Dangerous_Dave_In_The_Haunted_Mansion_Death_Sequences.png
/importer:TextureImporter /importer:TextureImporter
/processor:TextureProcessor /processor:TextureProcessor
@ -92,10 +90,17 @@
/processorParam:TextureFormat=Color /processorParam:TextureFormat=Color
/build:PC_Computer_Dangerous_Dave_In_The_Haunted_Mansion_Death_Sequences.png /build:PC_Computer_Dangerous_Dave_In_The_Haunted_Mansion_Death_Sequences.png
#begin sus.tmx #begin tiles.png
/importer:TiledMapImporter /importer:TextureImporter
/processor:TiledMapProcessor /processor:TextureProcessor
/build:sus.tmx /processorParam:ColorKeyColor=255,0,255,255
/processorParam:ColorKeyEnabled=True
/processorParam:GenerateMipmaps=False
/processorParam:PremultiplyAlpha=True
/processorParam:ResizeToPowerOfTwo=False
/processorParam:MakeSquare=False
/processorParam:TextureFormat=Color
/build:tiles.png
#begin wall.jpg #begin wall.jpg
/importer:TextureImporter /importer:TextureImporter

View file

@ -0,0 +1,611 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="left-up" width="30" height="20" tilewidth="16" tileheight="16" infinite="1" nextlayerid="5" nextobjectid="3">
<tileset firstgid="1" source="tiles/map.tsx"/>
<layer id="1" name="Collision" class="collidable" width="30" height="20" visible="0" offsetx="-352.033" offsety="192.098">
<data encoding="csv">
<chunk x="0" y="-16" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,75,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,52,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0
</chunk>
<chunk x="16" y="-16" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,0,52,52,52,52,52,52,52,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="32" y="-16" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0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,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,74,75,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,13,75,0,0,0,0
</chunk>
<chunk x="16" y="0" width="16" height="16">
52,0,0,0,52,0,0,0,52,52,52,52,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,0,0,52,0,0,52,52,52,52,52,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,0,52,0,52,52,52,52,52,52,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="32" y="0" width="16" height="16">
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="48" y="0" width="16" height="16">
52,52,52,52,52,52,52,52,52,0,0,0,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,52,52,52,52,52,0,0,0,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,52,52,52,52,52,0,0,0,52,52,52,52,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="64" y="0" width="16" height="16">
52,52,52,75,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,75,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,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0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="32" y="16" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,
76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="48" y="16" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,
76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,76,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="64" y="16" width="16" height="16">
0,0,0,75,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,75,0,0,0,0,0,0,0,0,0,0,0,0,
52,52,52,52,0,0,0,0,0,0,0,0,0,0,0,0,
76,76,76,76,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
</data>
</layer>
<layer id="4" name="Background 2" class="non_collidable" width="30" height="20">
<data encoding="csv">
<chunk x="0" y="0" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,149,152,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,150,153,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,151,154,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,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="32" y="16" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,150,153,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,151,154,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,149,152,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,150,153,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,151,154,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,149,152,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,150,153,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,151,154,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
</data>
</layer>
<layer id="3" name="Backgrond" class="non_collidable" width="30" height="20" offsetx="-256.033" offsety="256.098">
<data encoding="csv">
<chunk x="0" y="-16" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,144,144,144,144,144,144,144,144,247,144,
0,0,0,0,0,0,157,157,167,157,157,157,157,157,260,157,
0,0,0,0,0,0,157,157,180,157,254,255,157,157,260,157,
0,0,0,0,0,0,157,157,193,157,267,268,157,157,260,157,
0,0,0,0,0,0,204,204,204,204,280,281,204,272,260,272,
0,0,0,0,0,0,147,199,148,0,0,0,0,0,260,0,
0,0,0,0,0,0,147,199,148,144,144,144,144,144,260,144,
0,0,0,0,0,0,147,199,148,157,157,157,157,157,260,157,
0,0,0,0,0,0,147,199,148,157,157,157,157,157,260,157,
0,0,0,0,0,0,147,199,148,157,157,157,157,157,260,157,
0,0,0,0,0,0,147,199,148,204,272,157,157,157,260,157,
0,0,0,0,0,0,147,199,148,0,0,157,157,157,260,157,
0,0,0,0,0,0,147,199,148,144,144,157,157,157,260,157,
0,0,0,0,0,0,147,199,148,157,157,157,157,157,260,157,
0,0,0,0,0,0,147,199,148,157,157,157,157,157,260,157
</chunk>
<chunk x="16" y="-16" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
157,157,157,178,179,157,157,157,157,157,157,157,157,157,157,157,
157,157,157,191,192,157,157,252,253,157,157,157,157,157,157,258,
157,157,157,157,157,157,157,265,266,157,157,157,157,157,157,271,
204,204,204,204,204,204,204,278,279,204,204,204,204,204,204,284,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,157,
157,157,157,157,157,157,258,157,157,157,252,253,157,157,157,157,
157,157,157,157,157,157,271,157,157,157,265,266,157,157,157,157,
157,157,272,204,204,204,284,204,204,204,278,279,204,204,204,204,
157,157,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
157,157,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
157,157,157,157,157,157,157,157,157,157,157,167,157,157,209,210,
157,157,157,157,254,255,157,157,157,157,157,180,157,157,222,223
</chunk>
<chunk x="32" y="-16" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
157,157,157,157,243,157,157,157,157,157,157,157,157,157,157,157,
157,157,157,157,256,257,157,157,157,157,157,157,157,157,157,157,
157,157,157,157,269,270,157,157,157,157,157,261,262,263,264,157,
204,204,204,204,282,283,204,204,204,204,204,274,275,276,277,204,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
157,157,157,157,209,210,211,212,157,157,157,167,157,157,157,157,
157,254,255,157,222,223,224,225,157,157,157,180,157,157,157,157,
157,267,268,157,235,236,237,238,157,157,157,193,157,157,157,157,
204,280,281,204,204,204,204,204,204,204,204,204,204,204,204,204,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
211,212,157,157,157,157,157,157,157,157,157,157,157,157,157,157,
224,225,157,157,252,253,157,157,157,157,157,258,157,157,157,157
</chunk>
<chunk x="48" y="-16" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
144,144,144,144,144,144,144,144,621,622,144,144,144,0,0,0,
157,157,157,157,157,157,157,157,634,635,157,157,157,0,0,0,
157,157,157,157,157,157,272,157,647,648,157,272,157,0,0,0,
157,157,157,157,157,157,145,147,199,200,148,145,157,0,0,0,
204,204,204,204,204,204,204,160,199,200,161,204,204,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
144,144,144,144,144,144,144,144,144,144,144,144,144,0,0,0,
178,179,157,157,157,157,157,243,157,157,157,157,157,0,0,0,
191,192,157,157,157,157,157,256,257,157,252,253,157,0,0,0,
157,157,157,157,157,157,157,269,270,157,265,266,157,0,0,0,
204,204,204,204,204,204,204,282,283,204,278,279,204,0,0,0,
0,0,0,147,199,148,0,0,0,0,0,0,0,0,0,0,
144,144,144,147,199,148,144,144,144,144,144,144,144,0,0,0,
157,157,157,147,199,148,157,243,157,157,157,157,157,0,0,0,
254,255,157,147,199,148,157,256,257,157,252,253,157,0,0,0
</chunk>
<chunk x="-16" y="0" width="16" height="16">
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,19,20,21,22,0,0,0,0,0,0,0,0,0,
0,30,31,32,33,34,35,0,0,0,0,0,0,0,0,0,
0,43,44,45,46,47,48,0,0,0,0,0,0,0,0,0,
64,65,18,58,59,60,18,0,0,0,0,0,0,0,0,0,
77,78,18,71,72,73,18,0,0,68,56,56,55,56,56,69,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="0" y="0" width="16" height="16">
0,0,0,0,0,0,147,199,148,157,157,157,157,157,260,157,
0,0,0,0,0,0,160,200,161,204,204,272,157,157,260,157,
0,0,0,0,0,0,0,0,0,0,0,0,157,157,260,157,
0,0,0,0,0,0,144,144,144,144,144,144,157,157,260,157,
0,0,0,0,0,0,157,167,157,157,157,157,157,157,260,157,
0,0,0,0,0,0,157,180,157,252,253,157,157,157,260,157,
0,0,0,0,0,0,157,193,157,265,266,157,157,157,260,157,
0,0,0,0,0,0,204,204,204,278,279,204,272,157,260,157,
0,0,0,0,0,0,0,0,0,0,0,0,0,157,260,157,
0,0,0,0,0,0,144,144,144,144,144,144,144,157,260,157,
0,0,0,0,0,0,157,157,157,157,157,157,157,219,220,221,
0,0,0,12,0,0,157,157,157,254,255,157,157,232,233,234,
0,0,0,0,26,63,157,157,157,267,268,218,213,214,215,216,
0,0,0,38,39,63,204,204,204,280,281,231,226,227,228,229,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="16" y="0" width="16" height="16">
157,157,157,157,267,268,157,157,157,157,157,193,157,157,235,236,
157,272,204,204,280,281,204,204,204,204,204,204,204,204,204,204,
157,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
157,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
157,157,157,178,179,157,157,157,157,157,157,157,157,157,157,157,
157,157,157,191,192,157,157,157,157,157,157,157,157,157,157,157,
157,157,157,157,157,157,157,157,157,157,261,262,263,264,157,157,
272,204,204,204,204,204,204,204,204,204,274,275,276,277,204,204,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
157,157,157,157,157,157,157,157,243,157,157,209,210,211,212,157,
157,252,253,157,157,258,157,157,256,257,157,222,223,224,225,157,
218,265,266,157,157,271,157,157,269,270,157,235,236,237,238,157,
231,278,279,204,204,284,204,204,282,283,204,204,204,204,204,204,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="32" y="0" width="16" height="16">
237,238,157,157,265,266,157,157,157,157,157,271,157,157,157,157,
204,204,204,204,278,279,204,204,204,204,204,284,204,204,204,204,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
157,157,157,157,157,157,157,157,157,243,157,157,209,210,211,212,
157,157,254,255,157,157,157,157,157,256,257,157,222,223,224,225,
157,157,267,268,157,157,157,157,157,269,270,157,235,236,237,238,
204,204,280,281,204,204,204,204,204,282,283,204,204,204,204,204,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,
157,157,178,179,157,157,157,157,157,157,157,157,157,157,157,157,
157,157,191,192,157,157,157,157,258,157,157,157,157,157,157,157,
157,157,157,157,157,157,157,157,271,157,157,157,157,157,157,157,
204,204,204,204,204,204,204,204,284,204,204,204,204,204,204,204,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="48" y="0" width="16" height="16">
267,268,157,147,199,148,157,269,270,157,265,266,157,0,0,0,
280,281,204,160,200,161,204,282,283,204,278,279,204,0,0,0,
0,0,0,147,199,148,0,0,0,0,0,0,0,0,0,0,
144,144,144,147,199,148,144,144,144,144,144,144,144,0,0,0,
157,157,157,147,199,148,157,157,157,157,157,157,157,0,0,0,
157,157,157,147,199,148,157,157,157,157,252,253,157,0,0,0,
157,157,157,147,199,148,157,157,157,157,265,266,157,0,0,0,
204,204,204,160,200,161,204,204,204,204,278,279,204,0,0,0,
0,0,0,147,199,148,0,0,0,0,0,0,0,0,0,0,
144,144,144,147,199,148,144,144,144,144,144,144,144,0,0,0,
157,157,159,160,199,161,162,157,157,157,157,157,157,0,0,0,
157,171,172,173,199,174,175,176,157,157,252,253,157,0,0,0,
183,184,185,186,199,187,188,189,190,157,265,266,157,0,0,0,
196,197,198,199,199,200,201,202,203,204,278,279,204,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
</data>
</layer>
<objectgroup id="2" name="Слой объектов 1" offsetx="53.25" offsety="-12"/>
</map>

View file

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.2" orientation="orthogonal" renderorder="left-up" width="1000" height="1000" tilewidth="16" tileheight="16" infinite="1" nextlayerid="2" nextobjectid="1">
<tileset firstgid="1" source="map.tsx"/>
<layer id="1" name="Слой тайлов 1" width="1000" height="1000">
<data encoding="base64" compression="zlib">
<chunk x="0" y="-16" width="16" height="16">
eJxjYBgFo2AUDFVgxkgZBgB40ANx
</chunk>
<chunk x="0" y="0" width="16" height="16">
eJzzY2RgMKMAj4JRMAqGLgAAvZMDiQ==
</chunk>
</data>
</layer>
</map>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 653 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View file

@ -19,9 +19,6 @@
<EmbeddedResource Include="Icon.bmp" /> <EmbeddedResource Include="Icon.bmp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="MonoGame.Extended" Version="3.9.0-alpha0094" />
<PackageReference Include="MonoGame.Extended.Content.Pipeline" Version="3.9.0-alpha0094" />
<PackageReference Include="MonoGame.Extended.Tiled" Version="3.9.0-alpha0094" />
<PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.1.303" /> <PackageReference Include="MonoGame.Framework.DesktopGL" Version="3.8.1.303" />
<PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.1.303" /> <PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.1.303" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" /> <PackageReference Include="Newtonsoft.Json" Version="13.0.3" />

View file

@ -3,15 +3,13 @@ using Microsoft.Xna.Framework;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;
using DangerousD.GameCore.Graphics; using DangerousD.GameCore.Graphics;
using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Graphics;
using MonoGame.Extended.Sprites;
namespace DangerousD.GameCore.GameObjects; namespace DangerousD.GameCore.GameObjects;
public abstract class MapObject : GameObject public abstract class MapObject : GameObject
{ {
public bool IsColliderOn; public bool IsColliderOn;
private Rectangle _sourceRectangle; private Rectangle _sourceRectangle;
protected override GraphicsComponent GraphicsComponent { get; } = new("map"); protected override GraphicsComponent GraphicsComponent { get; } = new("tiles");
public MapObject(Vector2 position, Rectangle sourceRectangle) : base(position) public MapObject(Vector2 position, Rectangle sourceRectangle) : base(position)
{ {
_sourceRectangle = sourceRectangle; _sourceRectangle = sourceRectangle;

View file

@ -9,6 +9,4 @@ public class Platform : MapObject
{ {
IsColliderOn = true; IsColliderOn = true;
} }
protected override GraphicsComponent GraphicsComponent { get; }
} }

View file

@ -9,6 +9,4 @@ public class StopTile : MapObject
{ {
IsColliderOn = true; IsColliderOn = true;
} }
protected override GraphicsComponent GraphicsComponent { get; }
} }

View file

@ -9,6 +9,4 @@ public class Tile : MapObject
{ {
IsColliderOn = false; IsColliderOn = false;
} }
protected override GraphicsComponent GraphicsComponent { get; }
} }

View file

@ -24,18 +24,18 @@ namespace DangerousD.GameCore
IDrawableObject LoginGUI; IDrawableObject LoginGUI;
IDrawableObject LobbyGUI; IDrawableObject LobbyGUI;
public GameManager GameManager { get; private set; } = new GameManager(); public GameManager GameManager { get; private set; } = new();
public AnimationBuilder AnimationBuilder { get; private set; } = new AnimationBuilder(); public AnimationBuilder AnimationBuilder { get; private set; } = new AnimationBuilder();
public NetworkManager NetworkManager { get; private set; } = new NetworkManager(); public NetworkManager NetworkManager { get; private set; } = new NetworkManager();
public AppManager() public AppManager()
{ {
Content.RootDirectory = "Content";
Instance = this; Instance = this;
_graphics = new GraphicsDeviceManager(this); _graphics = new GraphicsDeviceManager(this);
Content.RootDirectory = "Content";
IsMouseVisible = true; IsMouseVisible = true;
resolution = new Point(_graphics.PreferredBackBufferWidth, _graphics.PreferredBackBufferHeight);
TargetElapsedTime = TimeSpan.FromMilliseconds(1000 / 30); TargetElapsedTime = TimeSpan.FromMilliseconds(1000 / 30);
resolution = new Point(_graphics.PreferredBackBufferWidth, _graphics.PreferredBackBufferHeight);
gameState = GameState.Menu; gameState = GameState.Menu;
MenuGUI = new MenuGUI(); MenuGUI = new MenuGUI();
LoginGUI = new LoginGUI(); LoginGUI = new LoginGUI();
@ -44,6 +44,7 @@ namespace DangerousD.GameCore
protected override void Initialize() protected override void Initialize()
{ {
GameManager.Initialize();
AnimationBuilder.LoadAnimations(); AnimationBuilder.LoadAnimations();
MenuGUI.Initialize(); MenuGUI.Initialize();
LoginGUI.Initialize(); LoginGUI.Initialize();
@ -134,7 +135,7 @@ namespace DangerousD.GameCore
case GameState.Lobby: case GameState.Lobby:
break; break;
case GameState.Game: case GameState.Game:
GameManager.mapManager.LoadLevel(""); GameManager.mapManager.LoadLevel("Level1");
break; break;
default: default:
throw new ArgumentOutOfRangeException(); throw new ArgumentOutOfRangeException();

View file

@ -7,6 +7,7 @@ using Microsoft.Xna.Framework.Graphics;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using DangerousD.GameCore.GameObjects.LivingEntities.Monsters;
namespace DangerousD.GameCore namespace DangerousD.GameCore
{ {
@ -30,6 +31,15 @@ namespace DangerousD.GameCore
physicsManager = new PhysicsManager(); physicsManager = new PhysicsManager();
} }
public void Initialize()
{
//mapManager.LoadLevel("Level1");
}
public void LoadContent()
{
}
internal void Register(GameObject gameObject) internal void Register(GameObject gameObject)
{ {
if (gameObject is LivingEntity) if (gameObject is LivingEntity)

View file

@ -8,11 +8,15 @@ namespace DangerousD.GameCore.Managers
{ {
public class MapManager public class MapManager
{ {
private int _columns;
//Level //Level
public void LoadLevel(string level) public void LoadLevel(string level)
{ {
LoadTilesData();
XmlDocument xml = new(); XmlDocument xml = new();
xml.Load($"{level}.tmx"); xml.Load($"../../../Content/{level}.tmx");
Vector2 tileSize = new(int.Parse(xml.DocumentElement.Attributes["tilewidth"].Value), Vector2 tileSize = new(int.Parse(xml.DocumentElement.Attributes["tilewidth"].Value),
int.Parse(xml.DocumentElement.Attributes["tileheight"].Value)); int.Parse(xml.DocumentElement.Attributes["tileheight"].Value));
@ -28,19 +32,21 @@ namespace DangerousD.GameCore.Managers
{ {
string tileType = layer.Attributes["class"].Value; string tileType = layer.Attributes["class"].Value;
foreach (XmlNode chunk in layer.ChildNodes) foreach (XmlNode chunk in layer.SelectNodes("//chunk"))
{ {
Vector2 chunkSize = new(int.Parse(chunk.Attributes["width"].Value), int chunkW = int.Parse(chunk.Attributes["width"].Value);
int.Parse(chunk.Attributes["height"].Value)); int chunkX = int.Parse(chunk.Attributes["x"].Value);
Vector2 chunkPos = new(int.Parse(chunk.Attributes["x"].Value), int.Parse(chunk.Attributes["y"].Value)); int chunkY = int.Parse(chunk.Attributes["y"].Value);
List<int> tiles = chunk.Value.Split(',').Select(int.Parse).ToList(); List<int> tiles = chunk.InnerText.Split(',').Select(int.Parse).ToList();
for (int i = 0; i < tiles.Count; i++) for (int i = 0; i < tiles.Count; i++)
{ {
Vector2 pos = new((chunkPos.Y + i % chunkSize.X) * tileSize.Y, if (tiles[i] == 0) continue;
(chunkPos.Y + i / chunkSize.X) * tileSize.Y);
Rectangle sourceRect = new(pos.ToPoint(), tileSize.ToPoint()); Vector2 pos = new((chunkX + i % chunkW) * tileSize.X,
(chunkY + i / chunkW) * tileSize.Y);
Rectangle sourceRect = new(new Point(tiles[i] % _columns, tiles[i] / _columns), tileSize.ToPoint());
switch (tileType) switch (tileType)
{ {
@ -56,5 +62,14 @@ namespace DangerousD.GameCore.Managers
}} }}
} }
} }
private void LoadTilesData()
{
XmlDocument xml = new();
xml.Load($"../../../Content/map.tsx");
XmlNode root = xml.DocumentElement;
_columns = int.Parse(root.Attributes["columns"].Value);
}
} }
} }