1 / 15

A Games Class Using XNA Game Studio Express

A Games Class Using XNA Game Studio Express. Art Gittleman California State University Long Beach artg@csulb.edu. Goal. Enable students to program games with graphics and sound in both 2D and 3D given a one-term course students with various backgrounds

grant
Download Presentation

A Games Class Using XNA Game Studio Express

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Games Class Using XNA Game Studio Express Art Gittleman California State University Long Beach artg@csulb.edu

  2. Goal • Enable students to program games with graphics and sound in both 2D and 3D given • a one-term course • students with various backgrounds novice to experienced gamers perhaps some graphics or AI C++ or Java, but little C# (no problem) not artists or storytellers

  3. XNA Game Studio Express • Wraps DirectX in XNA API • Adds to Visual C# Express (free) • Requires graphics card supporting pixel shader model 1.1 or above (at least 2.0, really). Cards later than 2003 should work. • See http://xnamatrix.com/xnareq.php for a requirements checker. • Deploys to XBox 360 -- requires Creators Club membership -- $99/yr,49/4 mo

  4. Graphics Graphics API DirectX (Microsoft) OpenGL (Cross-platform) DirectX more popular for games. Managed DirectX allows use of C# and .NET rather than C++ Still a lot to learn. Difficult in one term to achieve objective. XNA makes it simpler.

  5. XNA code templates Game class • Initialize Called once • LoadGraphicsContent Once each refresh • Update Game logic every 1/60 sec. • Draw Renders objects

  6. Resources (Overview) • XNA Documentation -- tutorials, examples • XNA Development – tutorials, 2D games • Creators Club Online – Main XNA site • Riemer’s XNA Tutorials – Dozens, 3D • My class site

  7. XNA Documentation • Getting Started -- simple examples moving sprites • Programming Guide – Basics - loading content, drawing, camera, model, BasicEffect, sound Graphics 2D – draw, rotate, scale, scroll 3D – draw triangles, shaders (color,light)

  8. XNA Development • Excellent 2D tutorials and games http://www.xnadevelopment.com/index.shtml Jellies A Plenty The Wizard Falling Blocks You Move to Make Lines Drive Fast and Dodge the Oncoming Obstacles

  9. Creators Club Online XNA Team Site • http://creators.xna.com/ • Download XNA, Games • Tutorials, Code examples New video tutorial – Make a game in 60 minutes create your own game: a top-down space shooter featuring 3D graphics, input, audio, collision, and scoring. (42 Minutes, 44.2 MB .WMV format)

  10. Riemer’s XNA Tutorials • Four series –terrain, flight simulator, higher-level shader language, advanced terrain. I did 2, 1, and 3 in that order. • Great intro to 3D games using XNA • He answers questions.

  11. http://www.cecs.csulb.edu/~artg/455/s07index.html • C# • XNA • Game Programming • Game Design • DirectX • OpenGL • Drawing Graphics

  12. XNA Books Professional XNA Game Programming for Xbox 360 and Windows Benjamin Nitschke Wrox (Wiley) 2007 He created Rocket Commander XNA and Racing Game, both available for Windows and Xbox 360. Other books to appear.

  13. Evaluation • Gaming is a huge subject – can be an entire major • Using XNA allows 2D and 3D game programming in one semester • C# no problem for C++ or Java programmers • Want to add more on game design • Just scratch the surface in 3D • Use existing 3D models or collaborate

More Related