• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Porting dei giochi windows phone realizzati con xna sul windows store con mono game
 

Porting dei giochi windows phone realizzati con xna sul windows store con mono game

on

  • 515 views

 

Statistics

Views

Total Views
515
Views on SlideShare
515
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • [MARCO]
  • [MARCO]

Porting dei giochi windows phone realizzati con xna sul windows store con mono game Porting dei giochi windows phone realizzati con xna sul windows store con mono game Presentation Transcript

  • Windows 8Games for WindowsVisual Studio 2010 Express for Windows PhoneVisual Studio 2012 for Windows Store Apps
  • GitHub for Windows https://github.com/mono/MonoGame https://github.com/CartBlanche/MonoGame-Samples
  • http://xbox.create.msdn.com/en-US/education/catalog/sample/simple_animation
  • using Windows.UI.Core;public enum WindowState { Full = 0, Snap1Quarter = 1, Snap3Quarter = 2 };public static class GameState{ public static WindowState _windowState; public static CoreWindow _window; public static Rect _windowsBounds; public static void Initialize() { _window = CoreWindow.GetForCurrentThread(); _windowState = WindowState.Full; _window.SizeChanged += _window_SizeChanged; } //called when the window is resized static void _window_SizeChanged(CoreWindow sender, WindowSizeChangedEventArgs args) { if (args.Size.Width == _windowsBounds.Width) _windowState = WindowState.Full; else if (args.Size.Width <= 320.00) _windowState = WindowState.Snap1Quarter; else _windowState = WindowState.Snap3Quarter; _windowsBounds.Height = args.Size.Height; _windowsBounds.Width = args.Size.Width; }}
  • using Windows.UI.Core;public static void Initialize(){ CoreApplication.Resuming += CoreApplication_Resuming; CoreApplication.Suspending += CoreApplication_Suspending; _window = CoreWindow.GetForCurrentThread(); _window.VisibilityChanged += _window_VisibilityChanged;}static void CoreApplication_Suspending(object sender, Windows.ApplicationModel.SuspendingEventArgs e){ // suspending, save appropriate game and user state (delayed)}static void CoreApplication_Resuming(object sender, object e){ // coming back from suspend, probably dont need to do anything as current state is in memory}void _window_VisibilityChanged(CoreWindow sender, VisibilityChangedEventArgs args){ // better save the state here}
  • http://www.windowsazure.com/en-us/develop/mobile/
  • https://github.com/timheuer/callisto
  • http://aka.ms/gamecomp