SlideShare una empresa de Scribd logo
1 de 21
Cross platform
mobile gaming with
MonoGame
In 10 minutes!
• What is MonoGame?
• What can it do?
• How?
• Some examples!
@runegri NDC 2013 @runegri
Me
• Rune Andreas Grimstad
• Work at Capgemini, Trondheim
• Focus on .Net
• Programming since I was 8 years
old
• Love computer games!
@runegri NDC 2013 @runegri
MonoGame is
open source, cross-platform,
XNA
With MonoGame
you can
Write 2D-games
or 3D-games
that runs anywhere
MonoGame runs
everywhere
Windows, Mac, Linux
iOS, Android, Windows Phone,
WinRT
Raspberry Pi, Playstation
Vita
Getting started
... starting is easy
You need Visual Studio
• You need Visual Studio to compile
content
• The WP7 SDK or XNA Game Studio 4
• Xamarin.iOS and Xamarin.Android
• Win8 and the WP8 and WinRT SDKs
@runegri NDC 2013 @runegri
And some knowledge
• Based on XNA so there are many
tutorials
• Many frameworks for various game
types
• You will need to know some maths
– Vectors
– Matrices
@runegri NDC 2013 @runegri
Using MonoGame
The shortest how-to ever
The game loop
• Initialize – start here
• LoadContent – runs once
• Main game loop – runs forever
– Update, game logic, AI, handle input
– Draw, graphics here
• UnloadContent – if you need it
@runegri NDC 2013 @runegri
Some tips
• Focus on one platform first
– Then re-use the code after it is done
• Use abstractions for services
– Gps
– Accelerometer
– Camera
– Xamarin.Mobile can help
@runegri NDC 2013 @runegri
Some tips
• Think performance
– Try to re-use objects instead of
creating new ones
– Avoid reflection!
– Avoid LINQ
– Cache and pre-calculate what you can
• Don’t forget you good coding
practices
@runegri NDC 2013 @runegri
The final challenge
Finishing the game!
Some examples
What MonoGame can do
Bastion
@runegri NDC 2013 @runegri
• XNA on Xbox, MonoGame on Mac and
Linux
Fez
@runegri NDC 2013 @runegri
• XNA on Xbox, MonoGame on Windows
Skulls of the Shogun
@runegri NDC 2013 @runegri
• XNA on Xbox, MonoGame on Win8/RT,
WP8
Want to know more?
• Just ask!
– @runegri on twitter
– rag@rag.no
• I’m here for the rest of the
conference
@runegri NDC 2013 @runegri
Some resources
• The MonoGame website:
– monogame.net
• MonoGame sources:
– github.com/mono/MonoGame/
• XNA tutorials
– Just google for them :-)
@runegri NDC 2013 @runegri
Thanks to
• Fonts from Font Squirrel
– www.fontsquirrel.com
• Images from stock.xchng
– sxc.hu/
• MonoGame logo
– Monogame.net
• Screenshots from the games
– supergiantgames.com
– fezgame.com
– skullsoftheshogun.com
@runegri NDC 2013 @runegri

Más contenido relacionado

Similar a NDC2013 - Cross platform gaming with MonoGame

SignalR & WP8 Community day 2013
SignalR & WP8 Community day 2013SignalR & WP8 Community day 2013
SignalR & WP8 Community day 2013
Nico Vermeir
 

Similar a NDC2013 - Cross platform gaming with MonoGame (20)

Being a game developer with the skills you have
Being a game developer with the skills you haveBeing a game developer with the skills you have
Being a game developer with the skills you have
 
Droid con
Droid conDroid con
Droid con
 
Making A Game Engine Is Easier Than You Think
Making A Game Engine Is Easier Than You ThinkMaking A Game Engine Is Easier Than You Think
Making A Game Engine Is Easier Than You Think
 
Glimworm 21-11-2013
Glimworm 21-11-2013Glimworm 21-11-2013
Glimworm 21-11-2013
 
Microservices, the lean way - Bruno Bossola - Codemotion Amsterdam 2016
Microservices, the lean way - Bruno Bossola - Codemotion Amsterdam 2016Microservices, the lean way - Bruno Bossola - Codemotion Amsterdam 2016
Microservices, the lean way - Bruno Bossola - Codemotion Amsterdam 2016
 
Microservices, the lean way
Microservices, the lean wayMicroservices, the lean way
Microservices, the lean way
 
Game Development in VR
Game Development in VR Game Development in VR
Game Development in VR
 
Full stack development
Full stack developmentFull stack development
Full stack development
 
SignalR & WP8 Community day 2013
SignalR & WP8 Community day 2013SignalR & WP8 Community day 2013
SignalR & WP8 Community day 2013
 
Improving Cross Desktop Standard by Cedric BAIL (GNOME Asia Summit 2013)
Improving Cross Desktop Standard by Cedric BAIL (GNOME Asia Summit 2013)Improving Cross Desktop Standard by Cedric BAIL (GNOME Asia Summit 2013)
Improving Cross Desktop Standard by Cedric BAIL (GNOME Asia Summit 2013)
 
Unity: What does it take to port a browser title to mobiles
Unity: What does it take to port a browser title to mobilesUnity: What does it take to port a browser title to mobiles
Unity: What does it take to port a browser title to mobiles
 
Linux Alternative Softwares
Linux Alternative SoftwaresLinux Alternative Softwares
Linux Alternative Softwares
 
Flutter not yet another mobile cross-platform framework - i ox-kl19
Flutter   not yet another mobile cross-platform framework - i ox-kl19Flutter   not yet another mobile cross-platform framework - i ox-kl19
Flutter not yet another mobile cross-platform framework - i ox-kl19
 
Glimworm 21 11-13 (1)
Glimworm 21 11-13 (1)Glimworm 21 11-13 (1)
Glimworm 21 11-13 (1)
 
Castle Game Engine and the joy of making and using a custom game engine
Castle Game Engine and the joy  of making and using a custom game engineCastle Game Engine and the joy  of making and using a custom game engine
Castle Game Engine and the joy of making and using a custom game engine
 
Deploying Specter Desktop - Mechanism, not Policy
Deploying Specter Desktop - Mechanism, not PolicyDeploying Specter Desktop - Mechanism, not Policy
Deploying Specter Desktop - Mechanism, not Policy
 
Developing applications and games in Unity engine - Matej Jariabka, Rudolf Ka...
Developing applications and games in Unity engine - Matej Jariabka, Rudolf Ka...Developing applications and games in Unity engine - Matej Jariabka, Rudolf Ka...
Developing applications and games in Unity engine - Matej Jariabka, Rudolf Ka...
 
Drupal 3D - Intro to Using Web 3D with Drupal
Drupal 3D - Intro to Using Web 3D with DrupalDrupal 3D - Intro to Using Web 3D with Drupal
Drupal 3D - Intro to Using Web 3D with Drupal
 
Headless Android (Wearable DevCon 2014)
Headless Android (Wearable DevCon 2014)Headless Android (Wearable DevCon 2014)
Headless Android (Wearable DevCon 2014)
 
Hacking with ARM devices on Linux
Hacking with ARM devices on Linux Hacking with ARM devices on Linux
Hacking with ARM devices on Linux
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

NDC2013 - Cross platform gaming with MonoGame

  • 2. In 10 minutes! • What is MonoGame? • What can it do? • How? • Some examples! @runegri NDC 2013 @runegri
  • 3. Me • Rune Andreas Grimstad • Work at Capgemini, Trondheim • Focus on .Net • Programming since I was 8 years old • Love computer games! @runegri NDC 2013 @runegri
  • 4. MonoGame is open source, cross-platform, XNA
  • 5. With MonoGame you can Write 2D-games or 3D-games that runs anywhere
  • 6. MonoGame runs everywhere Windows, Mac, Linux iOS, Android, Windows Phone, WinRT Raspberry Pi, Playstation Vita
  • 8. You need Visual Studio • You need Visual Studio to compile content • The WP7 SDK or XNA Game Studio 4 • Xamarin.iOS and Xamarin.Android • Win8 and the WP8 and WinRT SDKs @runegri NDC 2013 @runegri
  • 9. And some knowledge • Based on XNA so there are many tutorials • Many frameworks for various game types • You will need to know some maths – Vectors – Matrices @runegri NDC 2013 @runegri
  • 11. The game loop • Initialize – start here • LoadContent – runs once • Main game loop – runs forever – Update, game logic, AI, handle input – Draw, graphics here • UnloadContent – if you need it @runegri NDC 2013 @runegri
  • 12. Some tips • Focus on one platform first – Then re-use the code after it is done • Use abstractions for services – Gps – Accelerometer – Camera – Xamarin.Mobile can help @runegri NDC 2013 @runegri
  • 13. Some tips • Think performance – Try to re-use objects instead of creating new ones – Avoid reflection! – Avoid LINQ – Cache and pre-calculate what you can • Don’t forget you good coding practices @runegri NDC 2013 @runegri
  • 16. Bastion @runegri NDC 2013 @runegri • XNA on Xbox, MonoGame on Mac and Linux
  • 17. Fez @runegri NDC 2013 @runegri • XNA on Xbox, MonoGame on Windows
  • 18. Skulls of the Shogun @runegri NDC 2013 @runegri • XNA on Xbox, MonoGame on Win8/RT, WP8
  • 19. Want to know more? • Just ask! – @runegri on twitter – rag@rag.no • I’m here for the rest of the conference @runegri NDC 2013 @runegri
  • 20. Some resources • The MonoGame website: – monogame.net • MonoGame sources: – github.com/mono/MonoGame/ • XNA tutorials – Just google for them :-) @runegri NDC 2013 @runegri
  • 21. Thanks to • Fonts from Font Squirrel – www.fontsquirrel.com • Images from stock.xchng – sxc.hu/ • MonoGame logo – Monogame.net • Screenshots from the games – supergiantgames.com – fezgame.com – skullsoftheshogun.com @runegri NDC 2013 @runegri