fixed some lags
This commit is contained in:
commit
8bf77eab60
59 changed files with 1902 additions and 258 deletions
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
#-------------------------------- References --------------------------------#
|
#-------------------------------- References --------------------------------#
|
||||||
|
|
||||||
|
/reference:references/MonoGame.Extended.Content.Pipeline.dll
|
||||||
|
|
||||||
#---------------------------------- Content ---------------------------------#
|
#---------------------------------- Content ---------------------------------#
|
||||||
|
|
||||||
|
@ -71,6 +72,19 @@
|
||||||
/processorParam:TextureFormat=Color
|
/processorParam:TextureFormat=Color
|
||||||
/build:menuFon.jpg
|
/build:menuFon.jpg
|
||||||
|
|
||||||
|
#begin 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 MenuFon2.jpg
|
#begin MenuFon2.jpg
|
||||||
/importer:TextureImporter
|
/importer:TextureImporter
|
||||||
/processor:TextureProcessor
|
/processor:TextureProcessor
|
||||||
|
@ -117,7 +131,7 @@
|
||||||
/processorParam:ResizeToPowerOfTwo=False
|
/processorParam:ResizeToPowerOfTwo=False
|
||||||
/processorParam:MakeSquare=False
|
/processorParam:MakeSquare=False
|
||||||
/processorParam:TextureFormat=Color
|
/processorParam:TextureFormat=Color
|
||||||
/build:PC_Computer_Dangerous_Dave_In_The_Haunted_Mansion_Death_Sequences.png
|
/build:tiles.png
|
||||||
|
|
||||||
#begin playerAnimation.png
|
#begin playerAnimation.png
|
||||||
/importer:TextureImporter
|
/importer:TextureImporter
|
||||||
|
|
1
DangerousD/Content/animations/SilasBallMove
Normal file
1
DangerousD/Content/animations/SilasBallMove
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SilasBallMove","textureName":"MonstersAnimations","startSpriteRectangle":{"X":147,"Y":618,"Width":24,"Height":24},"frameSecond":[{"Item1":0,"Item2":8}],"textureFrameInterval":1,"framesCount":2,"isCycle":true,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeJumpLeftBottom
Normal file
1
DangerousD/Content/animations/SlimeJumpLeftBottom
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeJumpLeftBottom","textureName":"MonstersAnimations","startSpriteRectangle":{"X":176,"Y":157,"Width":24,"Height":16},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":1,"isCycle":true,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeJumpLeftTop
Normal file
1
DangerousD/Content/animations/SlimeJumpLeftTop
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeJumpLeftTop","textureName":"MonstersAnimations","startSpriteRectangle":{"X":151,"Y":157,"Width":24,"Height":16},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":1,"isCycle":true,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeJumpRightBottom
Normal file
1
DangerousD/Content/animations/SlimeJumpRightBottom
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeJumpRightBottom","textureName":"MonstersAnimations","startSpriteRectangle":{"X":176,"Y":174,"Width":24,"Height":16},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":1,"isCycle":true,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeJumpRightTop
Normal file
1
DangerousD/Content/animations/SlimeJumpRightTop
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeJumpRightTop","textureName":"MonstersAnimations","startSpriteRectangle":{"X":151,"Y":174,"Width":24,"Height":16},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":1,"isCycle":true,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeMoveLeftBottom
Normal file
1
DangerousD/Content/animations/SlimeMoveLeftBottom
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeMoveLeftBottom","textureName":"MonstersAnimations","startSpriteRectangle":{"X":1,"Y":182,"Width":24,"Height":8},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":2,"isCycle":true,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeMoveLeftTop
Normal file
1
DangerousD/Content/animations/SlimeMoveLeftTop
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeMoveLeftTop","textureName":"MonstersAnimations","startSpriteRectangle":{"X":51,"Y":182,"Width":24,"Height":8},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":2,"isCycle":true,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeMoveRightBottom
Normal file
1
DangerousD/Content/animations/SlimeMoveRightBottom
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeMoveRightBottom","textureName":"MonstersAnimations","startSpriteRectangle":{"X":1,"Y":165,"Width":24,"Height":8},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":2,"isCycle":true,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeMoveRightTop
Normal file
1
DangerousD/Content/animations/SlimeMoveRightTop
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeMoveRightTop","textureName":"MonstersAnimations","startSpriteRectangle":{"X":51,"Y":165,"Width":24,"Height":8},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":2,"isCycle":true,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeReadyJumpLeftBottom
Normal file
1
DangerousD/Content/animations/SlimeReadyJumpLeftBottom
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeReadyJumpLeftBottom","textureName":"MonstersAnimations","startSpriteRectangle":{"X":101,"Y":157,"Width":24,"Height":16},"frameSecond":[{"Item1":0,"Item2":30}],"textureFrameInterval":1,"framesCount":1,"isCycle":false,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeReadyJumpLeftTop
Normal file
1
DangerousD/Content/animations/SlimeReadyJumpLeftTop
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeReadyJumpLeftTop","textureName":"MonstersAnimations","startSpriteRectangle":{"X":126,"Y":157,"Width":24,"Height":16},"frameSecond":[{"Item1":0,"Item2":30}],"textureFrameInterval":1,"framesCount":1,"isCycle":false,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeReadyJumpRightBottom
Normal file
1
DangerousD/Content/animations/SlimeReadyJumpRightBottom
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeReadyJumpRightBottom","textureName":"MonstersAnimations","startSpriteRectangle":{"X":101,"Y":174,"Width":24,"Height":16},"frameSecond":[{"Item1":0,"Item2":30}],"textureFrameInterval":1,"framesCount":1,"isCycle":false,"offset":"0, 0"}
|
1
DangerousD/Content/animations/SlimeReadyJumpRightTop
Normal file
1
DangerousD/Content/animations/SlimeReadyJumpRightTop
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{"id":"SlimeReadyJumpRightTop","textureName":"MonstersAnimations","startSpriteRectangle":{"X":126,"Y":174,"Width":24,"Height":16},"frameSecond":[{"Item1":0,"Item2":30}],"textureFrameInterval":1,"framesCount":1,"isCycle":false,"offset":"0, 0"}
|
|
@ -1 +1 @@
|
||||||
{"id":"WolfMoveLeft","textureName":"MonstersAnimations","startSpriteRectangle":{"X":1,"Y":292,"Width":32,"Height":32},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":4,"isCycle":true,"offset":"0, 0"}
|
{"id":"WolfMoveLeft","textureName":"MonstersAnimations","startSpriteRectangle":{"X":1,"Y":291,"Width":32,"Height":32},"frameSecond":[{"Item1":0,"Item2":10}],"textureFrameInterval":1,"framesCount":4,"isCycle":true,"offset":"0, 0"}
|
||||||
|
|
759
DangerousD/Content/lvl.tmx
Normal file
759
DangerousD/Content/lvl.tmx
Normal file
|
@ -0,0 +1,759 @@
|
||||||
|
<?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="11" nextobjectid="49">
|
||||||
|
<tileset firstgid="1" source="map.tsx"/>
|
||||||
|
<layer id="1" name="Collision" class="StopTile" width="30" height="20" locked="1" 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,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,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,
|
||||||
|
0,0,0,0,0,0,0,0,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,
|
||||||
|
0,0,0,0,0,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,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,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,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,
|
||||||
|
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,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,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,
|
||||||
|
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
|
||||||
|
</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,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,40,41,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,53,54,0
|
||||||
|
</chunk>
|
||||||
|
<chunk x="0" y="0" width="16" height="16">
|
||||||
|
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,
|
||||||
|
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,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,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,
|
||||||
|
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,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,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,
|
||||||
|
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,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,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
|
||||||
|
</chunk>
|
||||||
|
<chunk x="-16" y="16" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,46,0,0,66,67,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,66,67,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,66,67,0,
|
||||||
|
0,0,0,0,0,0,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="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,51,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="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,
|
||||||
|
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="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="Tile" width="30" height="20" visible="0" locked="1">
|
||||||
|
<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,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,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,0,0,0,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,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,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
|
||||||
|
</chunk>
|
||||||
|
<chunk x="32" 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,79,80,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,92,93,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,105,106,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,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
|
||||||
|
</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,
|
||||||
|
0,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,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,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="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,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,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
|
||||||
|
</chunk>
|
||||||
|
<chunk x="16" y="16" width="16" height="16">
|
||||||
|
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,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,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,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="6" name="Ladders" class="Platform" width="30" height="20" locked="1">
|
||||||
|
<data encoding="csv">
|
||||||
|
<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,147,199,148,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,147,199,148,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,147,199,148,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,147,199,148,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,147,199,148,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">
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,147,199,148,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,147,199,148,0,0,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="16" width="16" height="16">
|
||||||
|
0,0,0,0,0,0,147,199,148,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,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,147,199,148,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,147,199,148,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,147,199,148,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,147,199,148,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,147,199,148,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,160,199,161,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
183,184,185,186,199,187,188,189,190,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
0,0,0,0,0,0,0,0,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="Tile" width="30" height="20" visible="0" locked="1" offsetx="-256.033" offsety="256.098">
|
||||||
|
<data encoding="csv">
|
||||||
|
<chunk x="-16" y="-16" width="16" height="16">
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,2,3,4,
|
||||||
|
29,29,29,29,5,6,29,29,29,29,29,29,14,15,16,17,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,27,28,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,2,3,4,29,29,29,23,24,29,29,29,29,29,
|
||||||
|
29,29,14,15,16,17,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,27,28,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,5,6,
|
||||||
|
29,29,29,23,24,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29
|
||||||
|
</chunk>
|
||||||
|
<chunk x="0" y="-16" width="16" height="16">
|
||||||
|
29,29,29,29,29,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
|
29,29,29,29,29,0,144,144,144,144,144,144,144,144,247,144,
|
||||||
|
29,29,29,29,0,0,157,157,167,157,157,157,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,157,157,180,157,254,255,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,157,157,193,157,267,268,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,204,204,204,204,280,281,204,272,260,272,
|
||||||
|
29,29,29,29,0,0,147,199,148,0,0,0,0,0,260,0,
|
||||||
|
29,29,29,29,0,0,147,199,148,144,144,144,144,144,260,144,
|
||||||
|
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,147,199,148,204,272,157,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,147,199,148,0,0,157,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,147,199,148,144,144,157,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
||||||
|
29,29,29,29,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,696,697,157,271,
|
||||||
|
204,204,204,204,204,204,204,278,279,204,204,204,709,710,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,696,697,157,
|
||||||
|
157,157,272,204,204,204,284,204,204,204,278,279,204,709,710,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,217,261,262,263,264,217,
|
||||||
|
204,204,204,204,282,283,204,204,204,204,230,274,275,276,277,230,
|
||||||
|
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,248,249,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,248,249,157,157,157,272,157,647,648,157,272,157,0,0,0,
|
||||||
|
157,250,251,157,157,157,145,147,199,200,148,145,157,0,0,0,
|
||||||
|
204,239,240,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">
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,2,3,4,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,14,15,16,17,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,27,28,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,5,6,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,5,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,
|
||||||
|
29,29,29,19,20,21,22,0,0,29,29,29,29,29,29,29,
|
||||||
|
29,30,31,32,33,34,35,0,0,29,29,29,29,29,29,29,
|
||||||
|
29,43,44,45,46,47,48,0,0,29,29,29,29,29,29,29,
|
||||||
|
64,65,18,58,59,60,18,0,0,29,29,29,29,29,29,29,
|
||||||
|
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">
|
||||||
|
29,29,29,29,0,0,147,199,148,157,157,157,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,160,200,161,204,204,272,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,0,0,0,0,0,0,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,144,144,144,144,144,144,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,157,167,157,157,157,157,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,157,180,157,252,253,157,157,157,260,157,
|
||||||
|
29,29,29,29,0,0,157,193,157,265,266,157,157,157,260,157,
|
||||||
|
6,29,29,29,0,0,204,204,204,278,279,204,272,157,260,157,
|
||||||
|
29,29,29,29,0,0,0,0,0,0,0,0,0,157,260,157,
|
||||||
|
29,29,29,29,0,0,144,144,144,144,144,144,144,157,260,157,
|
||||||
|
29,29,29,29,0,0,157,157,157,157,157,157,157,219,220,221,
|
||||||
|
29,29,29,12,0,0,157,157,157,254,255,157,157,232,233,234,
|
||||||
|
29,29,29,29,26,63,157,157,157,267,268,218,213,214,215,216,
|
||||||
|
29,29,29,38,39,63,204,204,204,280,281,231,226,227,228,229,
|
||||||
|
29,29,29,0,0,0,0,0,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,696,697,157,157,193,157,157,235,236,
|
||||||
|
157,272,204,204,280,281,204,709,710,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,248,249,157,157,157,157,157,157,157,157,
|
||||||
|
157,157,157,157,157,157,250,251,157,217,261,262,263,264,217,157,
|
||||||
|
272,204,204,204,204,204,239,240,204,230,274,275,276,277,230,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,250,251,157,157,271,157,157,157,157,
|
||||||
|
204,204,204,204,278,279,204,239,240,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,248,249,157,157,256,257,157,222,223,224,225,
|
||||||
|
157,157,267,268,157,250,251,157,157,269,270,157,235,236,237,238,
|
||||||
|
204,204,280,281,204,239,240,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,248,249,157,157,
|
||||||
|
157,157,157,157,157,696,697,157,271,157,157,157,250,251,157,157,
|
||||||
|
204,204,204,204,204,709,710,204,284,204,204,204,239,240,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,218,0,0,0,
|
||||||
|
280,281,204,160,200,161,204,282,283,204,278,279,231,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,217,157,157,265,266,157,0,0,0,
|
||||||
|
204,204,204,160,200,161,204,230,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,200,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="8" name="Zombies" class="LivingEntities.Monsters.Zombie" locked="1">
|
||||||
|
<object id="26" x="265" y="469.5">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="27" x="55" y="472.5">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="28" x="488.5" y="472">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="29" x="409.5" y="469.5">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="30" x="665" y="376">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="31" x="521.5" y="373">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="32" x="262" y="372.5">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="33" x="473" y="277.5">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="34" x="152" y="275">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="35" x="485.5" y="181.5">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="36" x="70" y="181">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="37" x="20" y="87">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="38" x="99.5" y="84.5">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="39" x="279" y="83.5">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="40" x="392.5" y="82.5">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
<object id="41" x="582" y="83">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
</objectgroup>
|
||||||
|
<objectgroup id="10" name="Player" class="LivingEntities.Player">
|
||||||
|
<object id="47" x="-260" y="461.333">
|
||||||
|
<point/>
|
||||||
|
</object>
|
||||||
|
</objectgroup>
|
||||||
|
</map>
|
4
DangerousD/Content/map.tsx
Normal file
4
DangerousD/Content/map.tsx
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<tileset version="1.10" tiledversion="1.10.2" name="map" tilewidth="16" tileheight="16" tilecount="871" columns="13">
|
||||||
|
<image source="tiles.BMP" width="208" height="1072"/>
|
||||||
|
</tileset>
|
BIN
DangerousD/Content/tiles.png
Normal file
BIN
DangerousD/Content/tiles.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
16
DangerousD/Desktop/DangerousD map/map_0.mgcontent
Normal file
16
DangerousD/Desktop/DangerousD map/map_0.mgcontent
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<PipelineBuildEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<SourceFile>C:/Users/Semejkin_AV/Desktop/DangerousD map/map.tsx</SourceFile>
|
||||||
|
<SourceTime>2023-08-16T13:04:13.796245+03:00</SourceTime>
|
||||||
|
<DestFile>C:/Users/Semejkin_AV/Documents/Github_repos/DangerousD/DangerousD/Content/bin/DesktopGL/Content/../../../../../Desktop/DangerousD map/map_0.xnb</DestFile>
|
||||||
|
<DestTime>2023-08-16T15:38:41.8125207+03:00</DestTime>
|
||||||
|
<Importer>TiledMapTilesetImporter</Importer>
|
||||||
|
<ImporterTime>2023-07-14T20:14:40+03:00</ImporterTime>
|
||||||
|
<Processor>TiledMapTilesetProcessor</Processor>
|
||||||
|
<ProcessorTime>2023-07-14T20:14:40+03:00</ProcessorTime>
|
||||||
|
<Dependencies />
|
||||||
|
<BuildAsset>
|
||||||
|
<string>C:/Users/Semejkin_AV/Documents/Github_repos/DangerousD/DangerousD/Content/bin/DesktopGL/Content/../../../../../Desktop/DangerousD map/tiles_0.xnb</string>
|
||||||
|
</BuildAsset>
|
||||||
|
<BuildOutput />
|
||||||
|
</PipelineBuildEvent>
|
22
DangerousD/Desktop/DangerousD map/tiles_0.mgcontent
Normal file
22
DangerousD/Desktop/DangerousD map/tiles_0.mgcontent
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<PipelineBuildEvent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<SourceFile>C:/Users/Semejkin_AV/Desktop/DangerousD map/tiles.BMP</SourceFile>
|
||||||
|
<SourceTime>2023-08-16T12:47:16.3453923+03:00</SourceTime>
|
||||||
|
<DestFile>C:/Users/Semejkin_AV/Documents/Github_repos/DangerousD/DangerousD/Content/bin/DesktopGL/Content/../../../../../Desktop/DangerousD map/tiles_0.xnb</DestFile>
|
||||||
|
<DestTime>2023-08-16T15:38:41.7865192+03:00</DestTime>
|
||||||
|
<Importer>TextureImporter</Importer>
|
||||||
|
<ImporterTime>2022-07-26T14:44:56+03:00</ImporterTime>
|
||||||
|
<Processor>TextureProcessor</Processor>
|
||||||
|
<ProcessorTime>2022-07-26T14:44:56+03:00</ProcessorTime>
|
||||||
|
<Parameters>
|
||||||
|
<Key>ColorKeyColor</Key>
|
||||||
|
<Value>0,0,0,0</Value>
|
||||||
|
</Parameters>
|
||||||
|
<Parameters>
|
||||||
|
<Key>ColorKeyEnabled</Key>
|
||||||
|
<Value>True</Value>
|
||||||
|
</Parameters>
|
||||||
|
<Dependencies />
|
||||||
|
<BuildAsset />
|
||||||
|
<BuildOutput />
|
||||||
|
</PipelineBuildEvent>
|
BIN
DangerousD/GameCore/.DS_Store
vendored
Normal file
BIN
DangerousD/GameCore/.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -17,9 +17,9 @@ public abstract class AbstractGui : IDrawableObject
|
||||||
|
|
||||||
protected abstract void CreateUI();
|
protected abstract void CreateUI();
|
||||||
private GraphicsDevice graphicsDevice;
|
private GraphicsDevice graphicsDevice;
|
||||||
public virtual void Initialize(GraphicsDevice graphicsDevice)
|
public virtual void Initialize()
|
||||||
{
|
{
|
||||||
Manager.Initialize(graphicsDevice);
|
Manager.Initialize(AppManager.Instance.GraphicsDevice);
|
||||||
this.graphicsDevice = graphicsDevice;
|
this.graphicsDevice = graphicsDevice;
|
||||||
CreateUI();
|
CreateUI();
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ namespace DangerousD.GameCore.GUI
|
||||||
fontName = "font2"
|
fontName = "font2"
|
||||||
};
|
};
|
||||||
hostButton.LeftButtonPressed += () => {
|
hostButton.LeftButtonPressed += () => {
|
||||||
|
AppManager.Instance.ChangeGameState(GameState.Game);
|
||||||
AppManager.Instance.NetworkManager.HostInit(AppManager.Instance.IpAddress);
|
AppManager.Instance.NetworkManager.HostInit(AppManager.Instance.IpAddress);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -106,6 +106,7 @@ namespace DangerousD.GameCore.GUI
|
||||||
fontName = "font2"
|
fontName = "font2"
|
||||||
};
|
};
|
||||||
joinSelectedButton.LeftButtonPressed += () => {
|
joinSelectedButton.LeftButtonPressed += () => {
|
||||||
|
AppManager.Instance.ChangeGameState(GameState.Game);
|
||||||
AppManager.Instance.NetworkManager.ClientInit(AppManager.Instance.IpAddress);
|
AppManager.Instance.NetworkManager.ClientInit(AppManager.Instance.IpAddress);
|
||||||
};
|
};
|
||||||
Button joinByIpButton = new ButtonText(Manager)
|
Button joinByIpButton = new ButtonText(Manager)
|
||||||
|
|
36
DangerousD/GameCore/GameObjects/Entities/SilasBall.cs
Normal file
36
DangerousD/GameCore/GameObjects/Entities/SilasBall.cs
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
using DangerousD.GameCore.Graphics;
|
||||||
|
using Microsoft.Xna.Framework;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace DangerousD.GameCore.GameObjects.Entities
|
||||||
|
{
|
||||||
|
public class SilasBall : LivingEntity
|
||||||
|
{
|
||||||
|
public SilasBall(Vector2 position) : base(position)
|
||||||
|
{
|
||||||
|
Height = 60;
|
||||||
|
Width = 60;
|
||||||
|
acceleration = Vector2.Zero;
|
||||||
|
|
||||||
|
}
|
||||||
|
public SilasBall(Vector2 position, Vector2 velosity) : base(position)
|
||||||
|
{
|
||||||
|
Height = 60;
|
||||||
|
Width = 60;
|
||||||
|
acceleration = Vector2.Zero;
|
||||||
|
velocity = velosity;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "SilasBallMove" }, "SilasBallMove");
|
||||||
|
public override void Update(GameTime gameTime)
|
||||||
|
{
|
||||||
|
base.Update(gameTime);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -7,12 +7,9 @@ using Microsoft.Xna.Framework.Graphics;
|
||||||
namespace DangerousD.GameCore.GameObjects
|
namespace DangerousD.GameCore.GameObjects
|
||||||
{
|
{
|
||||||
public abstract class Entity : GameObject
|
public abstract class Entity : GameObject
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
public Entity(Vector2 position) : base(position) {}
|
public Entity(Vector2 position) : base(position) {}
|
||||||
|
public virtual void SetPosition(Vector2 position) { _pos = position; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,10 +22,12 @@ namespace DangerousD.GameCore
|
||||||
protected abstract GraphicsComponent GraphicsComponent { get; }
|
protected abstract GraphicsComponent GraphicsComponent { get; }
|
||||||
public GameObject(Vector2 pos)
|
public GameObject(Vector2 pos)
|
||||||
{
|
{
|
||||||
|
Initialize();
|
||||||
_pos = pos;
|
_pos = pos;
|
||||||
Width = 500;
|
Width = 500;
|
||||||
Height = 101;
|
Height = 101;
|
||||||
//Animator = new GraphicsComponent(new() { "playerIdle" });
|
//Animator = new GraphicsComponent(new() { "playerIdle" });
|
||||||
|
|
||||||
LoadContent();
|
LoadContent();
|
||||||
AppManager.Instance.GameManager.Register(this);
|
AppManager.Instance.GameManager.Register(this);
|
||||||
}
|
}
|
||||||
|
@ -34,7 +36,7 @@ namespace DangerousD.GameCore
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public virtual void Initialize(GraphicsDevice graphicsDevice)
|
public virtual void Initialize()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -53,7 +55,8 @@ namespace DangerousD.GameCore
|
||||||
{
|
{
|
||||||
GraphicsComponent.DrawAnimation(Rectangle, spriteBatch);
|
GraphicsComponent.DrawAnimation(Rectangle, spriteBatch);
|
||||||
//debug
|
//debug
|
||||||
// spriteBatch.Draw(debugTexture, Rectangle, Color.White);
|
//wdaspriteBatch.Draw(debugTexture,new Rectangle(Rectangle.X-GraphicsComponent.CameraPosition.X,Rectangle.Y-GraphicsComponent.CameraPosition.Y,Rectangle.Width,Rectangle.Height), Color.White);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -6,7 +6,7 @@ namespace DangerousD.GameCore.GUI
|
||||||
{
|
{
|
||||||
interface IDrawableObject
|
interface IDrawableObject
|
||||||
{
|
{
|
||||||
void Initialize(GraphicsDevice graphicsDevice);
|
void Initialize();
|
||||||
void LoadContent();
|
void LoadContent();
|
||||||
void Update(GameTime gameTime);
|
void Update(GameTime gameTime);
|
||||||
void Draw(SpriteBatch spriteBatch);
|
void Draw(SpriteBatch spriteBatch);
|
||||||
|
|
|
@ -13,9 +13,13 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
||||||
public abstract class CoreEnemy : LivingEntity
|
public abstract class CoreEnemy : LivingEntity
|
||||||
{
|
{
|
||||||
protected int monster_health;
|
protected int monster_health;
|
||||||
protected int monster_speed;
|
protected float monster_speed = 2;
|
||||||
protected string name;
|
protected string name;
|
||||||
protected bool isAlive = true;
|
protected bool isAlive = true;
|
||||||
|
protected bool isAttack = false;
|
||||||
|
protected bool isGoRight;
|
||||||
|
protected int leftBoarder = 0;
|
||||||
|
protected int rightBoarder = 700;
|
||||||
|
|
||||||
public CoreEnemy(Vector2 position) : base(position)
|
public CoreEnemy(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
|
@ -29,6 +33,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
||||||
public abstract void Death();
|
public abstract void Death();
|
||||||
|
|
||||||
public abstract void Attack();
|
public abstract void Attack();
|
||||||
|
public abstract void Attack(GameTime gameTime);
|
||||||
|
|
||||||
public abstract void Move(GameTime gameTime);
|
public abstract void Move(GameTime gameTime);
|
||||||
|
|
||||||
|
@ -41,5 +46,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
||||||
isAlive = false;
|
isAlive = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public abstract void Target();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,10 +18,21 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
Height = 40;
|
Height = 40;
|
||||||
monster_speed = 3;
|
monster_speed = 3;
|
||||||
name = "Skull";
|
name = "Skull";
|
||||||
|
acceleration = Vector2.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "FlameSkullMoveRight" , "FlameSkullMoveLeft"}, "FlameSkullMoveRight");
|
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "FlameSkullMoveRight" , "FlameSkullMoveLeft"}, "FlameSkullMoveRight");
|
||||||
|
|
||||||
|
public override void Update(GameTime gameTime)
|
||||||
|
{
|
||||||
|
if (!isAttack)
|
||||||
|
{
|
||||||
|
Move(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
base.Update(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
public override void Attack()
|
public override void Attack()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -34,7 +45,40 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
public override void Move(GameTime gameTime)
|
public override void Move(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
if (isGoRight)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "FlameSkullMoveRight")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("FlameSkullMoveRight");
|
||||||
|
}
|
||||||
|
velocity.X = monster_speed;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "FlameSkullMoveLeft")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("FlameSkullMoveLeft");
|
||||||
|
}
|
||||||
|
velocity.X = -monster_speed;
|
||||||
|
}
|
||||||
|
if (Pos.X >= rightBoarder)
|
||||||
|
{
|
||||||
|
isGoRight = false;
|
||||||
|
}
|
||||||
|
else if (Pos.X <= leftBoarder)
|
||||||
|
{
|
||||||
|
isGoRight = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,16 +12,25 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
{
|
{
|
||||||
internal class Frank : CoreEnemy
|
internal class Frank : CoreEnemy
|
||||||
{
|
{
|
||||||
private bool isGoRight = false;
|
|
||||||
public Frank(Vector2 position) : base(position)
|
public Frank(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
|
isGoRight = false;
|
||||||
|
|
||||||
Width = 112;
|
Width = 112;
|
||||||
Height = 160;
|
Height = 160;
|
||||||
|
leftBoarder = 50;
|
||||||
|
rightBoarder = 300;
|
||||||
GraphicsComponent.StartAnimation("FrankMoveLeft");
|
GraphicsComponent.StartAnimation("FrankMoveLeft");
|
||||||
monster_speed = 1;
|
monster_speed = 2;
|
||||||
name = "Frank";
|
name = "Frank";
|
||||||
}
|
}
|
||||||
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "FrankMoveRight", "FrankMoveLeft" }, "FrankMoveRight");
|
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "FrankMoveRight", "FrankMoveLeft" }, "FrankMoveLeft");
|
||||||
|
|
||||||
|
public override void Update(GameTime gameTime)
|
||||||
|
{
|
||||||
|
Move(gameTime);
|
||||||
|
base.Update(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
public override void Attack()
|
public override void Attack()
|
||||||
{
|
{
|
||||||
|
@ -35,14 +44,8 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
public override void Move(GameTime gameTime)
|
public override void Move(GameTime gameTime)
|
||||||
{
|
{
|
||||||
var player = AppManager.Instance.GameManager.players[0];
|
|
||||||
if (player.Pos.X - _pos.X <= 20 || player.Pos.X - _pos.X <= -20)
|
|
||||||
{
|
|
||||||
player.Death(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isGoRight)
|
if (isGoRight)
|
||||||
{
|
{
|
||||||
if (GraphicsComponent.GetCurrentAnimation != "FrankMoveRight")
|
if (GraphicsComponent.GetCurrentAnimation != "FrankMoveRight")
|
||||||
{
|
{
|
||||||
GraphicsComponent.StartAnimation("FrankMoveRight");
|
GraphicsComponent.StartAnimation("FrankMoveRight");
|
||||||
|
@ -57,6 +60,24 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
}
|
}
|
||||||
velocity.X = -monster_speed;
|
velocity.X = -monster_speed;
|
||||||
}
|
}
|
||||||
|
if (Pos.X >= rightBoarder)
|
||||||
|
{
|
||||||
|
isGoRight = false;
|
||||||
|
}
|
||||||
|
else if (Pos.X <= leftBoarder)
|
||||||
|
{
|
||||||
|
isGoRight = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,19 +12,51 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
{
|
{
|
||||||
public class FrankBalls : CoreEnemy
|
public class FrankBalls : CoreEnemy
|
||||||
{
|
{
|
||||||
|
private Rectangle collision;
|
||||||
|
private Vector2 position;
|
||||||
|
private int healthBall;
|
||||||
|
private bool isFlyRight = true;
|
||||||
|
private bool isAttacking = false;
|
||||||
|
|
||||||
|
public Rectangle Collision
|
||||||
|
{
|
||||||
|
get { return collision; }
|
||||||
|
}
|
||||||
|
|
||||||
public FrankBalls(Vector2 position) : base(position)
|
public FrankBalls(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
|
this.position = position;
|
||||||
name = "FrankBalls";
|
name = "FrankBalls";
|
||||||
Width = 40;
|
Width = 40;
|
||||||
Height = 40;
|
Height = 40;
|
||||||
monster_speed = 1;
|
monster_speed = 3;
|
||||||
acceleration = Vector2.Zero;
|
acceleration = Vector2.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "BallMoveRight" }, "BallMoveRight");
|
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "BallMoveRight" }, "BallMoveRight");
|
||||||
|
|
||||||
|
public override void Update(GameTime gameTime)
|
||||||
|
{
|
||||||
|
if(!isAttacking)
|
||||||
|
{
|
||||||
|
Move(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
base.Update(gameTime);
|
||||||
|
}
|
||||||
public override void Attack()
|
public override void Attack()
|
||||||
{
|
{
|
||||||
|
collision = new Rectangle((int)position.X, (int)position.Y, 40, 40);
|
||||||
|
isAttacking = true;
|
||||||
|
|
||||||
|
if(isFlyRight)
|
||||||
|
{
|
||||||
|
AppManager.Instance.GameManager.players[0].Death(name);
|
||||||
|
}
|
||||||
|
else if(!isFlyRight)
|
||||||
|
{
|
||||||
|
AppManager.Instance.GameManager.players[0].Death(name);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +67,29 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
public override void Move(GameTime gameTime)
|
public override void Move(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
velocity.X = 0;
|
||||||
|
velocity.Y = 0;
|
||||||
|
|
||||||
|
if(isFlyRight)
|
||||||
|
{
|
||||||
|
velocity.X += monster_speed;
|
||||||
|
velocity.Y += monster_speed;
|
||||||
|
}
|
||||||
|
else if(!isFlyRight)
|
||||||
|
{
|
||||||
|
velocity.X -= monster_speed;
|
||||||
|
velocity.Y -= monster_speed;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,16 +12,28 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
{
|
{
|
||||||
public Ghost(Vector2 position) : base(position)
|
public Ghost(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
monster_speed = 1;
|
isGoRight = true;
|
||||||
|
monster_speed = 3;
|
||||||
name = "Ghost";
|
name = "Ghost";
|
||||||
Width = 48;
|
Width = 48;
|
||||||
Height = 62;
|
Height = 62;
|
||||||
GraphicsComponent.StartAnimation("GhostSpawn");
|
GraphicsComponent.StartAnimation("GhostSpawn");
|
||||||
|
acceleration = Vector2.Zero;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "GhostMoveRight", "GhostMoveLeft", "GhostSpawn", "GhostAttack" }, "GhostMoveRight");
|
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "GhostMoveRight", "GhostMoveLeft", "GhostSpawn", "GhostAttack" }, "GhostMoveRight");
|
||||||
|
|
||||||
|
public override void Update(GameTime gameTime)
|
||||||
|
{
|
||||||
|
if (!isAttack)
|
||||||
|
{
|
||||||
|
Move(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
base.Update(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
public override void Attack()
|
public override void Attack()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -34,7 +46,44 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
public override void Move(GameTime gameTime)
|
public override void Move(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
if (isGoRight)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "GhostMoveRight")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("GhostMoveRight");
|
||||||
|
}
|
||||||
|
velocity.X = monster_speed;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "GhostMoveLeft")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("GhostMoveLeft");
|
||||||
|
}
|
||||||
|
velocity.X = -monster_speed;
|
||||||
|
}
|
||||||
|
if (Pos.X >= rightBoarder)
|
||||||
|
{
|
||||||
|
isGoRight = false;
|
||||||
|
}
|
||||||
|
else if (Pos.X <= leftBoarder)
|
||||||
|
{
|
||||||
|
isGoRight = true;
|
||||||
|
}
|
||||||
|
if (true)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,11 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public override void Death()
|
public override void Death()
|
||||||
{
|
{
|
||||||
if (monster_health <= 0)
|
if (monster_health <= 0)
|
||||||
|
@ -123,5 +128,10 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
_pos.X += 5 * monster_speed;
|
_pos.X += 5 * monster_speed;
|
||||||
Debug.WriteLine("Collision");
|
Debug.WriteLine("Collision");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,11 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public override void Death()
|
public override void Death()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -36,5 +41,10 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,12 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
public override void Attack()
|
public override void Attack()
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Death()
|
public override void Death()
|
||||||
|
@ -39,12 +44,12 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
{
|
{
|
||||||
if (Pos.Y> AppManager.Instance.GameManager.GetPlayer1.Pos.Y)
|
if (Pos.Y> AppManager.Instance.GameManager.GetPlayer1.Pos.Y)
|
||||||
{
|
{
|
||||||
velocity.Y = monster_speed;
|
velocity.Y = -monster_speed;
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
velocity.Y = 0;
|
velocity.Y = monster_speed;
|
||||||
}
|
}
|
||||||
if (Pos.X> AppManager.Instance.GameManager.GetPlayer1.Pos.X)
|
if (Pos.X> AppManager.Instance.GameManager.GetPlayer1.Pos.X)
|
||||||
{
|
{
|
||||||
|
@ -55,9 +60,16 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
velocity.X = monster_speed;
|
velocity.X = monster_speed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
public override void Update(GameTime gameTime)
|
public override void Update(GameTime gameTime)
|
||||||
{
|
{
|
||||||
base.Update(gameTime);
|
base.Update(gameTime);
|
||||||
|
Move(gameTime);
|
||||||
if ((Pos.X + 20 <= AppManager.Instance.GameManager.GetPlayer1.Pos.X || Pos.X - 20 >= AppManager.Instance.GameManager.GetPlayer1.Pos.X)&&(Pos.Y + 20 <= AppManager.Instance.GameManager.GetPlayer1.Pos.Y || Pos.Y - 20 >= AppManager.Instance.GameManager.GetPlayer1.Pos.Y))
|
if ((Pos.X + 20 <= AppManager.Instance.GameManager.GetPlayer1.Pos.X || Pos.X - 20 >= AppManager.Instance.GameManager.GetPlayer1.Pos.X)&&(Pos.Y + 20 <= AppManager.Instance.GameManager.GetPlayer1.Pos.Y || Pos.Y - 20 >= AppManager.Instance.GameManager.GetPlayer1.Pos.Y))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using DangerousD.GameCore.Graphics;
|
using DangerousD.GameCore.GameObjects.Entities;
|
||||||
|
using DangerousD.GameCore.Graphics;
|
||||||
using Microsoft.Xna.Framework;
|
using Microsoft.Xna.Framework;
|
||||||
using Microsoft.Xna.Framework.Content;
|
using Microsoft.Xna.Framework.Content;
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
|
@ -15,6 +16,11 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
private int attackTime = 60;
|
private int attackTime = 60;
|
||||||
private int moveTime = 360;
|
private int moveTime = 360;
|
||||||
private int currentTime = 0;
|
private int currentTime = 0;
|
||||||
|
private bool isGoRight = true;
|
||||||
|
int leftBorder;
|
||||||
|
int rightBorder;
|
||||||
|
List<SilasHands> hands = new List<SilasHands>();
|
||||||
|
List<SilasBall> balls = new List<SilasBall>();
|
||||||
public SilasMaster(Vector2 position) : base(position)
|
public SilasMaster(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
name = "SilasMaster";
|
name = "SilasMaster";
|
||||||
|
@ -23,25 +29,57 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
monster_health = 15;
|
monster_health = 15;
|
||||||
monster_speed = 4;
|
monster_speed = 4;
|
||||||
acceleration = Vector2.Zero;
|
acceleration = Vector2.Zero;
|
||||||
|
leftBorder = (int)position.X - 60;
|
||||||
|
rightBorder = (int)position.X + 120;
|
||||||
|
acceleration = Vector2.Zero;
|
||||||
|
hands.Add(new SilasHands(new Vector2(Pos.X+60,Pos.Y+120)));
|
||||||
|
hands.Add(new SilasHands(new Vector2(Pos.X + 90, Pos.Y + 120)));
|
||||||
|
for (int i = 0; i < 4; i++)
|
||||||
|
{
|
||||||
|
SilasBall silasball = new SilasBall(new Vector2(Pos.X + i * 40, Pos.Y + 120), new Vector2((i - 2) * 4, 6));
|
||||||
|
balls.Add(silasball);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
protected override GraphicsComponent GraphicsComponent { get; } = new GraphicsComponent(new List<string>() { "SilasMove", "SilasAttack" }, "SilasMove");
|
protected override GraphicsComponent GraphicsComponent { get; } = new GraphicsComponent(new List<string>() { "SilasMove", "SilasAttack" }, "SilasMove");
|
||||||
public override void Attack()
|
public override void Attack()
|
||||||
{
|
{
|
||||||
if (currentTime==0)
|
|
||||||
|
if (currentTime == 0)
|
||||||
{
|
{
|
||||||
GraphicsComponent.StartAnimation("SilasAttack");
|
GraphicsComponent.StartAnimation("SilasAttack");
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (currentTime == attackTime / 2)
|
||||||
|
{
|
||||||
|
SpawnAttackBall();
|
||||||
}
|
}
|
||||||
else if (currentTime >= attackTime)
|
else if (currentTime >= attackTime)
|
||||||
{
|
{
|
||||||
|
|
||||||
GraphicsComponent.StartAnimation("SilasMove");
|
GraphicsComponent.StartAnimation("SilasMove");
|
||||||
currentTime = 0;
|
currentTime = 0;
|
||||||
}
|
}
|
||||||
currentTime++;
|
currentTime++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void SpawnAttackBall()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < balls.Count; i++)
|
||||||
|
{
|
||||||
|
balls[i].SetPosition(new Vector2(Pos.X + i * 40, Pos.Y + 120));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public override void Death()
|
public override void Death()
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Move(GameTime gameTime)
|
public override void Move(GameTime gameTime)
|
||||||
|
@ -56,16 +94,44 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
currentTime = 0;
|
currentTime = 0;
|
||||||
}
|
}
|
||||||
currentTime++;
|
currentTime++;
|
||||||
|
if (isGoRight)
|
||||||
|
{
|
||||||
|
velocity.X = monster_speed;
|
||||||
|
}
|
||||||
|
else if (!isGoRight)
|
||||||
|
{
|
||||||
|
velocity.X = -monster_speed;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Pos.X >= rightBorder)
|
||||||
|
{
|
||||||
|
isGoRight = false;
|
||||||
|
}
|
||||||
|
else if (Pos.X <= leftBorder)
|
||||||
|
{
|
||||||
|
isGoRight = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
public override void Update(GameTime gameTime)
|
public override void Update(GameTime gameTime)
|
||||||
{
|
{
|
||||||
base.Update(gameTime);
|
base.Update(gameTime);
|
||||||
if (GraphicsComponent.CurrentAnimation.Id=="SilasMove")
|
if (hands.Count<2)
|
||||||
|
{
|
||||||
|
hands.Add(new SilasHands(new Vector2(Pos.X + 60, Pos.Y + 120)));
|
||||||
|
}
|
||||||
|
if (GraphicsComponent.CurrentAnimation.Id == "SilasMove")
|
||||||
{
|
{
|
||||||
Move(gameTime);
|
Move(gameTime);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
velocity = Vector2.Zero;
|
||||||
Attack();
|
Attack();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,25 +12,233 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
{
|
{
|
||||||
public class Slime : CoreEnemy
|
public class Slime : CoreEnemy
|
||||||
{
|
{
|
||||||
|
private bool isGoRight = true;
|
||||||
|
private bool isDown = false;
|
||||||
|
int leftBorder;
|
||||||
|
int rightBorder;
|
||||||
|
bool isAttaking = false;
|
||||||
|
int delay;
|
||||||
|
bool isJumping = false;
|
||||||
public Slime(Vector2 position) : base(position)
|
public Slime(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
|
Width = 48;
|
||||||
|
Height = 16;
|
||||||
|
name = "Slime";
|
||||||
|
monster_speed = 3;
|
||||||
|
monster_health = 2;
|
||||||
|
leftBorder = 100;
|
||||||
|
rightBorder = 400;
|
||||||
|
//acceleration = Vector2.Zero;
|
||||||
|
delay = 30;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "SlimeMoveLeftTop", "SlimeMoveLeftBottom", "SlimeMoveRightTop",
|
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "SlimeMoveLeftTop", "SlimeMoveLeftBottom", "SlimeMoveRightTop",
|
||||||
"SlimeMoveRightBottom", "SlimeReadyJumpRightBottom", "SlimeReadyJumpRightTop", "SlimeReadyJumpLeftBottom", "SlimeReadyJumpLeftTop", "SlimeJumpRightBottom",
|
"SlimeMoveRightBottom", "SlimeReadyJumpRightBottom", "SlimeReadyJumpRightTop", "SlimeReadyJumpLeftBottom", "SlimeReadyJumpLeftTop", "SlimeJumpRightBottom",
|
||||||
"SlimeJumpRightTop", "SlimeJumpLeftBottom", "SlimeJumpLeftTop" }, "");
|
"SlimeJumpRightTop", "SlimeJumpLeftBottom", "SlimeJumpLeftTop" }, "SlimeMoveRightTop");
|
||||||
|
|
||||||
public override void Attack()
|
public override void Attack()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public void Jump()
|
||||||
|
{
|
||||||
|
var getCols = AppManager.Instance.GameManager.physicsManager.CheckRectangle(new Rectangle(0, 0, 100, 100));
|
||||||
|
velocity.X = 0;
|
||||||
|
Height = 32;
|
||||||
|
if (isGoRight && isDown)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeReadyJumpLeftBottom")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeReadyJumpLeftBottom");
|
||||||
|
}
|
||||||
|
delay--;
|
||||||
|
if (delay <= 0)
|
||||||
|
{
|
||||||
|
isJumping = true;
|
||||||
|
velocity = new Vector2(5, -3);
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeJumpLeftBottom")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeJumpLeftBottom");
|
||||||
|
}
|
||||||
|
getCols = AppManager.Instance.GameManager.physicsManager.CheckRectangle(new Rectangle((int)Pos.X, (int)Pos.Y - 5, 48, 5));
|
||||||
|
if (getCols.Count > 0)
|
||||||
|
{
|
||||||
|
isJumping = false;
|
||||||
|
isDown = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (!isGoRight && isDown)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeReadyJumpRightTop")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeReadyJumpRightTop");
|
||||||
|
}
|
||||||
|
delay--;
|
||||||
|
if (delay <= 0)
|
||||||
|
{
|
||||||
|
velocity = new Vector2(-5, -3);
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeJumpRightTop")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeJumpRightTop");
|
||||||
|
}
|
||||||
|
getCols = AppManager.Instance.GameManager.physicsManager.CheckRectangle(new Rectangle((int)Pos.X, (int)Pos.Y - 5, 48, 5));
|
||||||
|
if (getCols.Count > 0)
|
||||||
|
{
|
||||||
|
isJumping = false;
|
||||||
|
isDown = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if (isGoRight && !isDown)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeReadyJumpLeftTop")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeReadyJumpLeftTop");
|
||||||
|
|
||||||
|
}
|
||||||
|
delay--;
|
||||||
|
if (delay <= 0)
|
||||||
|
{
|
||||||
|
isJumping = true;
|
||||||
|
velocity = new Vector2(5, 3);
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeJumpLeftTop")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeJumpLeftTop");
|
||||||
|
}
|
||||||
|
getCols = AppManager.Instance.GameManager.physicsManager.CheckRectangle(new Rectangle((int)Pos.X, (int)Pos.Y + Height, 48, 5));
|
||||||
|
if (getCols.Count > 0)
|
||||||
|
{
|
||||||
|
isJumping = false;
|
||||||
|
isDown = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (!isGoRight && !isDown)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeReadyJumpRightTop")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeReadyJumpRightTop");
|
||||||
|
}
|
||||||
|
delay--;
|
||||||
|
if (delay <= 0)
|
||||||
|
{
|
||||||
|
velocity = new Vector2(-5, 3);
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeJumpRightTop")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeJumpRightTop");
|
||||||
|
}
|
||||||
|
getCols = AppManager.Instance.GameManager.physicsManager.CheckRectangle(new Rectangle((int)Pos.X, (int)Pos.Y + Height, 48, 5));
|
||||||
|
if (getCols.Count > 0)
|
||||||
|
{
|
||||||
|
isJumping = false;
|
||||||
|
isDown = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void Draw(SpriteBatch spriteBatch)
|
||||||
|
{
|
||||||
|
spriteBatch.Draw(debugTexture, new Rectangle((int)Pos.X, (int)Pos.Y - 5, 48, 5), Color.White);
|
||||||
|
spriteBatch.Draw(debugTexture, new Rectangle((int)Pos.X, (int)Pos.Y + Height, 48, 5), Color.White);
|
||||||
|
base.Draw(spriteBatch);
|
||||||
|
}
|
||||||
public override void Death()
|
public override void Death()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Move(GameTime gameTime)
|
public override void Move(GameTime gameTime)
|
||||||
|
{
|
||||||
|
float delta = (float)gameTime.ElapsedGameTime.TotalSeconds;
|
||||||
|
delay = 30;
|
||||||
|
Height = 16;
|
||||||
|
if (isGoRight && isDown)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeMoveRightBottom")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeMoveRightBottom");
|
||||||
|
}
|
||||||
|
velocity.X = monster_speed;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (!isGoRight && isDown)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeMoveLeftBottom")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeMoveLeftBottom");
|
||||||
|
}
|
||||||
|
velocity.X = -monster_speed;
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (!isDown && isGoRight)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeMoveRightTop")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeMoveRightTop");
|
||||||
|
|
||||||
|
}
|
||||||
|
velocity.X = monster_speed;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (!isDown && !isGoRight)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SlimeMoveLeftTop")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SlimeMoveLeftTop");
|
||||||
|
}
|
||||||
|
velocity.X = -monster_speed;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Pos.X >= rightBorder)
|
||||||
|
{
|
||||||
|
isGoRight = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (Pos.X <= leftBorder)
|
||||||
|
{
|
||||||
|
isGoRight = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public override void Update(GameTime gameTime)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (isDown)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (acceleration.Y < 0)
|
||||||
|
{
|
||||||
|
acceleration.Y = -acceleration.Y;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
if (acceleration.Y > 0)
|
||||||
|
{
|
||||||
|
acceleration.Y = -acceleration.Y;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//if (!isAttaking){ Move(gameTime); }
|
||||||
|
|
||||||
|
|
||||||
|
base.Update(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
protected int webLength;
|
protected int webLength;
|
||||||
protected bool isDown;
|
protected bool isDown;
|
||||||
protected bool isDownUp;
|
protected bool isDownUp;
|
||||||
|
|
||||||
public Spider(Vector2 position) : base(position)
|
public Spider(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
isDownUp = true;
|
isDownUp = true;
|
||||||
|
@ -27,7 +28,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
Height = 24;
|
Height = 24;
|
||||||
delay = 0;
|
delay = 0;
|
||||||
webLength = 0;
|
webLength = 0;
|
||||||
monster_speed = 1;
|
monster_speed = 2;
|
||||||
acceleration = Vector2.Zero;
|
acceleration = Vector2.Zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +36,29 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
public override void Update(GameTime gameTime)
|
public override void Update(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
if (!isAttack)
|
||||||
|
{
|
||||||
|
Move(gameTime);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Attack(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
base.Update(gameTime);
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// НИЧЕГО НЕ ДЕЛАЕТ! НУЖЕН ДЛЯ ПЕРЕОПРЕДЕЛЕНИЯ
|
||||||
|
/// </summary>
|
||||||
|
public override void Attack()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// Атака паука РАБОЧАЯ
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="gameTime"></param>
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{ //48 72
|
||||||
if (isDownUp)
|
if (isDownUp)
|
||||||
{
|
{
|
||||||
Width = 48;
|
Width = 48;
|
||||||
|
@ -46,7 +70,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
webLength++;
|
webLength++;
|
||||||
_pos.Y += 25;
|
_pos.Y += 25;
|
||||||
web.Height = webLength * 25;
|
web.Height = webLength * 25;
|
||||||
web.SetPosition(new Vector2(_pos.X + Width / 2 - web.Width / 2, Pos.Y - 25 * webLength));
|
web.SetPosition(new Vector2(_pos.X + Width / 2 - web.Width / 2 + 2, Pos.Y - 25 * webLength));
|
||||||
delay = 0;
|
delay = 0;
|
||||||
if (webLength == 4)
|
if (webLength == 4)
|
||||||
{
|
{
|
||||||
|
@ -59,7 +83,7 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
webLength--;
|
webLength--;
|
||||||
_pos.Y -= 25;
|
_pos.Y -= 25;
|
||||||
web.Height = webLength * 25;
|
web.Height = webLength * 25;
|
||||||
web.SetPosition(new Vector2(_pos.X + Width / 2 - web.Width / 2, Pos.Y - 25 * webLength));
|
web.SetPosition(new Vector2(_pos.X + Width / 2 - web.Width / 2 + 2, Pos.Y - 25 * webLength));
|
||||||
delay = 0;
|
delay = 0;
|
||||||
if (webLength == 0)
|
if (webLength == 0)
|
||||||
{
|
{
|
||||||
|
@ -72,12 +96,6 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
Height = 24;
|
Height = 24;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
base.Update(gameTime);
|
|
||||||
}
|
|
||||||
public override void Attack()
|
|
||||||
{ //48 72
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Draw(SpriteBatch spriteBatch)
|
public override void Draw(SpriteBatch spriteBatch)
|
||||||
|
@ -100,7 +118,35 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
public override void Move(GameTime gameTime)
|
public override void Move(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
if (isGoRight)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SpiderMoveRight")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SpiderMoveRight");
|
||||||
|
}
|
||||||
|
velocity.X = monster_speed;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "SpiderMoveLeft")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("SpiderMoveLeft");
|
||||||
|
}
|
||||||
|
velocity.X = -monster_speed;
|
||||||
|
}
|
||||||
|
if (Pos.X >= rightBoarder)
|
||||||
|
{
|
||||||
|
isGoRight = false;
|
||||||
|
}
|
||||||
|
else if (Pos.X <= leftBoarder)
|
||||||
|
{
|
||||||
|
isGoRight = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,6 +28,11 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public override void Death()
|
public override void Death()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -37,5 +42,10 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,13 +15,23 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
public Werewolf(Vector2 position) : base(position)
|
public Werewolf(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
name = "Wolf";
|
name = "Wolf";
|
||||||
monster_speed = 1;
|
monster_speed = 4;
|
||||||
Width = 78;
|
Width = 78;
|
||||||
Height = 96;
|
Height = 96;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "WolfMoveRight", "WolfMoveLeft", "WolfJumpRight", "WolfJumpLeft" }, "WolfMoveRight");
|
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "WolfMoveRight", "WolfMoveLeft", "WolfJumpRight", "WolfJumpLeft" }, "WolfMoveRight");
|
||||||
|
|
||||||
|
public override void Update(GameTime gameTime)
|
||||||
|
{
|
||||||
|
if (!isAttack)
|
||||||
|
{
|
||||||
|
Move(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
base.Update(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
public override void Attack()
|
public override void Attack()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -34,7 +44,39 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
|
|
||||||
public override void Move(GameTime gameTime)
|
public override void Move(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
if (isGoRight)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "WolfMoveRight")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("WolfMoveRight");
|
||||||
|
}
|
||||||
|
velocity.X = monster_speed;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "WolfMoveLeft")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("WolfMoveLeft");
|
||||||
|
}
|
||||||
|
velocity.X = -monster_speed;
|
||||||
|
}
|
||||||
|
if (Pos.X >= rightBoarder)
|
||||||
|
{
|
||||||
|
isGoRight = false;
|
||||||
|
}
|
||||||
|
else if (Pos.X <= leftBoarder)
|
||||||
|
{
|
||||||
|
isGoRight = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Target()
|
||||||
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,23 +110,22 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
}
|
}
|
||||||
base.OnCollision(gameObject);
|
base.OnCollision(gameObject);
|
||||||
}
|
}
|
||||||
|
public override void Target()
|
||||||
public void Target()
|
|
||||||
{
|
{
|
||||||
if(physicsManager.RayCast(this, AppManager.Instance.GameManager.players[0]) == null)
|
if (AppManager.Instance.GameManager.physicsManager.CheckRectangle(new Rectangle((int)Pos.X - 50, (int)Pos.Y, Width + 100, Height), typeof(Player)) != null)
|
||||||
{
|
{
|
||||||
if(isGoRight && this._pos.X <= AppManager.Instance.GameManager.players[0].Pos.X)
|
if (isGoRight && this._pos.X <= AppManager.Instance.GameManager.players[0].Pos.X)
|
||||||
{
|
{
|
||||||
isTarget = true;
|
isTarget = true;
|
||||||
leftBorder = Pos.X - 10;
|
leftBorder = Pos.X - 10;
|
||||||
rightBorder = Pos.X + AppManager.Instance.GameManager.players[0].Pos.X;
|
rightBorder = Pos.X + AppManager.Instance.GameManager.players[0].Pos.X;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(!isGoRight && this._pos.X >= AppManager.Instance.GameManager.players[0].Pos.X)
|
else if (!isGoRight && this._pos.X >= AppManager.Instance.GameManager.players[0].Pos.X)
|
||||||
{
|
{
|
||||||
isTarget = true;
|
isTarget = true;
|
||||||
rightBorder = Pos.X + 10;
|
rightBorder = Pos.X + 10;
|
||||||
leftBorder = AppManager.Instance.GameManager.players[0].Pos.X;
|
leftBorder = AppManager.Instance.GameManager.players[0].Pos.X;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -141,5 +140,8 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities.Monsters
|
||||||
rightBorder = 760;
|
rightBorder = 760;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void Attack(GameTime gameTime)
|
||||||
|
{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,8 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DangerousD.GameCore.GameObjects.PlayerDeath;
|
using DangerousD.GameCore.GameObjects.PlayerDeath;
|
||||||
|
using Microsoft.Xna.Framework.Input;
|
||||||
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
|
|
||||||
namespace DangerousD.GameCore.GameObjects.LivingEntities
|
namespace DangerousD.GameCore.GameObjects.LivingEntities
|
||||||
{
|
{
|
||||||
|
@ -14,23 +16,62 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
||||||
bool isAlive = true;
|
bool isAlive = true;
|
||||||
bool isRight;
|
bool isRight;
|
||||||
string stayAnimation;
|
string stayAnimation;
|
||||||
|
public int health;
|
||||||
|
public bool isGoRight = false;
|
||||||
|
public Vector2 playerVelocity;
|
||||||
|
public int rightBorder;
|
||||||
|
public int leftBorder;
|
||||||
|
public bool isVisible = true;
|
||||||
|
public GameObject objectAttack;
|
||||||
|
|
||||||
public Player(Vector2 position) : base(position)
|
public Player(Vector2 position) : base(position)
|
||||||
{
|
{
|
||||||
Width = 24;
|
Width = 32;
|
||||||
Height = 32;
|
Height = 64;
|
||||||
AppManager.Instance.InputManager.MovEventJump += Jump;
|
|
||||||
|
AppManager.Instance.InputManager.ShootEvent += Shoot;
|
||||||
|
|
||||||
|
AppManager.Instance.InputManager.MovEventJump += AnimationJump;
|
||||||
|
AppManager.Instance.InputManager.MovEventDown += MoveDown;
|
||||||
|
|
||||||
|
playerVelocity = new Vector2(100, 0);
|
||||||
|
rightBorder = (int)position.X + 100;
|
||||||
|
leftBorder = (int)position.X - 100;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void AnimationJump()
|
||||||
|
{
|
||||||
|
velocity.Y = -300;
|
||||||
|
}
|
||||||
|
|
||||||
public bool IsAlive { get { return isAlive; } }
|
public bool IsAlive { get { return isAlive; } }
|
||||||
|
|
||||||
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "playerMoveLeft", "playerMoveRight", "DeathFromZombie", "playerRightStay", "playerStayLeft",
|
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "playerMoveLeft", "playerMoveRight", "DeathFromZombie", "playerRightStay", "playerStayLeft",
|
||||||
"playerJumpRight" , "playerJumpLeft"}, "playerStayLeft");
|
"playerJumpRight" , "playerJumpLeft"}, "playerStayLeft");
|
||||||
|
|
||||||
public void Kill()
|
public void Attack()
|
||||||
{
|
{
|
||||||
|
if (objectAttack.Rectangle.Intersects(this.Rectangle))
|
||||||
|
{
|
||||||
|
isVisible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public override void OnCollision(GameObject gameObject)
|
||||||
|
{
|
||||||
|
if (gameObject is Player)
|
||||||
|
{
|
||||||
|
isVisible = false;
|
||||||
|
}
|
||||||
|
base.OnCollision(gameObject);
|
||||||
|
}
|
||||||
|
public override void Draw(SpriteBatch spriteBatch)
|
||||||
|
{
|
||||||
|
if (isVisible)
|
||||||
|
{
|
||||||
|
base.Draw(spriteBatch);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Death(string monsterName)
|
public void Death(string monsterName)
|
||||||
{
|
{
|
||||||
if(monsterName == "Zombie")
|
if(monsterName == "Zombie")
|
||||||
|
@ -46,15 +87,65 @@ namespace DangerousD.GameCore.GameObjects.LivingEntities
|
||||||
}
|
}
|
||||||
isAlive = false;
|
isAlive = false;
|
||||||
}
|
}
|
||||||
public override void Update(GameTime gameTime)
|
|
||||||
{
|
|
||||||
|
|
||||||
base.Update(gameTime);
|
|
||||||
}
|
|
||||||
public void Jump()
|
public void Jump()
|
||||||
{
|
{
|
||||||
velocity.Y = -300;
|
velocity.Y = -300;
|
||||||
//сюда анимацию и доделать
|
//сюда анимацию и доделать
|
||||||
|
if (Keyboard.GetState().IsKeyDown(Keys.Escape))
|
||||||
|
{
|
||||||
|
velocity.Y = -300;
|
||||||
|
}
|
||||||
|
// здесь будет анимация
|
||||||
}
|
}
|
||||||
|
public void Shoot()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Update(GameTime gameTime)
|
||||||
|
{
|
||||||
|
GraphicsComponent.CameraPosition = (_pos-new Vector2(200, 350)).ToPoint();
|
||||||
|
velocity.X = 0.5f;
|
||||||
|
if (!isVisible)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
Move(gameTime);
|
||||||
|
base.Update(gameTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Move(GameTime gameTime)
|
||||||
|
{
|
||||||
|
float delta = (float)gameTime.ElapsedGameTime.TotalSeconds;
|
||||||
|
if (isGoRight)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "playerMoveRight")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("playerMoveRight");
|
||||||
|
}
|
||||||
|
_pos = playerVelocity * delta;
|
||||||
|
}
|
||||||
|
else if (!isGoRight)
|
||||||
|
{
|
||||||
|
if (GraphicsComponent.GetCurrentAnimation != "playerMoveLeft")
|
||||||
|
{
|
||||||
|
GraphicsComponent.StartAnimation("playerMoveLeft");
|
||||||
|
}
|
||||||
|
_pos= -playerVelocity * delta;
|
||||||
|
}
|
||||||
|
if (_pos.X >= rightBorder)
|
||||||
|
{
|
||||||
|
isGoRight = false;
|
||||||
|
}
|
||||||
|
if (_pos.X >= leftBorder)
|
||||||
|
{
|
||||||
|
isGoRight = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public void MoveDown()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,16 +11,20 @@ public abstract class LivingEntity : Entity
|
||||||
{
|
{
|
||||||
acceleration = new Vector2(0, 30);
|
acceleration = new Vector2(0, 30);
|
||||||
}
|
}
|
||||||
public void SetPosition(Vector2 position) { targetPosition = position; _pos = position; } //TODO befrend targetpos and physics engine
|
public override void SetPosition(Vector2 position)
|
||||||
|
{
|
||||||
|
targetPosition = position; _pos = position;
|
||||||
|
|
||||||
|
} //TODO befrend targetpos and physics engine
|
||||||
|
|
||||||
public override void Update(GameTime gameTime)
|
public override void Update(GameTime gameTime)
|
||||||
{
|
{
|
||||||
if (Vector2.Distance(Pos, targetPosition) > 0.5f)
|
//if (Vector2.DistanceSquared(Pos, targetPosition) > 0.25f)
|
||||||
{
|
//{
|
||||||
Vector2 dir = targetPosition - Pos;
|
// Vector2 dir = targetPosition - Pos;
|
||||||
dir.Normalize();
|
// dir.Normalize();
|
||||||
_pos += dir * velocity;
|
// _pos += dir * velocity;
|
||||||
}
|
//}
|
||||||
base.Update(gameTime);
|
base.Update(gameTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,31 @@
|
||||||
using Microsoft.Xna.Framework;
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.Xna.Framework;
|
||||||
using System.Security.Cryptography.X509Certificates;
|
using System.Security.Cryptography.X509Certificates;
|
||||||
|
using DangerousD.GameCore.Graphics;
|
||||||
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
namespace DangerousD.GameCore.GameObjects;
|
namespace DangerousD.GameCore.GameObjects;
|
||||||
|
|
||||||
public abstract class MapObject : GameObject
|
public abstract class MapObject : GameObject
|
||||||
{
|
{
|
||||||
public bool IsColliderOn;
|
public virtual bool IsColliderOn { get; protected set; } = true;
|
||||||
public MapObject(Vector2 position) : base(position)
|
private Rectangle _sourceRectangle;
|
||||||
|
protected override GraphicsComponent GraphicsComponent { get; } = new("tiles");
|
||||||
|
public MapObject(Vector2 position, Vector2 size, Rectangle sourceRectangle) : base(position)
|
||||||
|
{
|
||||||
|
_sourceRectangle = sourceRectangle;
|
||||||
|
Width = (int)size.X;
|
||||||
|
Height = (int)size.Y;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual void Draw(SpriteBatch spriteBatch)
|
||||||
|
{
|
||||||
|
GraphicsComponent.DrawAnimation(Rectangle, spriteBatch, _sourceRectangle);
|
||||||
|
//spriteBatch.Draw(debugTexture, new Rectangle(Rectangle.X - GraphicsComponent.CameraPosition.X, Rectangle.Y - GraphicsComponent.CameraPosition.Y, Rectangle.Width, Rectangle.Height), Color.White);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -1,23 +0,0 @@
|
||||||
using Microsoft.Xna.Framework;
|
|
||||||
using Microsoft.Xna.Framework.Content;
|
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using DangerousD.GameCore.Graphics;
|
|
||||||
|
|
||||||
namespace DangerousD.GameCore.GameObjects.MapObjects
|
|
||||||
{
|
|
||||||
internal class GrassBlock : MapObject
|
|
||||||
{
|
|
||||||
protected override GraphicsComponent GraphicsComponent { get; } = new("wall");
|
|
||||||
|
|
||||||
public GrassBlock(Vector2 position) : base(position)
|
|
||||||
{
|
|
||||||
Width = 32;
|
|
||||||
Height = 32;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
21
DangerousD/GameCore/GameObjects/MapObjects/Platform.cs
Normal file
21
DangerousD/GameCore/GameObjects/MapObjects/Platform.cs
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
using DangerousD.GameCore.Graphics;
|
||||||
|
using Microsoft.Xna.Framework;
|
||||||
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
|
|
||||||
|
namespace DangerousD.GameCore.GameObjects.MapObjects;
|
||||||
|
|
||||||
|
public class Platform : MapObject
|
||||||
|
{
|
||||||
|
public override bool IsColliderOn { get; protected set; } = true;
|
||||||
|
public Platform(Vector2 position, Vector2 size, Rectangle sourceRectangle) : base(position, size, sourceRectangle)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public override void Draw(SpriteBatch spriteBatch)
|
||||||
|
{
|
||||||
|
base.Draw(spriteBatch);
|
||||||
|
//debug
|
||||||
|
//spriteBatch.Draw(debugTexture, new Rectangle(Rectangle.X - GraphicsComponent.CameraPosition.X, Rectangle.Y - GraphicsComponent.CameraPosition.Y, Rectangle.Width, Rectangle.Height), Color.Blue);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
20
DangerousD/GameCore/GameObjects/MapObjects/StopTile.cs
Normal file
20
DangerousD/GameCore/GameObjects/MapObjects/StopTile.cs
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
using DangerousD.GameCore.Graphics;
|
||||||
|
using Microsoft.Xna.Framework;
|
||||||
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
|
|
||||||
|
namespace DangerousD.GameCore.GameObjects.MapObjects;
|
||||||
|
|
||||||
|
public class StopTile : MapObject
|
||||||
|
{
|
||||||
|
public override bool IsColliderOn { get; protected set; } = true;
|
||||||
|
public StopTile(Vector2 position, Vector2 size, Rectangle sourceRectangle) : base(position, size, sourceRectangle)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
public override void Draw(SpriteBatch spriteBatch)
|
||||||
|
{
|
||||||
|
base.Draw(spriteBatch);
|
||||||
|
//debug
|
||||||
|
// spriteBatch.Draw(debugTexture, new Rectangle(Rectangle.X - GraphicsComponent.CameraPosition.X, Rectangle.Y - GraphicsComponent.CameraPosition.Y, Rectangle.Width, Rectangle.Height), Color.White);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,25 +0,0 @@
|
||||||
using DangerousD.GameCore.Graphics;
|
|
||||||
using Microsoft.Xna.Framework;
|
|
||||||
using Microsoft.Xna.Framework.Graphics;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace DangerousD.GameCore.GameObjects.MapObjects
|
|
||||||
{
|
|
||||||
internal class TestAnimationDeath : Entity
|
|
||||||
{
|
|
||||||
protected override GraphicsComponent GraphicsComponent { get; } = new(new List<string> { "death1", "deathbear" },"death1");
|
|
||||||
|
|
||||||
public TestAnimationDeath(Vector2 position) : base(position)
|
|
||||||
{
|
|
||||||
Width =512;
|
|
||||||
Height = 512;
|
|
||||||
|
|
||||||
GraphicsComponent.StartAnimation("deathbear");
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
12
DangerousD/GameCore/GameObjects/MapObjects/Tile.cs
Normal file
12
DangerousD/GameCore/GameObjects/MapObjects/Tile.cs
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
using DangerousD.GameCore.Graphics;
|
||||||
|
using Microsoft.Xna.Framework;
|
||||||
|
|
||||||
|
namespace DangerousD.GameCore.GameObjects.MapObjects;
|
||||||
|
|
||||||
|
public class Tile : MapObject
|
||||||
|
{
|
||||||
|
public override bool IsColliderOn { get; protected set; } = false;
|
||||||
|
public Tile(Vector2 position, Vector2 size, Rectangle sourceRectangle) : base(position, size, sourceRectangle)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
|
@ -164,8 +164,9 @@ namespace DangerousD.GameCore.Graphics
|
||||||
scale = destinationRectangle.Width / sourceRectangle.Width;
|
scale = destinationRectangle.Width / sourceRectangle.Width;
|
||||||
destinationRectangle.Height = (int)(sourceRectangle.Height * scale);
|
destinationRectangle.Height = (int)(sourceRectangle.Height * scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
destinationRectangle.X -= CameraPosition.X;
|
||||||
|
destinationRectangle.Y -= CameraPosition.Y;
|
||||||
_spriteBatch.Draw(texture,
|
_spriteBatch.Draw(texture,
|
||||||
destinationRectangle, sourceRectangle, Color.White);
|
destinationRectangle, sourceRectangle, Color.White);
|
||||||
}
|
}
|
||||||
|
@ -187,6 +188,8 @@ namespace DangerousD.GameCore.Graphics
|
||||||
destinationRectangle.Height = (int)(sourceRectangle.Height * scale);
|
destinationRectangle.Height = (int)(sourceRectangle.Height * scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
destinationRectangle.X -= CameraPosition.X;
|
||||||
|
destinationRectangle.Y -= CameraPosition.Y;
|
||||||
|
|
||||||
_spriteBatch.Draw(texture,
|
_spriteBatch.Draw(texture,
|
||||||
destinationRectangle, sourceRectangle, Color.White);
|
destinationRectangle, sourceRectangle, Color.White);
|
||||||
|
@ -215,5 +218,6 @@ namespace DangerousD.GameCore.Graphics
|
||||||
interval = lastInterval;
|
interval = lastInterval;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public static Point CameraPosition = new Point(0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
namespace DangerousD.GameCore.Levels
|
|
||||||
{
|
|
||||||
interface ILevel
|
|
||||||
{
|
|
||||||
void InitLevel();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,36 +0,0 @@
|
||||||
using DangerousD.GameCore.GameObjects.LivingEntities;
|
|
||||||
using DangerousD.GameCore.GameObjects.MapObjects;
|
|
||||||
using Microsoft.Xna.Framework;
|
|
||||||
using DangerousD.GameCore.GameObjects.LivingEntities.Monsters;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace DangerousD.GameCore.Levels
|
|
||||||
{
|
|
||||||
public class Level1 : ILevel
|
|
||||||
{
|
|
||||||
public void InitLevel()
|
|
||||||
{
|
|
||||||
|
|
||||||
new Player(new Vector2(350,0));
|
|
||||||
var Zombie = new Zombie(new Vector2(100, 128));
|
|
||||||
|
|
||||||
//var Frank = new Frank(new Vector2(384, 128));
|
|
||||||
//var Spider = new Spider(new Vector2(112, 0));
|
|
||||||
//var FlameSkull = new FlameSkull(new Vector2(512, 0));
|
|
||||||
//var Werewolf = new Werewolf(new Vector2(640, 0));
|
|
||||||
//var Ghost = new Ghost(new Vector2(730, 0));
|
|
||||||
//var FrankBalls = new FrankBalls(new Vector2(Frank.Pos.X, Frank.Pos.Y));
|
|
||||||
//var SilasHand = new SilasHands(new Vector2(200,64));
|
|
||||||
//var SilasMaster = new SilasMaster(new Vector2(400, 64));
|
|
||||||
|
|
||||||
var HunchMan = new Hunchman(new Vector2(300, 100));
|
|
||||||
|
|
||||||
new GrassBlock(new Vector2(0, 224));
|
|
||||||
for (int i = 0; i < 50; i++)
|
|
||||||
{
|
|
||||||
new GrassBlock(new Vector2(i*32, 256));
|
|
||||||
}
|
|
||||||
new GrassBlock(new Vector2(500, 224));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -31,7 +31,7 @@ namespace DangerousD.GameCore
|
||||||
public Point inGameResolution = new Point(800, 480);
|
public Point inGameResolution = new Point(800, 480);
|
||||||
private RenderTarget2D renderTarget;
|
private RenderTarget2D renderTarget;
|
||||||
|
|
||||||
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 InputManager InputManager { get; private set; } = new InputManager();
|
public InputManager InputManager { get; private set; } = new InputManager();
|
||||||
|
@ -39,9 +39,9 @@ namespace DangerousD.GameCore
|
||||||
public SettingsManager SettingsManager { get; private set; } = new SettingsManager();
|
public SettingsManager SettingsManager { get; private set; } = new SettingsManager();
|
||||||
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;
|
||||||
TargetElapsedTime = TimeSpan.FromMilliseconds(1000 / 30);
|
TargetElapsedTime = TimeSpan.FromMilliseconds(1000 / 30);
|
||||||
|
|
||||||
|
@ -65,9 +65,9 @@ namespace DangerousD.GameCore
|
||||||
protected override void Initialize()
|
protected override void Initialize()
|
||||||
{
|
{
|
||||||
AnimationBuilder.LoadAnimations();
|
AnimationBuilder.LoadAnimations();
|
||||||
MenuGUI.Initialize(GraphicsDevice);
|
MenuGUI.Initialize();
|
||||||
LoginGUI.Initialize(GraphicsDevice);
|
LoginGUI.Initialize();
|
||||||
LobbyGUI.Initialize(GraphicsDevice);
|
LobbyGUI.Initialize();
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ namespace DangerousD.GameCore
|
||||||
case GameState.Lobby:
|
case GameState.Lobby:
|
||||||
break;
|
break;
|
||||||
case GameState.Game:
|
case GameState.Game:
|
||||||
GameManager.mapManager.LoadLevel("");
|
GameManager.mapManager.LoadLevel("lvl");
|
||||||
break;
|
break;
|
||||||
case GameState.GameOver:
|
case GameState.GameOver:
|
||||||
break;
|
break;
|
||||||
|
@ -174,30 +174,32 @@ namespace DangerousD.GameCore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void NetworkSync(NetworkTask networkTask)
|
public void NetworkSync(List<NetworkTask> networkTasks)
|
||||||
{
|
{
|
||||||
//TODO
|
foreach (NetworkTask networkTask in networkTasks)
|
||||||
return;
|
|
||||||
switch (networkTask.operation)
|
|
||||||
{
|
{
|
||||||
case NetworkTaskOperationEnum.TakeDamage:
|
switch (networkTask.operation)
|
||||||
break;
|
{
|
||||||
case NetworkTaskOperationEnum.SendSound:
|
case NetworkTaskOperationEnum.TakeDamage:
|
||||||
SoundManager.StartSound(networkTask.name, networkTask.position, GameManager.GetPlayer1.Pos);
|
break;
|
||||||
break;
|
case NetworkTaskOperationEnum.SendSound:
|
||||||
case NetworkTaskOperationEnum.CreateEntity:
|
SoundManager.StartSound(networkTask.name, networkTask.position, GameManager.GetPlayer1.Pos);
|
||||||
break;
|
break;
|
||||||
case NetworkTaskOperationEnum.SendPosition:
|
case NetworkTaskOperationEnum.CreateEntity:
|
||||||
break;
|
break;
|
||||||
case NetworkTaskOperationEnum.ChangeState:
|
case NetworkTaskOperationEnum.SendPosition:
|
||||||
break;
|
break;
|
||||||
case NetworkTaskOperationEnum.ConnectToHost:
|
case NetworkTaskOperationEnum.ChangeState:
|
||||||
break;
|
break;
|
||||||
case NetworkTaskOperationEnum.GetClientPlayerId:
|
case NetworkTaskOperationEnum.ConnectToHost:
|
||||||
break;
|
break;
|
||||||
default:
|
case NetworkTaskOperationEnum.GetClientPlayerId:
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
public void SetMultiplayerState(MultiPlayerStatus multiPlayerStatus)
|
public void SetMultiplayerState(MultiPlayerStatus multiPlayerStatus)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,51 +7,64 @@ 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
|
||||||
{
|
{
|
||||||
public class GameManager
|
public class GameManager
|
||||||
{
|
{
|
||||||
public List<GameObject> GetAllGameObjects { get; private set; }
|
public List<GameObject> GetAllGameObjects { get; private set; }
|
||||||
|
|
||||||
public List<LivingEntity> livingEntities;
|
public List<LivingEntity> livingEntities;
|
||||||
public List<Entity> entities;
|
public List<Entity> entities;
|
||||||
public List<MapObject> mapObjects;
|
public List<MapObject> mapObjects;
|
||||||
|
public List<MapObject> BackgroundObjects;
|
||||||
|
public List<GameObject> others;
|
||||||
public MapManager mapManager;
|
public MapManager mapManager;
|
||||||
public PhysicsManager physicsManager;
|
public PhysicsManager physicsManager;
|
||||||
public List<Player> players;
|
public List<Player> players;
|
||||||
public List<GameObject> otherObjects = new();
|
public List<GameObject> otherObjects = new();
|
||||||
|
|
||||||
public Player GetPlayer1 { get; private set; }
|
public Player GetPlayer1 { get; private set; }
|
||||||
public GameManager()
|
public GameManager()
|
||||||
{
|
{
|
||||||
|
others = new List<GameObject>();
|
||||||
GetAllGameObjects = new List<GameObject>();
|
GetAllGameObjects = new List<GameObject>();
|
||||||
livingEntities = new List<LivingEntity>();
|
livingEntities = new List<LivingEntity>();
|
||||||
mapObjects = new List<MapObject>();
|
mapObjects = new List<MapObject>();
|
||||||
|
BackgroundObjects = new List<MapObject>();
|
||||||
entities = new List<Entity>();
|
entities = new List<Entity>();
|
||||||
players = new List<Player>();
|
players = new List<Player>();
|
||||||
mapManager = new MapManager();
|
mapManager = new MapManager(1);
|
||||||
physicsManager = new PhysicsManager();
|
physicsManager = new PhysicsManager();
|
||||||
mapManager.Init();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
internal void Register(GameObject gameObject)
|
internal void Register(GameObject gameObject)
|
||||||
{
|
{
|
||||||
if (gameObject is Player)
|
GetAllGameObjects.Add(gameObject);
|
||||||
|
if (gameObject is Player objPl)
|
||||||
{
|
{
|
||||||
livingEntities.Add(gameObject as LivingEntity);
|
livingEntities.Add(gameObject as LivingEntity);
|
||||||
players.Add(gameObject as Player);
|
players.Add(objPl);
|
||||||
GetPlayer1 = players[0];
|
GetPlayer1 = players[0];
|
||||||
}
|
}
|
||||||
else if (gameObject is LivingEntity)
|
else if (gameObject is LivingEntity objLE)
|
||||||
{
|
{
|
||||||
livingEntities.Add(gameObject as LivingEntity);
|
livingEntities.Add(objLE);
|
||||||
}
|
}
|
||||||
else if (gameObject is Entity)
|
else if (gameObject is Entity objE)
|
||||||
{
|
{
|
||||||
entities.Add(gameObject as Entity);
|
entities.Add(objE);
|
||||||
}
|
}
|
||||||
else if (gameObject is MapObject)
|
else if (gameObject is MapObject obj)
|
||||||
{
|
{
|
||||||
mapObjects.Add(gameObject as MapObject);
|
if (obj.IsColliderOn)
|
||||||
|
mapObjects.Add(obj);
|
||||||
|
else
|
||||||
|
BackgroundObjects.Add(obj);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -61,6 +74,8 @@ namespace DangerousD.GameCore
|
||||||
|
|
||||||
public void Draw(SpriteBatch _spriteBatch)
|
public void Draw(SpriteBatch _spriteBatch)
|
||||||
{
|
{
|
||||||
|
foreach (var item in BackgroundObjects)
|
||||||
|
item.Draw(_spriteBatch);
|
||||||
foreach (var item in mapObjects)
|
foreach (var item in mapObjects)
|
||||||
item.Draw(_spriteBatch);
|
item.Draw(_spriteBatch);
|
||||||
foreach (var item in entities)
|
foreach (var item in entities)
|
||||||
|
@ -73,12 +88,15 @@ namespace DangerousD.GameCore
|
||||||
|
|
||||||
public void Update(GameTime gameTime)
|
public void Update(GameTime gameTime)
|
||||||
{
|
{
|
||||||
|
foreach (var item in BackgroundObjects)
|
||||||
|
item.Update(gameTime);
|
||||||
foreach (var item in mapObjects)
|
foreach (var item in mapObjects)
|
||||||
item.Update(gameTime);
|
item.Update(gameTime);
|
||||||
foreach (var item in entities)
|
foreach (var item in entities)
|
||||||
item.Update(gameTime);
|
item.Update(gameTime);
|
||||||
foreach (var item in livingEntities)
|
|
||||||
item.Update(gameTime);
|
for (int i = 0; i < livingEntities.Count; i++)
|
||||||
|
livingEntities[i].Update(gameTime);
|
||||||
foreach (var item in otherObjects)
|
foreach (var item in otherObjects)
|
||||||
item.Update(gameTime);
|
item.Update(gameTime);
|
||||||
|
|
||||||
|
@ -87,4 +105,4 @@ namespace DangerousD.GameCore
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,26 +1,116 @@
|
||||||
using DangerousD.GameCore.GameObjects;
|
using System;
|
||||||
using DangerousD.GameCore.Graphics;
|
|
||||||
using DangerousD.GameCore.Levels;
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Security;
|
using System.Xml;
|
||||||
using System.Text;
|
using DangerousD.GameCore.GameObjects.MapObjects;
|
||||||
using System.Threading.Tasks;
|
using Microsoft.Xna.Framework;
|
||||||
|
using Microsoft.Xna.Framework.Graphics;
|
||||||
|
using System.Xml.Serialization;
|
||||||
|
using DangerousD.GameCore.GameObjects;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
namespace DangerousD.GameCore.Managers
|
namespace DangerousD.GameCore.Managers
|
||||||
{
|
{
|
||||||
public class MapManager
|
public class MapManager
|
||||||
{
|
{
|
||||||
ILevel Level;
|
private int _columns;
|
||||||
public void Init()
|
private int _scale;
|
||||||
|
|
||||||
|
public MapManager(int scale)
|
||||||
{
|
{
|
||||||
Level = new Level1();
|
_scale = scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Level
|
//Level
|
||||||
public void LoadLevel(string level)
|
public void LoadLevel(string level)
|
||||||
{
|
{
|
||||||
Level.InitLevel();
|
LoadTilesData();
|
||||||
|
|
||||||
|
XmlDocument xml = new();
|
||||||
|
xml.Load($"../../../Content/{level}.tmx");
|
||||||
|
Vector2 tileSize = new(int.Parse(xml.DocumentElement.Attributes["tilewidth"].Value),
|
||||||
|
int.Parse(xml.DocumentElement.Attributes["tileheight"].Value));
|
||||||
|
//tileSize *= _scale;
|
||||||
|
|
||||||
|
foreach (XmlNode layer in xml.DocumentElement.SelectNodes("layer"))
|
||||||
|
{
|
||||||
|
InstantiateTiles(layer, tileSize);
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (XmlNode layer in xml.DocumentElement.SelectNodes("objectgroup"))
|
||||||
|
{
|
||||||
|
InstantiateEntities(layer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void InstantiateTiles(XmlNode layer, Vector2 tileSize)
|
||||||
|
{
|
||||||
|
string tileType = layer.Attributes["class"].Value;
|
||||||
|
float offsetX = layer.Attributes["offsetx"] is not null ? float.Parse(layer.Attributes["offsetx"].Value, CultureInfo.InvariantCulture) : 0;
|
||||||
|
float offsetY = layer.Attributes["offsety"] is not null ? float.Parse(layer.Attributes["offsety"].Value, CultureInfo.InvariantCulture) : 0;
|
||||||
|
|
||||||
|
|
||||||
|
Debug.Write(layer.SelectNodes("data/chunk").Count);
|
||||||
|
foreach (XmlNode chunk in layer.SelectNodes("data/chunk"))
|
||||||
|
{
|
||||||
|
int chunkW = int.Parse(chunk.Attributes["width"].Value);
|
||||||
|
int chunkX = int.Parse(chunk.Attributes["x"].Value);
|
||||||
|
int chunkY = int.Parse(chunk.Attributes["y"].Value);
|
||||||
|
|
||||||
|
|
||||||
|
List<int> tiles = chunk.InnerText.Split(',').Select(int.Parse).ToList();
|
||||||
|
for (int i = 0; i < tiles.Count; i++)
|
||||||
|
{
|
||||||
|
if (tiles[i] != 0)
|
||||||
|
{
|
||||||
|
Vector2 pos = new(((chunkX+ i % chunkW) * tileSize.X + offsetX) * _scale,
|
||||||
|
((chunkY + i / chunkW) * tileSize.Y + offsetY) * _scale);
|
||||||
|
//pos *= _scale;
|
||||||
|
Rectangle sourceRect = new(new Point((tiles[i] -1) % _columns, (tiles[i] -1) / _columns) * tileSize.ToPoint(), tileSize.ToPoint());
|
||||||
|
Type type = Type.GetType($"DangerousD.GameCore.GameObjects.MapObjects.{tileType}");
|
||||||
|
Activator.CreateInstance(type, pos, tileSize * _scale, sourceRect);
|
||||||
|
|
||||||
|
/*switch (tileType)
|
||||||
|
{
|
||||||
|
case "collidable":
|
||||||
|
new StopTile(pos, tileSize * _scale, sourceRect);
|
||||||
|
break;
|
||||||
|
case "platform":
|
||||||
|
new Platform(pos, tileSize * _scale, sourceRect);
|
||||||
|
break;
|
||||||
|
case "non_collidable":
|
||||||
|
new Tile(pos, tileSize * _scale, sourceRect);
|
||||||
|
break;
|
||||||
|
}*/
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LoadTilesData()
|
||||||
|
{
|
||||||
|
XmlDocument xml = new();
|
||||||
|
xml.Load($"../../../Content/map.tsx");
|
||||||
|
XmlNode root = xml.DocumentElement;
|
||||||
|
|
||||||
|
_columns = int.Parse(root.Attributes["columns"].Value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void InstantiateEntities(XmlNode group)
|
||||||
|
{
|
||||||
|
string entityType = group.Attributes["class"].Value;
|
||||||
|
float offsetX = group.Attributes["offsetx"] is not null ? float.Parse(group.Attributes["offsetx"].Value) : 0;
|
||||||
|
float offsetY = group.Attributes["offsety"] is not null ? float.Parse(group.Attributes["offsety"].Value) : 0;
|
||||||
|
foreach (XmlNode entity in group.ChildNodes)
|
||||||
|
{
|
||||||
|
Type type = Type.GetType($"DangerousD.GameCore.GameObjects.{entityType}");
|
||||||
|
Entity inst = (Entity)Activator.CreateInstance(type, new Vector2(float.Parse(entity.Attributes["x"].Value, CultureInfo.InvariantCulture) + offsetX, float.Parse(entity.Attributes["y"].Value, CultureInfo.InvariantCulture) + offsetY) * _scale);
|
||||||
|
inst.SetPosition(new Vector2(inst.Pos.X, inst.Pos.Y - inst.Height));
|
||||||
|
inst.Height *= _scale;
|
||||||
|
inst.Width *= _scale;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,33 +36,24 @@ namespace DangerousD.GameCore.Managers
|
||||||
public void CheckCollisions(List<LivingEntity> livingEntities,
|
public void CheckCollisions(List<LivingEntity> livingEntities,
|
||||||
List<MapObject> mapObjects)
|
List<MapObject> mapObjects)
|
||||||
{
|
{
|
||||||
|
LivingEntity currentEntity;
|
||||||
|
Rectangle oldRect;
|
||||||
for (int i = 0; i < livingEntities.Count; i++)
|
for (int i = 0; i < livingEntities.Count; i++)
|
||||||
{
|
{
|
||||||
var currentEntity = livingEntities[i];
|
currentEntity = livingEntities[i];
|
||||||
Rectangle oldRect = currentEntity.Rectangle;
|
oldRect = currentEntity.Rectangle;
|
||||||
bool isXNormalise = true;
|
bool isXNormalise = true;
|
||||||
bool isYNormalise = true;
|
bool isYNormalise = true;
|
||||||
|
|
||||||
oldRect.Offset((int)currentEntity.velocity.X / 2, 0);
|
oldRect.Offset((int)currentEntity.velocity.X, 0);
|
||||||
for (int j = 0; j < mapObjects.Count; j++)
|
for (int j = 0; j < mapObjects.Count; j++)
|
||||||
{
|
{
|
||||||
if (oldRect.Intersects(mapObjects[j].Rectangle))
|
if (Math.Abs(mapObjects[i].Pos.X - currentEntity.Pos.X) < 550 && Math.Abs(mapObjects[i].Pos.Y - currentEntity.Pos.Y) < 550)
|
||||||
{
|
|
||||||
isXNormalise = false;
|
|
||||||
oldRect.Offset(-(int)currentEntity.velocity.X / 2, 0);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
if (isXNormalise)
|
|
||||||
{
|
|
||||||
oldRect.Offset((int)currentEntity.velocity.X / 2, 0);
|
|
||||||
for (int j = 0; j < mapObjects.Count; j++)
|
|
||||||
{
|
{
|
||||||
if (oldRect.Intersects(mapObjects[j].Rectangle))
|
if (oldRect.Intersects(mapObjects[j].Rectangle))
|
||||||
{
|
{
|
||||||
isXNormalise = false;
|
isXNormalise = false;
|
||||||
oldRect.Offset(-(int)currentEntity.velocity.X / 2, 0);
|
oldRect.Offset(-(int)currentEntity.velocity.X, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,29 +62,17 @@ namespace DangerousD.GameCore.Managers
|
||||||
currentEntity.velocity.X = 0;
|
currentEntity.velocity.X = 0;
|
||||||
|
|
||||||
|
|
||||||
oldRect.Offset(0, (int)currentEntity.velocity.Y/2);
|
oldRect.Offset(0, (int)currentEntity.velocity.Y);
|
||||||
for (int j = 0; j < mapObjects.Count; j++)
|
for (int j = 0; j < mapObjects.Count; j++)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (oldRect.Intersects(mapObjects[j].Rectangle))
|
if (oldRect.Intersects(mapObjects[j].Rectangle))
|
||||||
{
|
{
|
||||||
isYNormalise = false;
|
isYNormalise = false;
|
||||||
oldRect.Offset(0, -(int)currentEntity.velocity.Y / 2);
|
oldRect.Offset(0, -(int)currentEntity.velocity.Y);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (isYNormalise)
|
|
||||||
{
|
|
||||||
oldRect.Offset(0, (int)currentEntity.velocity.Y / 2);
|
|
||||||
for (int j = 0; j < mapObjects.Count; j++)
|
|
||||||
{
|
|
||||||
if (oldRect.Intersects(mapObjects[j].Rectangle))
|
|
||||||
{
|
|
||||||
isYNormalise = false;
|
|
||||||
oldRect.Offset(0, -(int)currentEntity.velocity.Y / 2);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (!isYNormalise)
|
if (!isYNormalise)
|
||||||
currentEntity.velocity.Y = 0;
|
currentEntity.velocity.Y = 0;
|
||||||
currentEntity.SetPosition(new Vector2(oldRect.X, oldRect.Y));
|
currentEntity.SetPosition(new Vector2(oldRect.X, oldRect.Y));
|
||||||
|
@ -177,6 +156,7 @@ namespace DangerousD.GameCore.Managers
|
||||||
}
|
}
|
||||||
return gameObject;
|
return gameObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GameObject RayCast(LivingEntity entity1, Vector2 targetCast)
|
public GameObject RayCast(LivingEntity entity1, Vector2 targetCast)
|
||||||
{
|
{
|
||||||
Rectangle rectangle;
|
Rectangle rectangle;
|
||||||
|
@ -217,7 +197,6 @@ namespace DangerousD.GameCore.Managers
|
||||||
}
|
}
|
||||||
return gameObject;
|
return gameObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<GameObject> CheckRectangle(Rectangle rectangle, Type type)
|
public List<GameObject> CheckRectangle(Rectangle rectangle, Type type)
|
||||||
{
|
{
|
||||||
var gameObjects = AppManager.Instance.GameManager.GetAllGameObjects;
|
var gameObjects = AppManager.Instance.GameManager.GetAllGameObjects;
|
||||||
|
@ -234,5 +213,20 @@ namespace DangerousD.GameCore.Managers
|
||||||
}
|
}
|
||||||
return intersected;
|
return intersected;
|
||||||
}
|
}
|
||||||
|
public List<GameObject> CheckRectangle(Rectangle rectangle)
|
||||||
|
{
|
||||||
|
var gameObjects = AppManager.Instance.GameManager.mapObjects;
|
||||||
|
List<GameObject> intersected = new List<GameObject>();
|
||||||
|
for (int i = 0; i < gameObjects.Count; i++)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (gameObjects[i].Rectangle.Intersects(rectangle) && gameObjects[i].IsColliderOn)
|
||||||
|
{
|
||||||
|
intersected.Add(gameObjects[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return intersected;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -19,12 +19,23 @@ namespace DangerousD.GameCore
|
||||||
|
|
||||||
public void LoadSounds() // метод для загрузки звуков из папки
|
public void LoadSounds() // метод для загрузки звуков из папки
|
||||||
{
|
{
|
||||||
string[] soundFiles = Directory.GetFiles("../../../Content").Where(x=>x.EndsWith("mp3")).Select(x=>x.Split("\\").Last().Replace(".mp3", "")).ToArray();// папка со звуками там где exe
|
var k = Directory.GetFiles("../../..//Content").Where(x => x.EndsWith("mp3"));
|
||||||
foreach (var soundFile in soundFiles)
|
|
||||||
|
if (k.Count() > 0)
|
||||||
{
|
{
|
||||||
Sounds.Add(soundFile, AppManager.Instance.Content.Load<SoundEffect>(soundFile).CreateInstance());
|
|
||||||
|
string[] soundFiles = k.Select(x => x.Split("\\").Last().Split("/").Last().Replace(".mp3", "")).ToArray();// папка со звуками там где exe
|
||||||
|
foreach (var soundFile in soundFiles)
|
||||||
|
{
|
||||||
|
Sounds.Add(soundFile, AppManager.Instance.Content.Load<SoundEffect>(soundFile).CreateInstance());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (k.Count()>0)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void StartAmbientSound(string soundName) // запустить звук у которого нет позиции
|
public void StartAmbientSound(string soundName) // запустить звук у которого нет позиции
|
||||||
|
|
|
@ -10,7 +10,7 @@ namespace DangerousD.GameCore.Network
|
||||||
{
|
{
|
||||||
public class NetworkManager
|
public class NetworkManager
|
||||||
{
|
{
|
||||||
public delegate void ReceivingHandler(NetworkTask networkTask);
|
public delegate void ReceivingHandler(List<NetworkTask> networkTask);
|
||||||
|
|
||||||
public event ReceivingHandler GetReceivingMessages;
|
public event ReceivingHandler GetReceivingMessages;
|
||||||
|
|
||||||
|
@ -89,8 +89,6 @@ namespace DangerousD.GameCore.Network
|
||||||
}
|
}
|
||||||
public void SendMsg(NetworkTask networkTask)
|
public void SendMsg(NetworkTask networkTask)
|
||||||
{
|
{
|
||||||
//TODO
|
|
||||||
return;
|
|
||||||
byte[] Data = Encoding.Unicode.GetBytes(JsonConvert.SerializeObject(networkTask));
|
byte[] Data = Encoding.Unicode.GetBytes(JsonConvert.SerializeObject(networkTask));
|
||||||
int count = Data.Length;
|
int count = Data.Length;
|
||||||
if (state == "Host")
|
if (state == "Host")
|
||||||
|
@ -146,7 +144,7 @@ namespace DangerousD.GameCore.Network
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
GetReceivingMessages(JsonConvert.DeserializeObject<NetworkTask>(so.sb.ToString()));
|
GetReceivingMessages(JsonConvert.DeserializeObject<List<NetworkTask>>(so.sb.ToString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
|
|
6
NuGet.config
Normal file
6
NuGet.config
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<packageSources>
|
||||||
|
<add key="MonoGame.Extended" value="https://www.myget.org/F/lithiumtoast/api/v3/index.json" />
|
||||||
|
</packageSources>
|
||||||
|
</configuration>
|
Loading…
Add table
Reference in a new issue