Skip to content

Commit 0a71deb

Browse files
author
Unknown
committed
added version number and copyright notice in game
1 parent 2ae259f commit 0a71deb

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

I, Robot Emulator 2020/Content/menufont.spritefont

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
33
<Asset Type="Graphics:FontDescription">
44
<FontName>Atari</FontName>
5-
<Size>26</Size>
5+
<Size>24</Size>
66
<Spacing>9</Spacing>
77
<Style>Regular</Style>
88
<CharacterRegions>

I, Robot Emulator 2020/Screens/MainMenuScreen.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// along with this program.If not, see<https://www.gnu.org/licenses/>.
1616

1717
using GameManagement;
18+
using Microsoft.Xna.Framework;
1819

1920
namespace I_Robot
2021
{
@@ -37,6 +38,23 @@ public MainMenuScreen(ScreenManager screenManager)
3738
MenuItems.Add(new MenuItem("QUIT", QuitMenuSelected, 1));
3839
}
3940

41+
public override void Draw(GameTime gameTime)
42+
{
43+
base.Draw(gameTime);
44+
45+
SpriteBatch.Begin();
46+
SpriteBatch.DrawString(
47+
MenuFont,
48+
$"v1.01 Copyright 2020 John Manfreda [email protected]",
49+
new Vector2(50, ScreenManager.GraphicsDevice.Viewport.Height - MenuFont.LineSpacing),
50+
Color.CornflowerBlue,
51+
0,
52+
Vector2.Zero,
53+
0.3F,
54+
Microsoft.Xna.Framework.Graphics.SpriteEffects.None, 0);
55+
SpriteBatch.End();
56+
}
57+
4058
string SoundString => $"SOUND: {(Settings.SoundEnabled ? "ENABLED" : "DISABLED")}";
4159

4260
void SoundMenuSelected(object? sender, PlayerIndexEventArgs e)

0 commit comments

Comments
 (0)