XNA Game Studio 4.0.

Size: px
Start display at page:

Download "XNA Game Studio 4.0."

Transcription

1 Getting Started

2 XNA Game Studio 4.0 To download XNA Game Studio 4.0 itself, go to XNA Game Studio 4.0 needs the Microsoft Visual Studio 2010 development environment, XNA Game Studio 4.0 works with any of the following Microsoft Visual Studio 2010 products. Microsoft Visual Studio 2010 Express for Windows Phone Microsoft Visual C# 2010 Express Edition Microsoft Visual Studio 2010 Standard Edition Microsoft Visual Studio 2010 Professional Edition XNA Game Studio requires the Microsoft.NET Framework 4.0. The setup program for Microsoft Windows Phone Developer Tools installs the.net Framework if it is not installed already on your computer. You also can install the.net Framework from the Microsoft.NET Framework Developer Center.

3 High Dynamic Range (HDR) Rendering vs Reach IfyouseethismessagewhenattemptingtobuildanXNAgameit probably meansthat your graphics card does not support High Dynamic Range(HDR) rendering. You will need to change the properties/settings of your project by right-clicking the game project name and changing the Game Profile...

4 Additional Required Software Installed by Setup The XNA Game Studio setup program also installs the following required software: XNA Game Studio setup installs the DirectX runtime, which is required to use the XNA Framework Game API. XNA Game Studio Setup installs multiple versions of the Microsoft Cross-platform Audio Creation Tool(XACT). XNA Game Studio Setup installs Microsoft Games for Windows LIVE Redistributable, version This software provides support for various gamer services such as retrieving player preferences for local accounts, as well as programmatically displaying various LIVE Guide user interface screens.

5 Creating your First XNA Program Step 1: Select New Project, choose Visual C# from the Installed Templates list on the left and specify Windows Game (4.0). Give your project an appropriate name, such as FaceBall and then click OK.

6 Step 2: Test Run your program. You should see a new Windows Form appear with a light blue background (CornFlowerBlue). You should note that this window is not resizable. Before moving on, let's take a look at the automatically generated game code...

7 namespace FaceBall public class faceball : Microsoft.Xna.Framework.Game GraphicsDeviceManager graphics; SpriteBatch spritebatch; public faceball() graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; protected override void Initialize() base.initialize(); protected override void LoadContent() spritebatch = new SpriteBatch(GraphicsDevice); protected override void Update(GameTime gametime) if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) this.exit(); base.update(gametime); protected override void Draw(GameTime gametime) GraphicsDevice.Clear(Color.CornflowerBlue); base.draw(gametime); your game class inherits from the Microsoft.Xna.Framework.Game class Creates a new GraphicsDeviceManager and registers it to handle the configuration and management of the graphics device for the specified Game. Enables a group of sprites to be drawn using the same settings. Add your initialization logic here This method is called once at start of game and is where you should load your content. This is where you will update the state of your game. Update( ) is called once for each pass through the game loop. This is where you generate the display for the current frame. Draw( ) is called once for each pass through the game loop.

8 Step 3: Now you will associate "content" (such as sprite bitmaps) with your game project. Image, sound and other resources can be found in Resources (see Home Page). Download face.bmpand background.bmpand put them somewhere easy to find them such as on your desktop. Right-click FaceBallContentin Solution Explorer, choose Add Existing Item and then navigate to one of the bitmaps being added to content. Repeat for the other bitmap.

9 Step4:FaceBallisasimpledemo thatbouncesasmileyfacearoundinthegraphics displayregionofthegame. Thefollowingcodeisinserted atthetopoftheclass. Texture2D facetexture; Texture2D backgroundtexture; Vector2 faceposition; public int maxx, minx, maxy, miny; public int facevx = 5; public int facevy = 2; Step 5: Add code to the Initialize( ) method to set the min and max limits of graphics viewport. Viewport view = graphics.graphicsdevice.viewport; base.initialize(); maxx = view.width; minx = 0; maxy = view.height; miny = 0; faceposition.x = view.width / 2; faceposition.y = view.height / 2;

10 Step 6: Add code to the LoadContent( ) method to load the face and background bitmaps. facetexture = Content.Load<Texture2D>("face"); backgroundtexture = Content.Load<Texture2D>("background"); Step 7: Add code to the Update( ) method to keep the bouncing face inside the graphics viewport. faceposition.x += facevx; if (faceposition.x > maxx - facetexture.width) facevx *= -1; if (faceposition.x < minx) facevx *= -1; faceposition.y += facevy; if (faceposition.y > maxy - facetexture.height) facevy *= -1; if (faceposition.y < miny) facevy *= -1;

11 Step 8: Add code to the Draw( ) method to draw the background and the face in the current position. spritebatch.begin(); spritebatch.draw(backgroundtexture, new Rectangle(minX,minY,maxX,maxY),Color.White); spritebatch.draw(facetexture, faceposition, Color.White); spritebatch.end(); Note that the default transparency color in XNA is magenta (255,0,255). The background image is automatically stretched to fit size of the rectangle specified.

12 namespace FaceBall public class faceball : Microsoft.Xna.Framework.Game GraphicsDeviceManager graphics; SpriteBatch spritebatch; public faceball() graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; protected override void Initialize() base.initialize(); protected override void LoadContent() spritebatch = new SpriteBatch(GraphicsDevice); protected override void Update(GameTime gametime) if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed) this.exit(); base.update(gametime); FaceBall Code Summary protected override void Draw(GameTime gametime) GraphicsDevice.Clear(Color.CornflowerBlue); base.draw(gametime); Texture2D facetexture; Texture2D backgroundtexture; Vector2 faceposition; public int maxx, minx, maxy, miny; public int facevx = 5; public int facevy = 2; Viewport view = graphics.graphicsdevice.viewport; maxx = view.width; minx = 0; maxy = view.height; miny = 0; faceposition.x = view.width / 2; faceposition.y = view.height / 2; facetexture = Content.Load<Texture2D>("face"); backgroundtexture = Content.Load<Texture2D>("background"); faceposition.x += facevx; if (faceposition.x > maxx - facetexture.width) facevx *= -1; if (faceposition.x < minx) facevx *= -1; faceposition.y += facevy; if (faceposition.y > maxy - facetexture.height) facevy *= -1; if (faceposition.y < miny) facevy *= -1; spritebatch.begin(); spritebatch.draw(backgroundtexture, new Rectangle(minX, miny, maxx, maxy), Color.White); spritebatch.draw(facetexture, faceposition, Color.White); spritebatch.end();

13 Step 9: Run the program to verify correct operation.

GAME:IT Advanced. C# XNA Bouncing Ball First Game Part 1

GAME:IT Advanced. C# XNA Bouncing Ball First Game Part 1 GAME:IT Advanced C# XNA Bouncing Ball First Game Part 1 Objectives By the end of this lesson, you will have learned about and will be able to apply the following XNA Game Studio 4.0 concepts. Intro XNA

More information

XNA Workshop at CS&IT Symposium 7/11/11

XNA Workshop at CS&IT Symposium 7/11/11 XNA Workshop at CS&IT Symposium 7/11/11 Time 9:00 to 9:20 9:20 to 9:40 9:40 to 10:10 Mood Light 10:15 to 10:45 Manual Mood Light 10:50 to 11:20 Placing and Moving Image 11:25 to 11:45 Windows Phone Touch

More information

Unit 5 Test Review Name: Hour: Date: 1) Describe two ways we have used paint to help us as we studied images in monogame.

Unit 5 Test Review Name: Hour: Date: 1) Describe two ways we have used paint to help us as we studied images in monogame. Unit 5 Test Review Name: Hour: Date: Answer the following questions in complete sentences. 1) Describe two ways we have used paint to help us as we studied images in monogame. a) b) 2) Where do you DECLARE

More information

XNA (2D) Tutorial. Pong IAT410

XNA (2D) Tutorial. Pong IAT410 XNA (2D) Tutorial Pong IAT410 Creating a new project 1. From the Start Menu, click All Programs, then the Microsoft XNA Game Studio Express folder, and finally XNA Game Studio Express. 2. When the Start

More information

Creating a Role Playing Game with XNA Game Studio 3.0 Part 4 Adding the Action Screen and Tile Engine

Creating a Role Playing Game with XNA Game Studio 3.0 Part 4 Adding the Action Screen and Tile Engine Creating a Role Playing Game with XNA Game Studio 3.0 Part 4 Adding the Action Screen and Tile Engine To follow along with this tutorial you will have to have read the previous tutorials to understand

More information

Computer Games 2011 Selected Game Engines

Computer Games 2011 Selected Game Engines Computer Games 2011 Selected Game Engines Dr. Mathias Lux Klagenfurt University This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 libgdx features High-performance,

More information

A camera with a projection and view matrix

A camera with a projection and view matrix A camera with a projection and view matrix Drikus Kleefsman January 25, 2010 Keywords: Xna, world, projection, view, matrix Abstract The first thing you want to have in a 3d scene is a camera to look at

More information

Session 5.1. Writing Text

Session 5.1. Writing Text 1 Session 5.1 Writing Text Chapter 5.1: Writing Text 2 Session Overview Show how fonts are managed in computers Discover the difference between bitmap fonts and vector fonts Find out how to create font

More information

Visual C# 2010 Express

Visual C# 2010 Express Review of C# and XNA What is C#? C# is an object-oriented programming language developed by Microsoft. It is developed within.net environment and designed for Common Language Infrastructure. Visual C#

More information

IWKS 3400 Lab 3 1 JK Bennett

IWKS 3400 Lab 3 1 JK Bennett IWKS 3400 Lab 3 1 JK Bennett This lab consists of four parts, each of which demonstrates an aspect of 2D game development. Each part adds functionality. You will first just put a sprite on the screen;

More information

Collision Detection Concept

Collision Detection Concept Collision Detection Collision Detection Concept When two fireflies collide we tag them for removal and add an explosion to the blasts list. The position and velocity of the explosion is set to the average

More information

Slides adapted from 4week course at Cornell by Tom Roeder

Slides adapted from 4week course at Cornell by Tom Roeder Slides adapted from 4week course at Cornell by Tom Roeder Interactive Game loop Interactive Game Loop Core Mechanics Physics, AI, etc. Update() Input GamePad, mouse, keybard, other Update() Render changes

More information

Xna0118-The XNA Framework and. the Game Class

Xna0118-The XNA Framework and. the Game Class OpenStax-CNX module: m49509 1 Xna0118-The XNA Framework and * the Game Class R.G. (Dick) Baldwin This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 4.0 Abstract

More information

Developing Games with MonoGame*

Developing Games with MonoGame* Developing Games with MonoGame* By Bruno Sonnino Developers everywhere want to develop games. And why not? Games are among the best sellers in computer history, and the fortunes involved in the game business

More information

A Summoner's Tale MonoGame Tutorial Series. Chapter 9. Conversations Continued

A Summoner's Tale MonoGame Tutorial Series. Chapter 9. Conversations Continued A Summoner's Tale MonoGame Tutorial Series Chapter 9 Conversations Continued This tutorial series is about creating a Pokemon style game with the MonoGame Framework called A Summoner's Tale. The tutorials

More information

A Summoner's Tale MonoGame Tutorial Series. Chapter 3. Tile Engine and Game Play State

A Summoner's Tale MonoGame Tutorial Series. Chapter 3. Tile Engine and Game Play State A Summoner's Tale MonoGame Tutorial Series Chapter 3 Tile Engine and Game Play State This tutorial series is about creating a Pokemon style game with the MonoGame Framework called A Summoner's Tale. The

More information

XNA 4.0 RPG Tutorials. Part 3. Even More Core Game Components

XNA 4.0 RPG Tutorials. Part 3. Even More Core Game Components XNA 4.0 RPG Tutorials Part 3 Even More Core Game Components I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list

More information

A Summoner's Tale MonoGame Tutorial Series. Chapter 13. Leveling Up

A Summoner's Tale MonoGame Tutorial Series. Chapter 13. Leveling Up A Summoner's Tale MonoGame Tutorial Series Chapter 13 Leveling Up This tutorial series is about creating a Pokemon style game with the MonoGame Framework called A Summoner's Tale. The tutorials will make

More information

Slides built from Carter Chapter 10

Slides built from Carter Chapter 10 Slides built from Carter Chapter 10 Animating Sprites (textures) Images from wikipedia.org Animating Sprites (textures) Images from wikipedia.org Lets Add to Our XELibrary Going to add a CelAnimationManager

More information

A Summoner's Tale MonoGame Tutorial Series. Chapter 11. Battling Avatars

A Summoner's Tale MonoGame Tutorial Series. Chapter 11. Battling Avatars A Summoner's Tale MonoGame Tutorial Series Chapter 11 Battling Avatars This tutorial series is about creating a Pokemon style game with the MonoGame Framework called A Summoner's Tale. The tutorials will

More information

Compile and run the code. You should see an empty window, cleared to a dark purple color.

Compile and run the code. You should see an empty window, cleared to a dark purple color. IWKS 3400 LAB 10 1 JK Bennett This lab will introduce most of the techniques required to construct flight simulator style game. Our primary goal is to demonstrate various techniques in the MonoGame environment,

More information

2D Graphics in XNA Game Studio Express (Modeling a Class in UML)

2D Graphics in XNA Game Studio Express (Modeling a Class in UML) 2D Graphics in XNA Game Studio Express (Modeling a Class in UML) Game Design Experience Professor Jim Whitehead February 5, 2008 Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0 Announcements

More information

For efficiency, the graphics card will render objects as triangles Any polyhedron can be represented by triangles Other 3D shapes can be approximated

For efficiency, the graphics card will render objects as triangles Any polyhedron can be represented by triangles Other 3D shapes can be approximated By Chris Ewin For efficiency, the graphics card will render objects as triangles Any polyhedron can be represented by triangles Other 3D shapes can be approximated by triangles Source: Wikipedia Don t

More information

Computer Games 2012 Game Development

Computer Games 2012 Game Development Computer Games 2012 Game Development Dr. Mathias Lux Klagenfurt University This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 libgdx features High-performance, cross-platform

More information

Creating a Role Playing Game with XNA Game Studio 3.0 Part 7 Adding Sprites

Creating a Role Playing Game with XNA Game Studio 3.0 Part 7 Adding Sprites Creating a Role Playing Game with XNA Game Studio 3.0 Part 7 Adding Sprites To follow along with this tutorial you will have to have read the previous tutorials to understand much of what it going on.

More information

ICS3C/4C/3U/4U Unit 2 Workbook Selection: If Statement

ICS3C/4C/3U/4U Unit 2 Workbook Selection: If Statement Selection: If Statement Selection allows a computer to do different things based on the situation. The if statement checks if something is true and then runs the appropriate code. We will start learning

More information

Next, we re going to specify some extra stuff related to our window such as its size and title. Add this code to the Initialize method:

Next, we re going to specify some extra stuff related to our window such as its size and title. Add this code to the Initialize method: IWKS 3400 LAB 7 1 JK Bennett This lab will introduce you to how to create terrain. We will first review some basic principles of 3D graphics, and will gradually add complexity until we have a reasonably

More information

Eyes of the Dragon - XNA Part 33 Non-Player Character Conversations

Eyes of the Dragon - XNA Part 33 Non-Player Character Conversations Eyes of the Dragon - XNA Part 33 Non-Player Character Conversations I'm writing these tutorials for the XNA 4.0 framework. Even though Microsoft has ended support for XNA it still runs on all supported

More information

XNA 4.0 RPG Tutorials. Part 2. More Core Game Components

XNA 4.0 RPG Tutorials. Part 2. More Core Game Components XNA 4.0 RPG Tutorials Part 2 More Core Game Components I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of

More information

2D Graphics in XNA Game Studio Express (Plus, Random numbers in C#)

2D Graphics in XNA Game Studio Express (Plus, Random numbers in C#) 2D Graphics in XNA Game Studio Express (Plus, Random numbers in C#) Game Design Experience Professor Jim Whitehead January 16, 2009 Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0

More information

XNA 4.0 RPG Tutorials. Part 5. The Tile Engine - Part 2

XNA 4.0 RPG Tutorials. Part 5. The Tile Engine - Part 2 XNA 4.0 RPG Tutorials Part 5 The Tile Engine - Part 2 I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of tutorials

More information

Session 5.2. Creating Clocks

Session 5.2. Creating Clocks 1 Session 5.2 Creating Clocks Chapter 5.2: Creating Clocks 2 Session Overview Find out how to obtain and use the current date and time in a C# program using the DateTime type Discover how to extract a

More information

IWKS 3400 LAB 11 1 JK Bennett

IWKS 3400 LAB 11 1 JK Bennett IWKS 3400 LAB 11 1 JK Bennett This lab dives a little bit deeper into HLSL effects, particularly as they relate to lighting and shading. We will begin by reviewing some basic 3D principles, and then move

More information

Game1.cs class that derives (extends) Game public class Game1 : Microsoft.Xna.Framework.Game {..}

Game1.cs class that derives (extends) Game public class Game1 : Microsoft.Xna.Framework.Game {..} MonoGames MonoGames Basics 1 MonoGames descends from XNA 4, is a framework for developing C# games for Windows, Linux, Mac, Android systems. Visual Studio MonoGames projects will create: Program.cs class

More information

XNA 4.0 RPG Tutorials. Part 16. Quests and Conversations

XNA 4.0 RPG Tutorials. Part 16. Quests and Conversations XNA 4.0 RPG Tutorials Part 16 Quests and Conversations I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of

More information

A Summoner's Tale MonoGame Tutorial Series. Chapter 12. Battling Avatars Continued

A Summoner's Tale MonoGame Tutorial Series. Chapter 12. Battling Avatars Continued A Summoner's Tale MonoGame Tutorial Series Chapter 12 Battling Avatars Continued This tutorial series is about creating a Pokemon style game with the MonoGame Framework called A Summoner's Tale. The tutorials

More information

msdn Hands-On Lab 3D Game Development with XNA Framework Lab version: Last updated: 12/8/2010 Page 1

msdn Hands-On Lab 3D Game Development with XNA Framework Lab version: Last updated: 12/8/2010 Page 1 msdn Hands-On Lab 3D Game Development with XNA Framework Lab version: 1.0.0 Last updated: 12/8/2010 Page 1 CONTENTS OVERVIEW... 2 EXERCISE 1: BASIC XNA GAME STUDIO GAME WITH GAME STATE MANAGEMENT... 4

More information

Hands-On Lab. 3D Game Development with XNA Framework. Lab version: Last updated: 2/2/2011. Page 1

Hands-On Lab. 3D Game Development with XNA Framework. Lab version: Last updated: 2/2/2011. Page 1 Hands-On Lab 3D Game Development with XNA Framework Lab version: 1.0.0 Last updated: 2/2/2011 Page 1 CONTENTS OVERVIEW... 3 EXERCISE 1: BASIC XNA GAME STUDIO GAME WITH GAME STATE MANAGEMENT... 5 Task 1

More information

Hands-On Lab. 2D Game Development with XNA Framework. Lab version: Last updated: 2/2/2011. Page 1

Hands-On Lab. 2D Game Development with XNA Framework. Lab version: Last updated: 2/2/2011. Page 1 Hands-On Lab 2D Game Development with XNA Framework Lab version: 1.0.0 Last updated: 2/2/2011 Page 1 CONTENTS OVERVIEW... 3 EXERCISE 1: BASIC XNA FRAMEWORK GAME WITH GAME STATE MANAGEMENT... 4 General

More information

CMPS 20: Game Design Experience. January 14, 2010 Arnav Jhala

CMPS 20: Game Design Experience. January 14, 2010 Arnav Jhala CMPS 20: Game Design Experience January 14, 2010 Arnav Jhala foreach ( type identifier in array-or-collection ) { } Foreach Statement Iterates through all elements in an array, or collection type Creates

More information

Explain the significance of using a computer programming language. Describe the basic template of the Monogame framework.

Explain the significance of using a computer programming language. Describe the basic template of the Monogame framework. I can Explain the significance of using a computer programming language. Describe the basic template of the Monogame framework. A series of steps (actions) performed in a specific order Specifies The ACTIONS

More information

Bloom effect - before. Bloom effect - after. Postprocessing. Motion blur in Valve s Portal - roll

Bloom effect - before. Bloom effect - after. Postprocessing. Motion blur in Valve s Portal - roll Bloom effect - before Postprocessing Prof. Aaron Lanterman School of Electrical and Computer Engineering Georgia Institute of Technology 2 Bloom effect - after Motion blur in Valve s Portal - roll 3 http://www.valvesoftware.com/publications/2008/

More information

XNA 4.0 RPG Tutorials. Part 22. Reading Data

XNA 4.0 RPG Tutorials. Part 22. Reading Data XNA 4.0 RPG Tutorials Part 22 Reading Data I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of tutorials on

More information

How to Program a Primitive Twin-Stick Shooter in Monogame 3.4

How to Program a Primitive Twin-Stick Shooter in Monogame 3.4 How to Program a Primitive Twin-Stick Shooter in Monogame 3.4 This is a tutorial for making a basic twin-stick style shooter in C# using Monogame 3.4 and Microsoft Visual Studio. This guide will demonstrate

More information

DO NGHIEM AN RAPID ROLLER: A GAME FOR WINDOWS PHONE

DO NGHIEM AN RAPID ROLLER: A GAME FOR WINDOWS PHONE DO NGHIEM AN RAPID ROLLER: A GAME FOR WINDOWS PHONE Telecommunications and Technology 2012 2 VAASAN AMMATTIKORKEAKOULU UNIVERSITY OF APPLIED SCIENCES TELECOMMUNICATIONS AND TECHNOLOGY ABSTRACT Author Do

More information

Session A First Game Program

Session A First Game Program 1 Session 11.1 A First Game Program Chapter 11.1: A First Game Program 2 Session Overview Begin the creation of an arcade game Learn software design techniques that apply to any form of game development

More information

3D Graphics with XNA Game Studio 4.0

3D Graphics with XNA Game Studio 4.0 3D Graphics with XNA Game Studio 4.0 Create attractive 3D graphics and visuals in your XNA games Sean James BIRMINGHAM - MUMBAI 3D Graphics with XNA Game Studio 4.0 Copyright 2010 Packt Publishing All

More information

Creating a Role Playing Game with XNA Game Studio 3.0 Part 11 Creating a Textbox Control

Creating a Role Playing Game with XNA Game Studio 3.0 Part 11 Creating a Textbox Control Creating a Role Playing Game with XNA Game Studio 3.0 Part 11 Creating a Textbox Control To follow along with this tutorial you will have to have read the previous tutorials to understand much of what

More information

Course 3D_XNA: 3D-Computer Graphics with XNA Chapter C3: Drunken Tiger

Course 3D_XNA: 3D-Computer Graphics with XNA Chapter C3: Drunken Tiger 1 Course 3D_XNA: 3D-Computer Graphics with XNA Chapter C3: Drunken Tiger Copyright by V. Miszalok, last update: 10-01-2010 Project TigerRot1 Version 1: Minimum Version 2: In a Quadratic Resizable Window

More information

Michael C. Neel. XNA 3D Primer. Wiley Publishing, Inc. Updates, source code, and Wrox technical support at

Michael C. Neel. XNA 3D Primer. Wiley Publishing, Inc. Updates, source code, and Wrox technical support at Michael C. Neel XNA 3D Primer Wiley Publishing, Inc. Updates, source code, and Wrox technical support at www.wrox.com Contents Who Is This Book For? 1 3D Overview 2 Basic 3D Math 4 Right-Hand Rule 4 Working

More information

XNA 4.0 RPG Tutorials. Part 25. Level Editor Continued

XNA 4.0 RPG Tutorials. Part 25. Level Editor Continued XNA 4.0 RPG Tutorials Part 25 Level Editor Continued I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of tutorials

More information

XNA Development: Tutorial 6

XNA Development: Tutorial 6 XNA Development: Tutorial 6 By Matthew Christian (Matt@InsideGamer.org) Code and Other Tutorials Found at http://www.insidegamer.org/xnatutorials.aspx One of the most important portions of a video game

More information

Lab 1 Sample Code. Giuseppe Maggiore

Lab 1 Sample Code. Giuseppe Maggiore Lab 1 Sample Code Giuseppe Maggiore Preliminaries using Vertex = VertexPositionColor; First we define a shortcut for the type VertexPositionColor. This way we could change the type of Vertices used without

More information

Programs, Data, and Pretty Colors

Programs, Data, and Pretty Colors C02625228.fm Page 19 Saturday, January 19, 2008 8:36 PM Chapter 2 Programs, Data, and Pretty Colors In this chapter: Introduction...........................................................19 Making a Game

More information

Lab 3 Shadow Mapping. Giuseppe Maggiore

Lab 3 Shadow Mapping. Giuseppe Maggiore Lab 3 Shadow Giuseppe Maggiore Adding Shadows to the Scene First we need to declare a very useful helper object that will allow us to draw textures to the screen without creating a quad vertex buffer //

More information

Blending Equation Blend Factors & Mode Transparency Creating an Alpha Channel Using DX Tex Tool Render Semi-Transparent Objects.

Blending Equation Blend Factors & Mode Transparency Creating an Alpha Channel Using DX Tex Tool Render Semi-Transparent Objects. Overview Blending Blend Factors & Mode Transparency Creating an Alpha Channel Using DX Tex Tool Render Semi-Transparent Objects 305890 Spring 2014 5/27/2014 Kyoung Shin Park Blending Allows us to blend

More information

Windows Phone SDK 8.0 omogućuje kreiranje aplikacija za Windows Phone 8 and Windows Phone 7.5 uređaje. SDK 7.1

Windows Phone SDK 8.0 omogućuje kreiranje aplikacija za Windows Phone 8 and Windows Phone 7.5 uređaje. SDK 7.1 Igor Mirković SDK 8.0 Windows Phone SDK 8.0 omogućuje kreiranje aplikacija za Windows Phone 8 and Windows Phone 7.5 uređaje. SDK 7.1 Windows Phone SDK 7.1 i 7.1.1 omogućuju razvoj aplikacija za Windows

More information

A Summoner's Tale MonoGame Tutorial Series. Chapter 15. Saving Game State

A Summoner's Tale MonoGame Tutorial Series. Chapter 15. Saving Game State A Summoner's Tale MonoGame Tutorial Series Chapter 15 Saving Game State This tutorial series is about creating a Pokemon style game with the MonoGame Framework called A Summoner's Tale. The tutorials will

More information

Understanding XNA Framework Performance. Shawn Hargreaves Software Development Engineer XNA Community Game Platform Microsoft

Understanding XNA Framework Performance. Shawn Hargreaves Software Development Engineer XNA Community Game Platform Microsoft Understanding XNA Framework Performance Shawn Hargreaves Software Development Engineer XNA Community Game Platform Microsoft Contents Graphics Offload to the GPU Understand Xbox 360 system calls SpriteBatch,

More information

Windows Phone Recipes. A Problem-Solution Approach

Windows Phone Recipes. A Problem-Solution Approach Avoid the common pitfalls of Windows Phone programming with this concise recipe collection written specifically for the busy developer Windows Phone Recipes A Problem-Solution Approach Second Edition Fabio

More information

Programarea jocurilor in XNA Game Studio 3.0

Programarea jocurilor in XNA Game Studio 3.0 Programarea jocurilor in XNA Game Studio 3.0 Cătălin Zima Microsoft DirectX/XNA MVP catalinzima@gmail.com Cuprins Ce este XNA Game Studio? Instalare Anatomia unui joc XNA Framework Graphics, Audio, Math,

More information

BIM - ARCHITECTUAL PLAN VIEWPORTS

BIM - ARCHITECTUAL PLAN VIEWPORTS BIM - ARCHITECTUAL PLAN VIEWPORTS INTRODUCTION There are many uses for viewports in Vectorworks software. Viewports can display an entire drawing, as well as cropped views of a drawing. These views can

More information

XNA 4.0 RPG Tutorials. Part 24. Level Editor Continued

XNA 4.0 RPG Tutorials. Part 24. Level Editor Continued XNA 4.0 RPG Tutorials Part 24 Level Editor Continued I'm writing these tutorials for the new XNA 4.0 framework. The tutorials will make more sense if they are read in order. You can find the list of tutorials

More information

Course 3D_XNA: 3D-Computer Graphics with XNA Chapter C5: Dice with Texture

Course 3D_XNA: 3D-Computer Graphics with XNA Chapter C5: Dice with Texture Course 3D_XNA: 3D-Computer Graphics with XNA Chapter C5: Dice with Texture 1 XBox 360 Controller Project dice1 The Complete Code of Game1.cs The Complete Data of dice.x Experiments Copyright by V. Miszalok,

More information

the gamedesigninitiative at cornell university Lecture 14 2D Sprite Graphics

the gamedesigninitiative at cornell university Lecture 14 2D Sprite Graphics Lecture 14 Drawing Images Graphics Lectures SpriteBatch interface Coordinates and Transforms Drawing Perspective Camera Projections Drawing Primitives Color and Textures Polygons 2 Drawing Images Graphics

More information

Chapter 6 Reacting to Player Input

Chapter 6 Reacting to Player Input Chapter 6 Reacting to Player Input 6.1 Introduction In this chapter, we will show you how your game program can react to mouse clicks and button presses. In order to do this, we need a instruction called

More information

Course 3D_XNA: 3D-Computer Graphics with XNA Chapter C1: Moving Triangles

Course 3D_XNA: 3D-Computer Graphics with XNA Chapter C1: Moving Triangles Course 3D_XNA: 3D-Computer Graphics with XNA Chapter C1: Moving Triangles 1 Project triangle1 Game1, Initialize, Update, Draw Three triangles Hundred triangles Chaos Help Copyright by V. Miszalok, last

More information

Please go to the Riemer s 2D XNA Tutorial for C# by clicking on You are allowed to progress ahead of me by

Please go to the Riemer s 2D XNA Tutorial for C# by clicking on   You are allowed to progress ahead of me by 2D Shooter game- Part 2 Please go to the Riemer s 2D XNA Tutorial for C# by clicking on http://bit.ly/riemers2d You are allowed to progress ahead of me by reading and doing to tutorial yourself. I ll

More information

DigiPen Institute of Technology

DigiPen Institute of Technology DigiPen Institute of Technology Presents Session Four: Game Design Elements DigiPen Institute of Technology 5001 150th Ave NE, Redmond, WA 98052 Phone: (425) 558-0299 www.digipen.edu 2005 DigiPen (USA)

More information

Chapter 3: The keys to control

Chapter 3: The keys to control Chapter 3: The keys to control By Mike Fleischauer xna@return42.com Hosted at http://www.learnxna.com/pages/xnabook.aspx In this chapter we are going to learn the basics of controlling our games. We cover

More information

3D Apps 3D PDF Publisher for Revit

3D Apps 3D PDF Publisher for Revit 3D Apps 3D PDF Publisher for Revit Easy to Use Multiple Industry Uses Intelligent 3D Tagging 3D PDF Publisher Combined 2D & 3D Models User Guide Version 16.5 Export Selected Items or Whole Model Export

More information

Microsoft XNA and the 3DUI Framework

Microsoft XNA and the 3DUI Framework Microsoft XNA and the 3DUI Framework Lecture #3: XNA Paul Varcholik Joseph J. LaViola Jr. Introductions Paul Varcholik: pvarchol@ist.ucf.edu Technology Blog: www.bespokesoftware.org Software Visual Studio

More information

Computer Games 2014 Selected Game Engines

Computer Games 2014 Selected Game Engines Computer Games 2014 Selected Game Engines Dr. Mathias Lux Klagenfurt University This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 pixi.js Web based rendering engine

More information

Tutorial: Creating a Gem with code

Tutorial: Creating a Gem with code Tutorial: Creating a Gem with code This tutorial walks you through the steps to create a simple Gem with code, including using the Project Configurator to create an empty Gem, building the Gem, and drawing

More information

Eyes of the Dragon - XNA Part 37 Map Editor Revisited

Eyes of the Dragon - XNA Part 37 Map Editor Revisited Eyes of the Dragon - XNA Part 37 Map Editor Revisited I'm writing these tutorials for the XNA 4.0 framework. Even though Microsoft has ended support for XNA it still runs on all supported operating systems

More information

CS1020 Data Structures and Algorithms I

CS1020 Data Structures and Algorithms I Midterm AY2013/14 Semester 2 Data Structures and Algorithms I ANSWER SHEETS Answers included! INSTRUCTIONS TO CANDIDATES 1. This document consists of EIGHT (8) printed pages. 2. Fill in your Matriculation

More information

XNA Climate Game Project

XNA Climate Game Project XNA Climate Game Project R.S.Corradin (1634496) Contents Introduction... 3 Purpose... 3 XNA... 3 Requirements... 3 The climate game - Hierarchy... 5 The basics working with models, terrain and sky... 6

More information

A Summoner's Tale MonoGame Tutorial Series. Chapter 8. Conversations

A Summoner's Tale MonoGame Tutorial Series. Chapter 8. Conversations A Summoner's Tale MonoGame Tutorial Series Chapter 8 Conversations This tutorial series is about creating a Pokemon style game with the MonoGame Framework called A Summoner's Tale. The tutorials will make

More information

WW.IT-IQ Training & Solutions (PTY) LTD

WW.IT-IQ Training & Solutions (PTY) LTD GAMES DEVELOPMENT COURSE OUTLINES DURATION: 4 YEARS Course Modules Prerequisite Prerequisite Completing the Fundamentals of Programming Course Completing the Object Oriented Programming Course Initialization

More information

the gamedesigninitiative at cornell university Lecture 12 2D Animation

the gamedesigninitiative at cornell university Lecture 12 2D Animation Lecture 12 2D Animation Animation Basics: The FilmStrip Animation is a sequence of hand-drawn frames Smoothly displays action when change quickly Also called flipbook animation Arrange animation in a sprite

More information

Unit 17. Level 1/2 Unit 17 Multimedia Products Development

Unit 17. Level 1/2 Unit 17 Multimedia Products Development Unit 17 Level 1/2 Unit 17 Multimedia Products Development Unit 17 Outcomes A: Understand the uses and features of multimedia products. Know why individuals or organisations use multimedia products. Learn

More information

Instructions for writing Web Services using Microsoft.NET:

Instructions for writing Web Services using Microsoft.NET: Instructions for writing Web Services using Microsoft.NET: Pre-requisites: Operating System: Microsoft Windows XP Professional / Microsoft Windows 2000 Professional / Microsoft Windows 2003 Server.NET

More information

LibGDX Notes. Using BlueJ. LibGDX Notes

LibGDX Notes. Using BlueJ. LibGDX Notes LibGDX Notes These notes assume that you have a familiarity with Java programming. If you do program in Java you probably use an integrated development environment (IDE) already. There are many possible

More information

Voluntary Product Accessibility Template

Voluntary Product Accessibility Template Voluntary Product Accessibility Template The purpose of the Voluntary Product Accessibility Template is to assist Federal contracting officials in making preliminary assessments regarding the availability

More information

Introduction to OpenGL. CS 4620 Balazs Kovacs, 2014 Daniel Schroeder, 2013 Pramook Khungurn, 2012

Introduction to OpenGL. CS 4620 Balazs Kovacs, 2014 Daniel Schroeder, 2013 Pramook Khungurn, 2012 Introduction to OpenGL CS 4620 Balazs Kovacs, 2014 Daniel Schroeder, 2013 Pramook Khungurn, 2012 Introduction Show how to produce graphics using OpenGL Introduce our framework for OpenGL programming OpenGL

More information

CS4621/5621 Fall Computer Graphics Practicum Intro to OpenGL/GLSL

CS4621/5621 Fall Computer Graphics Practicum Intro to OpenGL/GLSL CS4621/5621 Fall 2015 Computer Graphics Practicum Intro to OpenGL/GLSL Professor: Kavita Bala Instructor: Nicolas Savva with slides from Balazs Kovacs, Eston Schweickart, Daniel Schroeder, Jiang Huang

More information

ACTIVITY 5 WORKING IN TOON BOOM STUDIO. Select color for the background

ACTIVITY 5 WORKING IN TOON BOOM STUDIO. Select color for the background ACTIVITY 5 Select color for the background ACTIVITY 5 Click the green plus sign to add a new color The new color appears at the bottom of the Colour Palette ACTIVITY 5 Double-click and rename the new color

More information

Index. Audio project AudioSupport class, 207 controls, 206 description, 206 GameState class, 209 goals, 206

Index. Audio project AudioSupport class, 207 controls, 206 description, 206 GameState class, 209 goals, 206 Index A Audio project AudioSupport class, 207 controls, 206 description, 206, 209 goals, 206 B BlowFish class, 245 BounceObject() function, 143 BubbleShot class, 231 C Chasers ChaserGameObject class, 117

More information

Creating a Role Playing Game with XNA Game Studio 3.0 Part 21 Adding a Custom Content Pipeline Processor and Importer

Creating a Role Playing Game with XNA Game Studio 3.0 Part 21 Adding a Custom Content Pipeline Processor and Importer Creating a Role Playing Game with XNA Game Studio 3.0 Part 21 Adding a Custom Content Pipeline Processor and Importer To follow along with this tutorial you will have to have read the previous tutorials

More information

Chapter 2: Into the 2 nd Dimension

Chapter 2: Into the 2 nd Dimension Chapter 2: Into the 2 nd Dimension By Mike Fleischauer xna@return42.com Hosted at http://www.learnxna.com/pages/xnabook.aspx So, in chapter one we covered how to get the basis of your game up and running.

More information

Building a Basic Application with DT Vision Foundry

Building a Basic Application with DT Vision Foundry Goal Building a Basic Application with DT Vision Foundry This tutorial demonstrates how to develop an inspection application with DT Vision Foundry machine vision software from Data Translation. You will

More information

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days 2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days Certification Exam This course will help you prepare for the following Microsoft Certified

More information

Creating a Role Playing Game with XNA Game Studio Part 50 Items - Part 4b

Creating a Role Playing Game with XNA Game Studio Part 50 Items - Part 4b Creating a Role Playing Game with XNA Game Studio Part 50 Items - Part 4b To follow along with this tutorial you will have to have read the previous tutorials to understand much of what it going on. You

More information

Word 2007: Flowcharts Learning guide

Word 2007: Flowcharts Learning guide Word 2007: Flowcharts Learning guide How can I use a flowchart? As you plan a project or consider a new procedure in your department, a good diagram can help you determine whether the project or procedure

More information

Game Programming with. presented by Nathan Baur

Game Programming with. presented by Nathan Baur Game Programming with presented by Nathan Baur What is libgdx? Free, open source cross-platform game library Supports Desktop, Android, HTML5, and experimental ios support available with MonoTouch license

More information

How to Render Architectural Desktop 2005 Objects

How to Render Architectural Desktop 2005 Objects How to Render Architectural Desktop 2005 Objects The procedure for assigning AccuRender materials to Architectural Desktop objects and layers is nearly identical to that of AutoCAD. The difference in assigning

More information

12/15/2008. All about Game Maker. Integrated Development Environment for 2D games Global idea

12/15/2008. All about Game Maker. Integrated Development Environment for 2D games Global idea Game Design 2008 Lecture 09 All about Game Maker Which is required for last assignment Integrated Development Environment for 2D games Global idea Simple to use, using drag-and-drop Still considerable

More information

Introduction to Design Patterns

Introduction to Design Patterns Introduction to Design Patterns First, what s a design pattern? a general reusable solution to a commonly occurring problem within a given context in software design It s not a finished design that can

More information

Creating a Title Block & Border Using Chief Architect. Architectural Design & Residential Construction Penncrest High School

Creating a Title Block & Border Using Chief Architect. Architectural Design & Residential Construction Penncrest High School Creating a Title Block & Border Using Chief Architect Architectural Design & Residential Construction Penncrest High School 2017-2018 Select New Layout to begin designing your Title Block. Note: Once the

More information

Chapter 2: From Graphics to Visualization

Chapter 2: From Graphics to Visualization Exercises for Chapter 2: From Graphics to Visualization 1 EXERCISE 1 Consider the simple visualization example of plotting a graph of a two-variable scalar function z = f (x, y), which is discussed in

More information