-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort out assets for wp & add about and settings pages
- Loading branch information
Showing
19 changed files
with
1,383 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<Page | ||
x:Class="Pyramid2000.About" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:Pyramid2000" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> | ||
|
||
<Grid x:Name="LayoutRoot"> | ||
|
||
<Grid.ChildrenTransitions> | ||
<TransitionCollection> | ||
<EntranceThemeTransition/> | ||
</TransitionCollection> | ||
</Grid.ChildrenTransitions> | ||
|
||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="*"/> | ||
</Grid.RowDefinitions> | ||
|
||
<!-- Title Panel --> | ||
<StackPanel Grid.Row="0" Margin="19,0,0,0"> | ||
<TextBlock Text="PYRAMID 2000" Style="{ThemeResource TitleTextBlockStyle}" Margin="0,12,0,0"/> | ||
<TextBlock Text="about" Margin="0,-6.5,0,26.5" Style="{ThemeResource HeaderTextBlockStyle}" CharacterSpacing="{ThemeResource PivotHeaderItemCharacterSpacing}"/> | ||
</StackPanel> | ||
|
||
<!--TODO: Content should be placed within the following grid--> | ||
<Grid Grid.Row="1" x:Name="ContentRoot" Margin="19,9.5,19,0"> | ||
<TextBlock TextWrapping="Wrap" | ||
Style="{ThemeResource BodyTextBlockStyle}">Pyramid 2000<LineBreak/>Build 1.0.0.0<LineBreak/> | ||
<LineBreak/>This app is an emulator/interpreter for a 'classic' text adventure game originally released for the Radio Shack Model I Computer. | ||
<LineBreak/> | ||
<LineBreak/>Pyramid 2000 was written by Robert Arnstein and released by Radio Shack in 1979. | ||
<LineBreak/> | ||
<LineBreak/>This project would not have been possible without the information and code found on Christopher Cantrell's website: | ||
<LineBreak/>http://www.computerarcheology.com | ||
<LineBreak/> | ||
<LineBreak/>You can find a wealth of information about this game including a walk through solution on Sean Murphy's website: | ||
<LineBreak/>http://www.figmentfly.com | ||
</TextBlock> | ||
</Grid> | ||
</Grid> | ||
</Page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
using Pyramid2000.Common; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Windows.Graphics.Display; | ||
using Windows.UI.ViewManagement; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Controls.Primitives; | ||
using Windows.UI.Xaml.Data; | ||
using Windows.UI.Xaml.Input; | ||
using Windows.UI.Xaml.Media; | ||
using Windows.UI.Xaml.Navigation; | ||
|
||
// The Basic Page item template is documented at http://go.microsoft.com/fwlink/?LinkID=390556 | ||
|
||
namespace Pyramid2000 | ||
{ | ||
/// <summary> | ||
/// An empty page that can be used on its own or navigated to within a Frame. | ||
/// </summary> | ||
public sealed partial class About : Page | ||
{ | ||
private NavigationHelper navigationHelper; | ||
private ObservableDictionary defaultViewModel = new ObservableDictionary(); | ||
|
||
public About() | ||
{ | ||
this.InitializeComponent(); | ||
|
||
this.navigationHelper = new NavigationHelper(this); | ||
this.navigationHelper.LoadState += this.NavigationHelper_LoadState; | ||
this.navigationHelper.SaveState += this.NavigationHelper_SaveState; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the <see cref="NavigationHelper"/> associated with this <see cref="Page"/>. | ||
/// </summary> | ||
public NavigationHelper NavigationHelper | ||
{ | ||
get { return this.navigationHelper; } | ||
} | ||
|
||
/// <summary> | ||
/// Gets the view model for this <see cref="Page"/>. | ||
/// This can be changed to a strongly typed view model. | ||
/// </summary> | ||
public ObservableDictionary DefaultViewModel | ||
{ | ||
get { return this.defaultViewModel; } | ||
} | ||
|
||
/// <summary> | ||
/// Populates the page with content passed during navigation. Any saved state is also | ||
/// provided when recreating a page from a prior session. | ||
/// </summary> | ||
/// <param name="sender"> | ||
/// The source of the event; typically <see cref="NavigationHelper"/> | ||
/// </param> | ||
/// <param name="e">Event data that provides both the navigation parameter passed to | ||
/// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and | ||
/// a dictionary of state preserved by this page during an earlier | ||
/// session. The state will be null the first time a page is visited.</param> | ||
private void NavigationHelper_LoadState(object sender, LoadStateEventArgs e) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Preserves state associated with this page in case the application is suspended or the | ||
/// page is discarded from the navigation cache. Values must conform to the serialization | ||
/// requirements of <see cref="SuspensionManager.SessionState"/>. | ||
/// </summary> | ||
/// <param name="sender">The source of the event; typically <see cref="NavigationHelper"/></param> | ||
/// <param name="e">Event data that provides an empty dictionary to be populated with | ||
/// serializable state.</param> | ||
private void NavigationHelper_SaveState(object sender, SaveStateEventArgs e) | ||
{ | ||
} | ||
|
||
#region NavigationHelper registration | ||
|
||
/// <summary> | ||
/// The methods provided in this section are simply used to allow | ||
/// NavigationHelper to respond to the page's navigation methods. | ||
/// <para> | ||
/// Page specific logic should be placed in event handlers for the | ||
/// <see cref="NavigationHelper.LoadState"/> | ||
/// and <see cref="NavigationHelper.SaveState"/>. | ||
/// The navigation parameter is available in the LoadState method | ||
/// in addition to page state preserved during an earlier session. | ||
/// </para> | ||
/// </summary> | ||
/// <param name="e">Provides data for navigation methods and event | ||
/// handlers that cannot cancel the navigation request.</param> | ||
protected override void OnNavigatedTo(NavigationEventArgs e) | ||
{ | ||
this.navigationHelper.OnNavigatedTo(e); | ||
} | ||
|
||
protected override void OnNavigatedFrom(NavigationEventArgs e) | ||
{ | ||
this.navigationHelper.OnNavigatedFrom(e); | ||
} | ||
|
||
#endregion | ||
} | ||
} |
Binary file modified
BIN
-302 KB
(1.4%)
Pyramid2000/Pyramid2000.WindowsPhone/Assets/Logo.scale-240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-26.6 KB
(3.3%)
Pyramid2000/Pyramid2000.WindowsPhone/Assets/SmallLogo.scale-240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.87 MB
(0.42%)
Pyramid2000/Pyramid2000.WindowsPhone/Assets/SplashScreen.scale-240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-67.1 KB
(2.3%)
Pyramid2000/Pyramid2000.WindowsPhone/Assets/Square71x71Logo.scale-240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-34 KB
(3.4%)
Pyramid2000/Pyramid2000.WindowsPhone/Assets/StoreLogo.scale-240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-307 KB
(1.4%)
Pyramid2000/Pyramid2000.WindowsPhone/Assets/WideLogo.scale-240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.