Skip to content

Commit 6450f23

Browse files
authoredMar 26, 2019
new features
1 parent 9e11805 commit 6450f23

19 files changed

+72
-26
lines changed
 

‎DVDLogo/Content/Logo.png

406 Bytes
Loading
16.6 KB
Binary file not shown.

‎DVDLogo/Content/obj/Windows/Content/Logo.mgcontent

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<PipelineBuildEvent xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
33
<SourceFile>D:/Programs/DVDLogo/DVDLogo/Content/Logo.png</SourceFile>
4-
<SourceTime>2019-03-21T18:13:30.7885593-07:00</SourceTime>
4+
<SourceTime>2019-03-25T21:54:37.4780574-07:00</SourceTime>
55
<DestFile>D:/Programs/DVDLogo/DVDLogo/Content/bin/Windows/Content/Logo.xnb</DestFile>
6-
<DestTime>2019-03-21T18:13:48.3332716-07:00</DestTime>
6+
<DestTime>2019-03-25T21:54:42.3791127-07:00</DestTime>
77
<Importer>TextureImporter</Importer>
88
<ImporterTime>2018-12-08T08:35:54-08:00</ImporterTime>
99
<Processor>TextureProcessor</Processor>

‎DVDLogo/DVDLogo.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<FileAlignment>512</FileAlignment>
1515
<MonoGamePlatform>Windows</MonoGamePlatform>
1616
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
17+
<IsWebBootstrapper>false</IsWebBootstrapper>
1718
<PublishUrl>C:\Users\roeep\Desktop\</PublishUrl>
1819
<Install>true</Install>
1920
<InstallFrom>Disk</InstallFrom>
@@ -24,9 +25,8 @@
2425
<UpdatePeriodically>false</UpdatePeriodically>
2526
<UpdateRequired>false</UpdateRequired>
2627
<MapFileExtensions>true</MapFileExtensions>
27-
<ApplicationRevision>0</ApplicationRevision>
28+
<ApplicationRevision>1</ApplicationRevision>
2829
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
29-
<IsWebBootstrapper>false</IsWebBootstrapper>
3030
<UseApplicationTrust>false</UseApplicationTrust>
3131
<PublishWizardCompleted>true</PublishWizardCompleted>
3232
<BootstrapperEnabled>true</BootstrapperEnabled>

‎DVDLogo/DVDLogo.csproj.user

+3
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@
1010
<FallbackCulture>en-US</FallbackCulture>
1111
<VerifyUploadedFiles>false</VerifyUploadedFiles>
1212
</PropertyGroup>
13+
<PropertyGroup>
14+
<EnableSecurityDebugging>false</EnableSecurityDebugging>
15+
</PropertyGroup>
1316
</Project>

‎DVDLogo/Game1.cs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class Game1 : Game
1818

1919
public Game1()
2020
{
21+
this.Window.AllowUserResizing = true;
2122
graphics = new GraphicsDeviceManager(this);
2223
Content.RootDirectory = "Content";
2324
}

‎DVDLogo/Logo.cs

+47-5
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,64 @@ class Logo : Sprite
2121
public Logo(Texture2D image, Vector2 pos, Color tint)
2222
: base(image, pos, tint)
2323
{
24-
//Scale = new Vector2(0.5f, 0.5f);
24+
Scale = new Vector2(1, 1);
2525
}
26-
int xspeed = 2;
27-
int yspeed = 2;
26+
27+
static float speed = 2;
28+
29+
float xspeed = speed;
30+
float yspeed = speed;
31+
32+
float scalex;
33+
float scaley;
34+
35+
bool negativeX = false;
36+
bool negativeY = false;
37+
38+
Random rnd = new Random();
2839

2940
public void Animate(Vector2 screen)
3041
{
42+
if (!negativeX)
43+
xspeed = 2 * (screen.X / 800f);
44+
else
45+
xspeed = -2 * (screen.X / 800f);
46+
47+
if (!negativeY)
48+
yspeed = 2 * (screen.X / 800f);
49+
else
50+
yspeed = -2 * (screen.X / 800f);
51+
52+
scalex = screen.X / 800f;
53+
scaley = screen.Y / 480f;
54+
55+
Scale = new Vector2(scalex, scaley);
56+
57+
//xspeed = xspeed * scalex;
58+
//yspeed = yspeed * scaley;
59+
3160
Position.X += xspeed;
3261
Position.Y += yspeed;
33-
if(Hitbox.Y + 60 >= screen.Y || Hitbox.Y <= 0)
62+
63+
if(Hitbox.X >= screen.X + 20 || Hitbox.X <= -10)
64+
{
65+
Position = new Vector2(20, 20);
66+
}
67+
if(Hitbox.Y >= screen.Y + 20 || Hitbox.Y <= -10)
68+
{
69+
Position = new Vector2(20, 20);
70+
}
71+
if (Hitbox.Y + (Scale.Y * 75 / Scale.Y * Scale.Y) >= screen.Y || Hitbox.Y <= 0)
3472
{
73+
Color = new Color(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256));
3574
yspeed = -yspeed;
75+
negativeY = !negativeY;
3676
}
37-
if(Hitbox.X + 130 >= screen.X || Hitbox.X <= 0)
77+
if(Hitbox.X + (Scale.X * 165 / Scale.X * Scale.X) >= screen.X || Hitbox.X <= 0)
3878
{
79+
Color = new Color(rnd.Next(0, 256), rnd.Next(0, 256), rnd.Next(0, 256));
3980
xspeed = -xspeed;
81+
negativeX = !negativeX;
4082
}
4183
}
4284
}

‎DVDLogo/Sprite.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public Sprite(Texture2D image, Vector2 pos, Color tint)
3333

3434
public virtual void Draw(SpriteBatch batch)
3535
{
36-
batch.Draw(Image, Position, Color);
36+
batch.Draw(Image, Position, null, Color, 0f, Vector2.Zero, Scale, SpriteEffects.None, 0f);
3737
}
3838
}
3939
}
16.6 KB
Binary file not shown.

‎DVDLogo/bin/Windows/x86/Debug/DVDLogo.application

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
3-
<assemblyIdentity name="DVDLogo.application" version="1.0.0.0" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" xmlns="urn:schemas-microsoft-com:asm.v1" />
3+
<assemblyIdentity name="DVDLogo.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" xmlns="urn:schemas-microsoft-com:asm.v1" />
44
<description asmv2:publisher="DVDLogo" asmv2:product="DVDLogo" xmlns="urn:schemas-microsoft-com:asm.v1" />
55
<deployment install="true" mapFileExtensions="true" />
66
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2">
77
<framework targetVersion="4.5" profile="Full" supportedRuntime="4.0.30319" />
88
</compatibleFrameworks>
99
<dependency>
1010
<dependentAssembly dependencyType="install" codebase="DVDLogo.exe.manifest" size="9847">
11-
<assemblyIdentity name="DVDLogo.exe" version="1.0.0.0" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
11+
<assemblyIdentity name="DVDLogo.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
1212
<hash>
1313
<dsig:Transforms>
1414
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
1515
</dsig:Transforms>
1616
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
17-
<dsig:DigestValue>YM8XDaNUmqNUy9/Nd3cwr0au09YTIs7pbvGfJwUvs/s=</dsig:DigestValue>
17+
<dsig:DigestValue>hTMP1nXjx/Qu51C6T46Bjm3wswvkB6x8uTKVAHxGqmY=</dsig:DigestValue>
1818
</hash>
1919
</dependentAssembly>
2020
</dependency>
1 KB
Binary file not shown.

‎DVDLogo/bin/Windows/x86/Debug/DVDLogo.exe.manifest

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
3-
<asmv1:assemblyIdentity name="DVDLogo.exe" version="1.0.0.0" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
3+
<asmv1:assemblyIdentity name="DVDLogo.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
44
<description asmv2:iconFile="Icon.ico" xmlns="urn:schemas-microsoft-com:asm.v1" />
55
<application />
66
<entryPoint>
@@ -31,14 +31,14 @@
3131
</dependentAssembly>
3232
</dependency>
3333
<dependency>
34-
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DVDLogo.exe" size="38880">
34+
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DVDLogo.exe" size="39904">
3535
<assemblyIdentity name="DVDLogo" version="1.0.0.0" language="neutral" processorArchitecture="x86" />
3636
<hash>
3737
<dsig:Transforms>
3838
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
3939
</dsig:Transforms>
4040
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
41-
<dsig:DigestValue>IuUWPvpJhDcRf3KlOnC2gc1NwJ9ZEMOAeAG5knIEU2k=</dsig:DigestValue>
41+
<dsig:DigestValue>aSWnpUoCnfD6Gv947H1Ym9CnxgaRhDNUTPaGDu3F2zg=</dsig:DigestValue>
4242
</hash>
4343
</dependentAssembly>
4444
</dependency>
@@ -138,13 +138,13 @@
138138
</hash>
139139
</dependentAssembly>
140140
</dependency>
141-
<file name="Content\Logo.xnb" size="35157">
141+
<file name="Content\Logo.xnb" size="52189">
142142
<hash>
143143
<dsig:Transforms>
144144
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
145145
</dsig:Transforms>
146146
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
147-
<dsig:DigestValue>kLzm9Hoe+kqV4OqLWUTvsRVBqimU5c7hxe4j3Q6X+z0=</dsig:DigestValue>
147+
<dsig:DigestValue>Pw2uWnXp9ZPPo2+4ixSlQ7VbNTWcsP7yeClQojlV1PE=</dsig:DigestValue>
148148
</hash>
149149
</file>
150150
<file name="Icon.ico" size="30222">
2 KB
Binary file not shown.
Binary file not shown.

‎DVDLogo/obj/x86/Debug/DVDLogo.application

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
3-
<assemblyIdentity name="DVDLogo.application" version="1.0.0.0" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" xmlns="urn:schemas-microsoft-com:asm.v1" />
3+
<assemblyIdentity name="DVDLogo.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" xmlns="urn:schemas-microsoft-com:asm.v1" />
44
<description asmv2:publisher="DVDLogo" asmv2:product="DVDLogo" xmlns="urn:schemas-microsoft-com:asm.v1" />
55
<deployment install="true" mapFileExtensions="true" />
66
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2">
77
<framework targetVersion="4.5" profile="Full" supportedRuntime="4.0.30319" />
88
</compatibleFrameworks>
99
<dependency>
1010
<dependentAssembly dependencyType="install" codebase="DVDLogo.exe.manifest" size="9847">
11-
<assemblyIdentity name="DVDLogo.exe" version="1.0.0.0" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
11+
<assemblyIdentity name="DVDLogo.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
1212
<hash>
1313
<dsig:Transforms>
1414
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
1515
</dsig:Transforms>
1616
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
17-
<dsig:DigestValue>YM8XDaNUmqNUy9/Nd3cwr0au09YTIs7pbvGfJwUvs/s=</dsig:DigestValue>
17+
<dsig:DigestValue>hTMP1nXjx/Qu51C6T46Bjm3wswvkB6x8uTKVAHxGqmY=</dsig:DigestValue>
1818
</hash>
1919
</dependentAssembly>
2020
</dependency>

‎DVDLogo/obj/x86/Debug/DVDLogo.exe

1 KB
Binary file not shown.

‎DVDLogo/obj/x86/Debug/DVDLogo.exe.manifest

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
3-
<asmv1:assemblyIdentity name="DVDLogo.exe" version="1.0.0.0" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
3+
<asmv1:assemblyIdentity name="DVDLogo.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="neutral" processorArchitecture="x86" type="win32" />
44
<description asmv2:iconFile="Icon.ico" xmlns="urn:schemas-microsoft-com:asm.v1" />
55
<application />
66
<entryPoint>
@@ -31,14 +31,14 @@
3131
</dependentAssembly>
3232
</dependency>
3333
<dependency>
34-
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DVDLogo.exe" size="38880">
34+
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="DVDLogo.exe" size="39904">
3535
<assemblyIdentity name="DVDLogo" version="1.0.0.0" language="neutral" processorArchitecture="x86" />
3636
<hash>
3737
<dsig:Transforms>
3838
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
3939
</dsig:Transforms>
4040
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
41-
<dsig:DigestValue>IuUWPvpJhDcRf3KlOnC2gc1NwJ9ZEMOAeAG5knIEU2k=</dsig:DigestValue>
41+
<dsig:DigestValue>aSWnpUoCnfD6Gv947H1Ym9CnxgaRhDNUTPaGDu3F2zg=</dsig:DigestValue>
4242
</hash>
4343
</dependentAssembly>
4444
</dependency>
@@ -138,13 +138,13 @@
138138
</hash>
139139
</dependentAssembly>
140140
</dependency>
141-
<file name="Content\Logo.xnb" size="35157">
141+
<file name="Content\Logo.xnb" size="52189">
142142
<hash>
143143
<dsig:Transforms>
144144
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
145145
</dsig:Transforms>
146146
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
147-
<dsig:DigestValue>kLzm9Hoe+kqV4OqLWUTvsRVBqimU5c7hxe4j3Q6X+z0=</dsig:DigestValue>
147+
<dsig:DigestValue>Pw2uWnXp9ZPPo2+4ixSlQ7VbNTWcsP7yeClQojlV1PE=</dsig:DigestValue>
148148
</hash>
149149
</file>
150150
<file name="Icon.ico" size="30222">

‎DVDLogo/obj/x86/Debug/DVDLogo.pdb

2 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.