SlideShare uma empresa 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

Mais conteúdo relacionado

Semelhante 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
 

Semelhante 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

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

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