Sprites
This commit is contained in:
parent
85686e83c0
commit
da002473de
26 changed files with 24 additions and 13 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.vs/Pacman/v17/.futdcache.v2
Normal file
BIN
.vs/Pacman/v17/.futdcache.v2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7
.vs/VSWorkspaceState.json
Normal file
7
.vs/VSWorkspaceState.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"ExpandedNodes": [
|
||||
""
|
||||
],
|
||||
"SelectedNode": "\\Pacman.sln",
|
||||
"PreviewInSolutionExplorer": false
|
||||
}
|
BIN
.vs/slnx.sqlite
BIN
.vs/slnx.sqlite
Binary file not shown.
|
@ -75,20 +75,24 @@ namespace Pacman.Classes
|
|||
switch (map[i, j])
|
||||
{
|
||||
case "┃":
|
||||
pos = new Point(95, 240);
|
||||
size = new Point(25, 60);
|
||||
pos = new Point(36, 96);
|
||||
size = new Point(12, 24);
|
||||
break;
|
||||
case "━":
|
||||
pos = new Point(0, 274);
|
||||
size = new Point(60, 26);
|
||||
pos = new Point(0, 98);
|
||||
size = new Point(24, 12);
|
||||
break;
|
||||
case ".":
|
||||
pos = new Point(510, 0);
|
||||
size = new Point(30, 30);
|
||||
break;
|
||||
case "┏":
|
||||
pos = new Point(241, 241);
|
||||
size = new Point(61, 57);
|
||||
pos = new Point(98, 98);
|
||||
size = new Point(24, 26);
|
||||
break;
|
||||
case "┓":
|
||||
pos = new Point(325, 241);
|
||||
size = new Point(51, 57);
|
||||
break;
|
||||
default:
|
||||
pos = new Point(0, 0);
|
||||
|
@ -96,7 +100,7 @@ namespace Pacman.Classes
|
|||
break;
|
||||
}
|
||||
Rectangle sourceRect = new Rectangle(pos, size);
|
||||
Rectangle destinationRect = new Rectangle(new Point(j * 24, i * 24), new Point(24, 24));
|
||||
Rectangle destinationRect = new Rectangle(new Point(j * 24, i * 24), size);
|
||||
spriteBatch.Draw(texture,
|
||||
destinationRect,
|
||||
sourceRect,
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -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",24617,2304085,0.304181
|
||||
"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
|
||||
|
|
|
@ -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",24617,2304085,0.5647778
|
||||
"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
|
||||
|
|
|
@ -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-29T00:11:51.2570572+03:00</SourceTime>
|
||||
<SourceTime>2022-06-29T14:41:32.4975861+03:00</SourceTime>
|
||||
<DestFile>C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/bin/Windows/Content/sprites.xnb</DestFile>
|
||||
<DestTime>2022-06-29T00:11:52.956052+03:00</DestTime>
|
||||
<DestTime>2022-06-29T14:41:47.7571488+03:00</DestTime>
|
||||
<Importer>TextureImporter</Importer>
|
||||
<ImporterTime>2020-08-10T16:17:54+03:00</ImporterTime>
|
||||
<Processor>TextureProcessor</Processor>
|
||||
|
|
|
@ -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-29T00:11:51.2570572+03:00</SourceTime>
|
||||
<SourceTime>2022-06-29T14:41:32.4975861+03:00</SourceTime>
|
||||
<DestFile>C:/Users/Semejkin_AV/Documents/Github_repos/Pacman/Pacman/Content/bin/Windows/sprites.xnb</DestFile>
|
||||
<DestTime>2022-06-29T00:12:00.7044454+03:00</DestTime>
|
||||
<DestTime>2022-06-29T14:41:40.1476527+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: 24 KiB After Width: | Height: | Size: 4.8 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue