Cross platformmobile gaming withMonoGame
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 yearsold• Love computer ...
MonoGame isopen source, cross-platform,XNA
With MonoGameyou canWrite 2D-gamesor 3D-gamesthat runs anywhere
MonoGame runseverywhereWindows, Mac, LinuxiOS, Android, Windows Phone,WinRTRaspberry Pi, PlaystationVita
Getting started... starting is easy
You need Visual Studio• You need Visual Studio to compilecontent• The WP7 SDK or XNA Game Studio 4• Xamarin.iOS and Xamari...
And some knowledge• Based on XNA so there are manytutorials• Many frameworks for various gametypes• You will need to know ...
Using MonoGameThe shortest how-to ever
The game loop• Initialize – start here• LoadContent – runs once• Main game loop – runs forever– Update, game logic, AI, ha...
Some tips• Focus on one platform first– Then re-use the code after it is done• Use abstractions for services– Gps– Acceler...
Some tips• Think performance– Try to re-use objects instead ofcreating new ones– Avoid reflection!– Avoid LINQ– Cache and ...
The final challengeFinishing the game!
Some examplesWhat MonoGame can do
Bastion@runegri NDC 2013 @runegri• XNA on Xbox, MonoGame on Mac andLinux
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 theconference@runegri NDC 2013 @r...
Some resources• The MonoGame website:– monogame.net• MonoGame sources:– github.com/mono/MonoGame/• XNA tutorials– Just goo...
Thanks to• Fonts from Font Squirrel– www.fontsquirrel.com• Images from stock.xchng– sxc.hu/• MonoGame logo– Monogame.net• ...
Upcoming SlideShare
Loading in …5
×

NDC2013 - Cross platform gaming with MonoGame

812 views

Published on

The slides from my lightning talk on NDC 2013.
It is a quick overview of what MonoGame is and how to get started using it.
Somehow the fonts are wrong, but the content is still there... :-)

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
812
On SlideShare
0
From Embeds
0
Number of Embeds
46
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

NDC2013 - Cross platform gaming with MonoGame

  1. 1. Cross platformmobile gaming withMonoGame
  2. 2. In 10 minutes!• What is MonoGame?• What can it do?• How?• Some examples!@runegri NDC 2013 @runegri
  3. 3. Me• Rune Andreas Grimstad• Work at Capgemini, Trondheim• Focus on .Net• Programming since I was 8 yearsold• Love computer games!@runegri NDC 2013 @runegri
  4. 4. MonoGame isopen source, cross-platform,XNA
  5. 5. With MonoGameyou canWrite 2D-gamesor 3D-gamesthat runs anywhere
  6. 6. MonoGame runseverywhereWindows, Mac, LinuxiOS, Android, Windows Phone,WinRTRaspberry Pi, PlaystationVita
  7. 7. Getting started... starting is easy
  8. 8. You need Visual Studio• You need Visual Studio to compilecontent• 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. 9. And some knowledge• Based on XNA so there are manytutorials• Many frameworks for various gametypes• You will need to know some maths– Vectors– Matrices@runegri NDC 2013 @runegri
  10. 10. Using MonoGameThe shortest how-to ever
  11. 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. 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. 13. Some tips• Think performance– Try to re-use objects instead ofcreating new ones– Avoid reflection!– Avoid LINQ– Cache and pre-calculate what you can• Don’t forget you good codingpractices@runegri NDC 2013 @runegri
  14. 14. The final challengeFinishing the game!
  15. 15. Some examplesWhat MonoGame can do
  16. 16. Bastion@runegri NDC 2013 @runegri• XNA on Xbox, MonoGame on Mac andLinux
  17. 17. Fez@runegri NDC 2013 @runegri• XNA on Xbox, MonoGame on Windows
  18. 18. Skulls of the Shogun@runegri NDC 2013 @runegri• XNA on Xbox, MonoGame on Win8/RT,WP8
  19. 19. Want to know more?• Just ask!– @runegri on twitter– rag@rag.no• I’m here for the rest of theconference@runegri NDC 2013 @runegri
  20. 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. 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

×