SlideShare ist ein Scribd-Unternehmen logo
1 von 11
XNA and MonoGame
WHAT'S IT ALL ABOUT?
What is XNA?
 Released in 2006
 Primary platform for Xbox Live Indie Games
 Windows Phone support Added in 2010
 Currently Supports
 Windows
 Windows 8
 Windows Phone 7+8
 Xbox 360
 No longer being actively developed :(
Why is it so great?
 Easy to use Libraries
 Content Management
 Quickly develop 2D sprite based games
 Power to create impressive full games
 Great as a first engine
 Doesn’t cost anything to get started!
 Publish your own games!
Games Created in XNA
MonoGame!
 Created to port XNA games to other platforms
 Open Source implementation of XNA
 Multi Platform Development
 Windows
 OSX iOS
 Android
 Linux
 PlayStation Suite
Games Using MonoGame
What does it offer?
 Visual Studio Templates
 Support for majority of XNA
 Easily port your XNA games
 Lots of sample code
 2D and 3D
 Networked
 Shades
The basics
 All games have a simple basic loop
 Initialise resources and Load Content
 Load all textures, sounds ect
 Repeatedly call:
 Update
 Update the scene, move objects, perform calculations
 Draw
 Draw everything to the Screen
Creating a Game
 We are going to create a simple animation in MonoGame
 This will cover:
 The basic game loop
 Loading in a texture
 Sprite positioning
 Tiny bit of logic
Demonstration
Basic programming in XNA
Questions?
 Questions?

Weitere ähnliche Inhalte

Was ist angesagt?

Microsoft Presentation
Microsoft PresentationMicrosoft Presentation
Microsoft Presentation
guest2dca42
 
Windows8 vs windows7 (2)
Windows8 vs windows7 (2)Windows8 vs windows7 (2)
Windows8 vs windows7 (2)
Vaibhav Rane
 

Was ist angesagt? (19)

windows7 vs windows8 ppt
windows7 vs windows8 ppt windows7 vs windows8 ppt
windows7 vs windows8 ppt
 
Window11
Window11Window11
Window11
 
Windows 10 overview
Windows 10 overviewWindows 10 overview
Windows 10 overview
 
Windows Operating System
Windows Operating SystemWindows Operating System
Windows Operating System
 
Windows 10 VDI Migration in real life - E2EVC Rome
Windows 10 VDI Migration in real life - E2EVC RomeWindows 10 VDI Migration in real life - E2EVC Rome
Windows 10 VDI Migration in real life - E2EVC Rome
 
Windows 10
Windows 10Windows 10
Windows 10
 
Windows 10 in 10 Minutes
Windows 10 in 10 MinutesWindows 10 in 10 Minutes
Windows 10 in 10 Minutes
 
Andrey Ivashentsev, Technical Evangelism Unit Lead, Microsoft
Andrey Ivashentsev, Technical Evangelism Unit Lead, Microsoft Andrey Ivashentsev, Technical Evangelism Unit Lead, Microsoft
Andrey Ivashentsev, Technical Evangelism Unit Lead, Microsoft
 
SteamOS di pa tapos
SteamOS di pa taposSteamOS di pa tapos
SteamOS di pa tapos
 
Comparison of Windows 7 & Windows 8
Comparison of Windows 7 & Windows 8Comparison of Windows 7 & Windows 8
Comparison of Windows 7 & Windows 8
 
Windows operating systems
Windows operating systemsWindows operating systems
Windows operating systems
 
Presentation1.GROUP2
Presentation1.GROUP2Presentation1.GROUP2
Presentation1.GROUP2
 
Installing Windows 10 in VirtualBox
Installing Windows 10 in VirtualBoxInstalling Windows 10 in VirtualBox
Installing Windows 10 in VirtualBox
 
Microsoft Presentation
Microsoft PresentationMicrosoft Presentation
Microsoft Presentation
 
windows
windowswindows
windows
 
Windows8 vs windows7 (2)
Windows8 vs windows7 (2)Windows8 vs windows7 (2)
Windows8 vs windows7 (2)
 
How to test drive development using Linux
How to test drive development using LinuxHow to test drive development using Linux
How to test drive development using Linux
 
Virtualbox
VirtualboxVirtualbox
Virtualbox
 
Features of windows
Features of windowsFeatures of windows
Features of windows
 

Andere mochten auch

Games with Win 8 Style by Neneng
Games with Win 8 Style by NenengGames with Win 8 Style by Neneng
Games with Win 8 Style by Neneng
Agate Studio
 
Madrid .NET Meetup: Microsoft open sources .NET!
Madrid .NET Meetup: Microsoft open sources .NET!Madrid .NET Meetup: Microsoft open sources .NET!
Madrid .NET Meetup: Microsoft open sources .NET!
Alfonso Garcia-Caro
 

Andere mochten auch (20)

Cross platform physics games - NDC 2014
Cross platform physics games - NDC 2014Cross platform physics games - NDC 2014
Cross platform physics games - NDC 2014
 
Cross-platform Game Dev w/ CocosSharp
Cross-platform Game Dev w/ CocosSharpCross-platform Game Dev w/ CocosSharp
Cross-platform Game Dev w/ CocosSharp
 
Games with Win 8 Style by Neneng
Games with Win 8 Style by NenengGames with Win 8 Style by Neneng
Games with Win 8 Style by Neneng
 
Flappy - Paris 2015
Flappy -  Paris 2015Flappy -  Paris 2015
Flappy - Paris 2015
 
.NET? MonoDroid Does
.NET? MonoDroid Does.NET? MonoDroid Does
.NET? MonoDroid Does
 
Multyplatform and mono part 2 - Matteo Nicolotti
Multyplatform and mono part 2 - Matteo Nicolotti Multyplatform and mono part 2 - Matteo Nicolotti
Multyplatform and mono part 2 - Matteo Nicolotti
 
Road to Success (July 1st) - Mobile Game Development Alternatives - Andrew Bu...
Road to Success (July 1st) - Mobile Game Development Alternatives - Andrew Bu...Road to Success (July 1st) - Mobile Game Development Alternatives - Andrew Bu...
Road to Success (July 1st) - Mobile Game Development Alternatives - Andrew Bu...
 
CocosSharp_XHackNight_07feb
CocosSharp_XHackNight_07febCocosSharp_XHackNight_07feb
CocosSharp_XHackNight_07feb
 
EastBay.NET - Introduction to MonoTouch
EastBay.NET - Introduction to MonoTouchEastBay.NET - Introduction to MonoTouch
EastBay.NET - Introduction to MonoTouch
 
Madrid .NET Meetup: Microsoft open sources .NET!
Madrid .NET Meetup: Microsoft open sources .NET!Madrid .NET Meetup: Microsoft open sources .NET!
Madrid .NET Meetup: Microsoft open sources .NET!
 
Introduction to CocosSharp
Introduction to CocosSharpIntroduction to CocosSharp
Introduction to CocosSharp
 
Gaming in Csharp
Gaming in CsharpGaming in Csharp
Gaming in Csharp
 
Generative Art Hands On with F#
Generative Art Hands On with F#Generative Art Hands On with F#
Generative Art Hands On with F#
 
Monogame and xna
Monogame and xnaMonogame and xna
Monogame and xna
 
Intro to Gaming- MonoGame/CocosSharp/UrhoSharp
Intro to Gaming- MonoGame/CocosSharp/UrhoSharpIntro to Gaming- MonoGame/CocosSharp/UrhoSharp
Intro to Gaming- MonoGame/CocosSharp/UrhoSharp
 
Tips & Tricks that every game developer should know
Tips & Tricks that every game developer should knowTips & Tricks that every game developer should know
Tips & Tricks that every game developer should know
 
Flappy bird game in c#
Flappy bird game in c#Flappy bird game in c#
Flappy bird game in c#
 
Ready, steady, cross platform games - ProgNet 2015
Ready, steady, cross platform games - ProgNet 2015Ready, steady, cross platform games - ProgNet 2015
Ready, steady, cross platform games - ProgNet 2015
 
Building a game in a day
Building a game in a dayBuilding a game in a day
Building a game in a day
 
Mobile F#un
Mobile F#unMobile F#un
Mobile F#un
 

Ähnlich wie Xna and mono game

iOS Game Development: When Cocoa Met Cocos...
iOS Game Development: When Cocoa Met Cocos...iOS Game Development: When Cocoa Met Cocos...
iOS Game Development: When Cocoa Met Cocos...
Joseph Ku
 
Game Development with Windows Phone 7
Game Development with Windows Phone 7Game Development with Windows Phone 7
Game Development with Windows Phone 7
Allan Mangune
 
Windows phone 7 xna
Windows phone 7 xnaWindows phone 7 xna
Windows phone 7 xna
Glen Gordon
 
So you (think you) want to work in video games
So you (think you) want to work in video gamesSo you (think you) want to work in video games
So you (think you) want to work in video games
Sven Charleer
 
Xbox one development kit
Xbox one development kitXbox one development kit
Xbox one development kit
rojizo frio
 
Unity 3D game engine seminar
Unity 3D game engine  seminarUnity 3D game engine  seminar
Unity 3D game engine seminar
NikhilThorat15
 
Gamingconsoles 090723101457-phpapp02
Gamingconsoles 090723101457-phpapp02Gamingconsoles 090723101457-phpapp02
Gamingconsoles 090723101457-phpapp02
rahulrawatagra
 

Ähnlich wie Xna and mono game (20)

Xna game development
Xna game developmentXna game development
Xna game development
 
Deakin
DeakinDeakin
Deakin
 
iOS Game Development: When Cocoa Met Cocos...
iOS Game Development: When Cocoa Met Cocos...iOS Game Development: When Cocoa Met Cocos...
iOS Game Development: When Cocoa Met Cocos...
 
Delta Engine Multiplatform Development Presentation 2011-05
Delta Engine Multiplatform Development Presentation 2011-05Delta Engine Multiplatform Development Presentation 2011-05
Delta Engine Multiplatform Development Presentation 2011-05
 
Delta Engine @ CeBit 2011
Delta Engine @ CeBit 2011Delta Engine @ CeBit 2011
Delta Engine @ CeBit 2011
 
Xna
XnaXna
Xna
 
10 Games Like Stardoll
10 Games Like Stardoll
10 Games Like Stardoll
10 Games Like Stardoll
 
Game Development with Windows Phone 7
Game Development with Windows Phone 7Game Development with Windows Phone 7
Game Development with Windows Phone 7
 
Gaming consoles !
Gaming consoles !Gaming consoles !
Gaming consoles !
 
Windows phone 7 xna
Windows phone 7 xnaWindows phone 7 xna
Windows phone 7 xna
 
Group research
Group researchGroup research
Group research
 
Windows Phone 7
Windows Phone 7Windows Phone 7
Windows Phone 7
 
XNA and Windows Phone
XNA and Windows PhoneXNA and Windows Phone
XNA and Windows Phone
 
So you (think you) want to work in video games
So you (think you) want to work in video gamesSo you (think you) want to work in video games
So you (think you) want to work in video games
 
Game industry
Game industry Game industry
Game industry
 
Xbox one development kit
Xbox one development kitXbox one development kit
Xbox one development kit
 
Unity 3D game engine seminar
Unity 3D game engine  seminarUnity 3D game engine  seminar
Unity 3D game engine seminar
 
Xbox 360
Xbox 360Xbox 360
Xbox 360
 
Gaming Consoles
Gaming ConsolesGaming Consoles
Gaming Consoles
 
Gamingconsoles 090723101457-phpapp02
Gamingconsoles 090723101457-phpapp02Gamingconsoles 090723101457-phpapp02
Gamingconsoles 090723101457-phpapp02
 

Kürzlich hochgeladen

Dubai Call girls Service 0524076003 Call girls in Dubai
Dubai Call girls Service 0524076003 Call girls in DubaiDubai Call girls Service 0524076003 Call girls in Dubai
Dubai Call girls Service 0524076003 Call girls in Dubai
Monica Sydney
 
Deira Call girl agency 0567006274 Call girls in Deira
Deira Call girl agency 0567006274 Call girls in DeiraDeira Call girl agency 0567006274 Call girls in Deira
Deira Call girl agency 0567006274 Call girls in Deira
Monica Sydney
 
Models in Deira 0567006274 Deira Call girl Service
Models in Deira 0567006274 Deira Call girl ServiceModels in Deira 0567006274 Deira Call girl Service
Models in Deira 0567006274 Deira Call girl Service
Monica Sydney
 

Kürzlich hochgeladen (20)

Call Girls In Amreli Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service Enjoy...
Call Girls In Amreli Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service Enjoy...Call Girls In Amreli Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service Enjoy...
Call Girls In Amreli Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service Enjoy...
 
Badshah Nagar ] Call Girls Service Lucknow | Starting ₹,5K To @25k with A/C 9...
Badshah Nagar ] Call Girls Service Lucknow | Starting ₹,5K To @25k with A/C 9...Badshah Nagar ] Call Girls Service Lucknow | Starting ₹,5K To @25k with A/C 9...
Badshah Nagar ] Call Girls Service Lucknow | Starting ₹,5K To @25k with A/C 9...
 
Hire 💕 8617370543 Kushinagar Call Girls Service Call Girls Agency
Hire 💕 8617370543 Kushinagar Call Girls Service Call Girls AgencyHire 💕 8617370543 Kushinagar Call Girls Service Call Girls Agency
Hire 💕 8617370543 Kushinagar Call Girls Service Call Girls Agency
 
Unnao 💋 Call Girl 8617370543 Call Girls in unnao Escort service book now
Unnao 💋 Call Girl 8617370543 Call Girls in unnao Escort service book nowUnnao 💋 Call Girl 8617370543 Call Girls in unnao Escort service book now
Unnao 💋 Call Girl 8617370543 Call Girls in unnao Escort service book now
 
Call Girls Rajnandgaon / 9332606886 Genuine Call girls with real Photos and N...
Call Girls Rajnandgaon / 9332606886 Genuine Call girls with real Photos and N...Call Girls Rajnandgaon / 9332606886 Genuine Call girls with real Photos and N...
Call Girls Rajnandgaon / 9332606886 Genuine Call girls with real Photos and N...
 
Turbhe Female Escorts 09167354423 Turbhe Escorts,Call Girls In Turbhe
Turbhe Female Escorts 09167354423  Turbhe Escorts,Call Girls In TurbheTurbhe Female Escorts 09167354423  Turbhe Escorts,Call Girls In Turbhe
Turbhe Female Escorts 09167354423 Turbhe Escorts,Call Girls In Turbhe
 
Book ☎️ 8617370543 Call Girls in Bharuch and escort services 24x7
Book ☎️ 8617370543 Call Girls in Bharuch and escort services 24x7Book ☎️ 8617370543 Call Girls in Bharuch and escort services 24x7
Book ☎️ 8617370543 Call Girls in Bharuch and escort services 24x7
 
Call Girls In Gorakhpur Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
Call Girls In Gorakhpur Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...Call Girls In Gorakhpur Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
Call Girls In Gorakhpur Escorts ☎️8617370543 🔝 💃 Enjoy 24/7 Escort Service En...
 
Call girls Service Bellary - 9332606886 Rs 3000 Free Pickup & Drop Services 2...
Call girls Service Bellary - 9332606886 Rs 3000 Free Pickup & Drop Services 2...Call girls Service Bellary - 9332606886 Rs 3000 Free Pickup & Drop Services 2...
Call girls Service Bellary - 9332606886 Rs 3000 Free Pickup & Drop Services 2...
 
Deira call girls 0507330913 Call girls in Deira
Deira call girls 0507330913  Call girls in DeiraDeira call girls 0507330913  Call girls in Deira
Deira call girls 0507330913 Call girls in Deira
 
Call girls Service Khammam - 9332606886 Rs 3000 Free Pickup & Drop Services 2...
Call girls Service Khammam - 9332606886 Rs 3000 Free Pickup & Drop Services 2...Call girls Service Khammam - 9332606886 Rs 3000 Free Pickup & Drop Services 2...
Call girls Service Khammam - 9332606886 Rs 3000 Free Pickup & Drop Services 2...
 
Call girls Service Dombivli - 9332606886 Our call girls are sure to provide y...
Call girls Service Dombivli - 9332606886 Our call girls are sure to provide y...Call girls Service Dombivli - 9332606886 Our call girls are sure to provide y...
Call girls Service Dombivli - 9332606886 Our call girls are sure to provide y...
 
Dubai Call girls Service 0524076003 Call girls in Dubai
Dubai Call girls Service 0524076003 Call girls in DubaiDubai Call girls Service 0524076003 Call girls in Dubai
Dubai Call girls Service 0524076003 Call girls in Dubai
 
Hire 💕 8617370543 Auraiya Call Girls Service Call Girls Agency
Hire 💕 8617370543 Auraiya Call Girls Service Call Girls AgencyHire 💕 8617370543 Auraiya Call Girls Service Call Girls Agency
Hire 💕 8617370543 Auraiya Call Girls Service Call Girls Agency
 
Deira Call girl agency 0567006274 Call girls in Deira
Deira Call girl agency 0567006274 Call girls in DeiraDeira Call girl agency 0567006274 Call girls in Deira
Deira Call girl agency 0567006274 Call girls in Deira
 
Models in Deira 0567006274 Deira Call girl Service
Models in Deira 0567006274 Deira Call girl ServiceModels in Deira 0567006274 Deira Call girl Service
Models in Deira 0567006274 Deira Call girl Service
 
Bhubaneswar🌹Patia ❤CALL GIRLS 9777949614 💟 CALL GIRLS IN bhubaneswar ESCORT S...
Bhubaneswar🌹Patia ❤CALL GIRLS 9777949614 💟 CALL GIRLS IN bhubaneswar ESCORT S...Bhubaneswar🌹Patia ❤CALL GIRLS 9777949614 💟 CALL GIRLS IN bhubaneswar ESCORT S...
Bhubaneswar🌹Patia ❤CALL GIRLS 9777949614 💟 CALL GIRLS IN bhubaneswar ESCORT S...
 
Call Girls Kozhikode - 9332606886 Our call girls are sure to provide you with...
Call Girls Kozhikode - 9332606886 Our call girls are sure to provide you with...Call Girls Kozhikode - 9332606886 Our call girls are sure to provide you with...
Call Girls Kozhikode - 9332606886 Our call girls are sure to provide you with...
 
Call Girls Bijnor Just Call 8617370543 Top Class Call Girl Service Available
Call Girls Bijnor  Just Call 8617370543 Top Class Call Girl Service AvailableCall Girls Bijnor  Just Call 8617370543 Top Class Call Girl Service Available
Call Girls Bijnor Just Call 8617370543 Top Class Call Girl Service Available
 
Call Girls Bhubaneswar 9777949614 call me Independent Escort Service Bhubaneswar
Call Girls Bhubaneswar 9777949614 call me Independent Escort Service BhubaneswarCall Girls Bhubaneswar 9777949614 call me Independent Escort Service Bhubaneswar
Call Girls Bhubaneswar 9777949614 call me Independent Escort Service Bhubaneswar
 

Xna and mono game

  • 1. XNA and MonoGame WHAT'S IT ALL ABOUT?
  • 2. What is XNA?  Released in 2006  Primary platform for Xbox Live Indie Games  Windows Phone support Added in 2010  Currently Supports  Windows  Windows 8  Windows Phone 7+8  Xbox 360  No longer being actively developed :(
  • 3. Why is it so great?  Easy to use Libraries  Content Management  Quickly develop 2D sprite based games  Power to create impressive full games  Great as a first engine  Doesn’t cost anything to get started!  Publish your own games!
  • 5. MonoGame!  Created to port XNA games to other platforms  Open Source implementation of XNA  Multi Platform Development  Windows  OSX iOS  Android  Linux  PlayStation Suite
  • 7. What does it offer?  Visual Studio Templates  Support for majority of XNA  Easily port your XNA games  Lots of sample code  2D and 3D  Networked  Shades
  • 8. The basics  All games have a simple basic loop  Initialise resources and Load Content  Load all textures, sounds ect  Repeatedly call:  Update  Update the scene, move objects, perform calculations  Draw  Draw everything to the Screen
  • 9. Creating a Game  We are going to create a simple animation in MonoGame  This will cover:  The basic game loop  Loading in a texture  Sprite positioning  Tiny bit of logic

Hinweis der Redaktion

  1. Designed for lightweight game developmentIndependent developersGreat educational toolPrize for first person to tell me what it stands for.SupportsPCWindows 8 app storeWindows Phones storesXbox 360No longer being developed 
  2. Libraries are generally easy to follow and use for people new to developmentContent pipeline loads all of your textures and sounds fonts… Don’t have to mess around handling this.Games can be put together quickly Still has enough power to create successful games.Great as a first engine as a lot of people are taught C# as a first language.Free developer liscences and visual studio express.Students can publish their own games
  3. Great amazing successful games created in Xna over the years for variety of platformsSo what do we do now that they have stopped actively developing XNA?Magicka developed by 8 University Students – 200, 000 sales in first 17 daysFezFeatured on Indie Game the Movie, recommendInitially released on Xbox live arcade in 2012Lots of awardsTerraria Very popular steam game has been in top 10 since launchBastionReleased on loads of platformsIlomilo3 dimensional puzzler on Windows platforms
  4. Originally created to port games to other platforms Now the go to technology for continued XNA developmentIs great for multi platform development without huge amounts of code re-use
  5. Skulls of the ShogunTurn based strategy samurai gamePublished by Microsoft Studios and available across Windows platformsArmedturn based strategyflagshipInfinte flightiOS flight simulatorDraw a stickmanUsed monoGasme to release on iOS, Android and Windows 8
  6. Templates are really useful for starting up a quick project, constant between platformsMost common platforms support the majority of XNA so you can transfer your xna skills easilyEasy to port current vanilla XNA games to other platformsLots of sample code available to look through and see how things are done.
  7. Basic loopInit all content loaded variables set Inmitial state of gameRepeatedly call Update DrawAll Cartesian points originate from top left0,0 is at top left of screen and Y increases downwards.
  8. Basic Game, will coverBasic loopLoading a textureSprite PositioningTiny bit of logic.
  9. SCREEN width and HEIGHT SCREEN_WIDTH = _graphics.GraphicsDevice.Viewport.Width; SCREEN_HEIGHT = _graphics.GraphicsDevice.Viewport.Height;  1)ball variables (texture, pos, vel)Content Folder - drag in pngSet variables in initPosition = 200,200Velocity = -4, 0;Draw CodeBegin END!RUN!  6)Update Ball MethodRUN!  8) Ball bounceif (ballPosition.X < 0)ballVelocity.X = 4;RUNS - Awesome, now the other sideif (ballPosition.X > SCREEN_WIDTH)ballVelocity.X =- 4;11)RUN, why does it go off the screen?  File -> Add new Prject Windows PoneAdd content folder + image as linkDelete new Game1Add old one NOT AS LINKCHANGE namespace in Game1Set as startup projectSelect Device  Init SCREEN_WIDTH = _graphics.GraphicsDevice.Viewport.Width; SCREEN_HEIGHT = _graphics.GraphicsDevice.Viewport.Height; // TODO: Add your initialization logic hereballTexture = Content.Load<Texture2D>("redBall");ballPosition = new Vector2(200, 200);ballVelocity = new Vector2(-4, +4); UpdateBallballPosition += ballVelocity; //Sides if (ballPosition.X < 0)ballVelocity.X = 4; if (ballPosition.X > SCREEN_WIDTH - ballTexture.Width)ballVelocity.X = -4; //TOP and Bottom if (ballPosition.Y < 0)ballVelocity.Y = 4; if (ballPosition.Y > SCREEN_HEIGHT - ballTexture.Height)ballVelocity.Y = -4; Draw_spriteBatch.Begin(); _spriteBatch.Draw(ballTexture, ballPosition, Color.White); _spriteBatch.End();