A Games Class Using XNA Game Studio Express Art Gittleman California State University Long Beach...

15
A Games Class Using A Games Class Using XNA Game Studio XNA Game Studio Express Express Art Gittleman Art Gittleman California State University California State University Long Beach Long Beach [email protected] [email protected]

Transcript of A Games Class Using XNA Game Studio Express Art Gittleman California State University Long Beach...

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

A Games Class Using A Games Class Using XNA Game Studio XNA Game Studio

ExpressExpressArt GittlemanArt Gittleman

California State University Long BeachCalifornia State University Long Beach

[email protected]@csulb.edu

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

• 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

GoalGoal

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

XNA Game Studio ExpressXNA 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

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

GraphicsGraphics

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.

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

XNA code templatesXNA code templates

Game class

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

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

Resources (Overview)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

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

XNA DocumentationXNA 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)

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

XNA DevelopmentXNA 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

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

Creators Club OnlineCreators 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)

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

Riemer’s XNA TutorialsRiemer’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.

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

http://www.cecs.csulb.edu/http://www.cecs.csulb.edu/~artg/455/s07index.html~artg/455/s07index.html

• C#

• XNA

• Game Programming

• Game Design

• DirectX

• OpenGL

• Drawing Graphics

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

XNA BooksXNA Books

Professional XNA Game Programmingfor Xbox 360 and WindowsBenjamin NitschkeWrox (Wiley) 2007

He created Rocket Commander XNAand Racing Game, both available for Windows and

Xbox 360.

Other books to appear.

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

EvaluationEvaluation

• 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