Skip to content

Commit

Permalink
added version number and copyright notice in game
Browse files Browse the repository at this point in the history
  • Loading branch information
Unknown committed May 25, 2020
1 parent 2ae259f commit 0a71deb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion I, Robot Emulator 2020/Content/menufont.spritefont
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics">
<Asset Type="Graphics:FontDescription">
<FontName>Atari</FontName>
<Size>26</Size>
<Size>24</Size>
<Spacing>9</Spacing>
<Style>Regular</Style>
<CharacterRegions>
Expand Down
18 changes: 18 additions & 0 deletions I, Robot Emulator 2020/Screens/MainMenuScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// along with this program.If not, see<https://www.gnu.org/licenses/>.

using GameManagement;
using Microsoft.Xna.Framework;

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

public override void Draw(GameTime gameTime)
{
base.Draw(gameTime);

SpriteBatch.Begin();
SpriteBatch.DrawString(
MenuFont,
$"v1.01 Copyright 2020 John Manfreda lordfrito@manfreda.org",
new Vector2(50, ScreenManager.GraphicsDevice.Viewport.Height - MenuFont.LineSpacing),
Color.CornflowerBlue,
0,
Vector2.Zero,
0.3F,
Microsoft.Xna.Framework.Graphics.SpriteEffects.None, 0);
SpriteBatch.End();
}

string SoundString => $"SOUND: {(Settings.SoundEnabled ? "ENABLED" : "DISABLED")}";

void SoundMenuSelected(object? sender, PlayerIndexEventArgs e)
Expand Down

0 comments on commit 0a71deb

Please sign in to comment.