This commit is contained in:
Mootfrost777 2022-06-29 15:47:29 +03:00
parent da002473de
commit 4c01455959
25 changed files with 25 additions and 11 deletions

Binary file not shown.

View file

@ -91,20 +91,33 @@ namespace Pacman.Classes
size = new Point(24, 26);
break;
case "┓":
pos = new Point(325, 241);
size = new Point(51, 57);
pos = new Point(132, 98);
size = new Point(12, 26);
break;
case "┗":
pos = new Point(47, 108);
size = new Point(24, 12);
break;
case "┛":
pos = new Point(84, 113);
size = new Point(16, 7);
break;
default:
pos = new Point(0, 0);
size = new Point(0, 0);
break;
}
// Это костыль pro max для нормальной карты, не использовать!!!!!!!
Rectangle sourceRect = new Rectangle(pos, size);
Rectangle destinationRect = new Rectangle(new Point(j * 24, i * 24), size);
spriteBatch.Draw(texture,
destinationRect,
sourceRect,
Color.White);
destinationRect,
sourceRect,
Color.White);
// Это ректэнгл объекта для колизии
Rectangle boundingBox = new Rectangle(new Point(j * 24, i * 24), new Point(24, 24));
}
}

View file

@ -1,2 +1,2 @@
Source File,Dest File,Processor Type,Content Type,Source File Size,Dest File Size,Build Seconds
"C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/sprites.png","C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/bin/Windows/sprites.xnb","TextureProcessor","Texture2DContent",4962,368725,0.2058889
"C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/sprites.png","C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/bin/Windows/sprites.xnb","TextureProcessor","Texture2DContent",5012,368725,0.1996307

View file

@ -1,2 +1,2 @@
Source File,Dest File,Processor Type,Content Type,Source File Size,Dest File Size,Build Seconds
"C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/sprites.png","C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/bin/Windows/Content/sprites.xnb","TextureProcessor","Texture2DContent",4962,368725,0.1954538
"C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/sprites.png","C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/bin/Windows/Content/sprites.xnb","TextureProcessor","Texture2DContent",5012,368725,0.2415895

View file

@ -1,9 +1,9 @@
<?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/Documents/Github_repos/Pacman/Pacman/Content/sprites.png</SourceFile>
<SourceTime>2022-06-29T14:41:32.4975861+03:00</SourceTime>
<SourceTime>2022-06-29T15:43:37.3648634+03:00</SourceTime>
<DestFile>C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/bin/Windows/Content/sprites.xnb</DestFile>
<DestTime>2022-06-29T14:41:47.7571488+03:00</DestTime>
<DestTime>2022-06-29T15:45:48.8560002+03:00</DestTime>
<Importer>TextureImporter</Importer>
<ImporterTime>2020-08-10T16:17:54+03:00</ImporterTime>
<Processor>TextureProcessor</Processor>

View file

@ -1,9 +1,9 @@
<?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/Documents/Github_repos/Pacman/Pacman/Content/sprites.png</SourceFile>
<SourceTime>2022-06-29T14:41:32.4975861+03:00</SourceTime>
<SourceTime>2022-06-29T15:40:31.6851922+03:00</SourceTime>
<DestFile>C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/bin/Windows/sprites.xnb</DestFile>
<DestTime>2022-06-29T14:41:40.1476527+03:00</DestTime>
<DestTime>2022-06-29T15:40:36.0296157+03:00</DestTime>
<Importer>TextureImporter</Importer>
<ImporterTime>2020-08-10T16:17:54+03:00</ImporterTime>
<Processor>TextureProcessor</Processor>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View file

@ -57,6 +57,7 @@ namespace Pacman
// TODO: Add your drawing code here
_spriteBatch.Begin();
_map.Draw(_spriteBatch);
GraphicsDevice.Clear(Color.Black);
_spriteBatch.End();
base.Draw(gameTime);