11 Games and Content Session 4.1. Session Overview  Show how games are made up of program code and content  Find out about the content management system.

Slides:



Advertisements
Similar presentations
Chapter 1: Introduction. Contents Whats New in Dreamweaver CS4? The Dreamweaver CS4 Interface Setting Up a Site Creating a Web Page Adding Text to Your.
Advertisements

Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
InDesign CS3 Lesson 3 Working with Frames. Using Frames Frames are containers in which you place graphics or text. Frames can also be used as graphic.
WEB DESIGNING Prof. Jesse A. Role Ph. D TM UEAB 2010.
1 ADVANCED MICROSOFT POWERPOINT Lesson 7 – Working with Visual and Sound Objects Microsoft Office 2003: Advanced.
Using Journal and Other Tablet PC Tools. Outcomes Software  Intro to Sticky Notes  Intro to Ink Desktop  Intro to using Windows Journal Tools and uses.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Microsoft Office Illustrated Fundamentals Unit B: Understanding File Management.
Creating a MagicInfo Pro Screen Template
Created in 2011 at Liberty High School. Getting Started Overview on Magnet Tool – Graphics – Text – Image – Video – Sound – Wall A Sample Glog How to.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Getting started with Microsoft.NET Gadgeteer Comberton Village College Gadgeteer Club.
CHAPTER 1 XNA Game Studio 4.0. Your First Project A computer game is not just a program—it is also lots of other bits and pieces that make playing the.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
A First Program Using C#
Ch 26 & 27 User Interfaces.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Topics Introduction Hardware and Software How Computers Store Data
CHAPTER 4 Images XNA Game Studio 4.0. Objectives Find out how the Content Manager lets you add pictures to Microsoft XNA games. Discover how pictures.
1 Web Basics Section 1.1 Compare the Internet and the Web Compare Web sites and Web pages Identify Web browser components Describe types of Web sites Section.
Getting Started with Application Software
2009 Low Impact Development Design Competition Team Identification Number Must Be On Title Page Please remember that submittals are to be anonymous. Do.
11 A First Game Program Session Session Overview  Begin the creation of an arcade game  Learn software design techniques that apply to any form.
Exploring Your Desktop To run presentation, please click on bottom arrow to right to change to next frame.
With Windows 7 Introductory© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 Windows 7 Introductory Chapter 2 Managing Libraries Folders, Files.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
Developing the Game User Interface (UI) Lesson 5.
11 Adding Sounds Session 7.1. Session Overview  Find out how to capture and manipulate sound on a Windows PC  Show how sound is managed as an item of.
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
Presented by Graduate Design Group 2 Meredith, Jennifer, Cammay and Diane.
Active-HDL Interfaces Debugging C Code Course 10.
BIL528 – Bilgisayar Programlama II Introduction 1.
Chapter 5 Organizing Files and Folders. 2Practical PC 5 th Edition Chapter 5 Getting Started In this Chapter, you will learn: − How to get a list of your.
Using Xcode A Beginner’s Tutorial Erin Green. This tutorial will walk you through Xcode, a software development tool for Apple’s iOS applications – We.
11 Working with Images Session Session Overview  Find out more about image manipulation and scaling when drawing using XNA  Start to implement.
XNA An Introduction. What XNA is… Microsoft® XNA™ is composed of industry- leading software, services, resources, and communities focused on enabling.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
11 Making a Sprite Session 4.2. Session Overview  Describe the principle of a game sprite, and see how to create a sprite in an XNA game  Learn more.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Prepared by: Steve Teo Contributors: Tong Huu Khiem.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
The desktop (overview) Working with desktop icons The desktop is the main screen area that you see after you turn on your computer and log on to Windows.
Microsoft Visual Basic 2005 BASICS Lesson 3 Events and Code.
11 Writing Text Session 5.1. Session Overview  Show how fonts are managed in computers  Discover the difference between bitmap fonts and vector fonts.
Photoshop Actions Lights, Camera, Actions in Photoshop.
11 Debugging Programs Session Session Overview  Create and test a method to calculate percentages  Discover how to use Microsoft Visual Studio.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
11 Computers, C#, XNA, and You Session 1.1. Session Overview  Find out what computers are all about ...and what makes a great programmer  Discover.
XNA Tutorial 1 For CS134 Lecture. Overview Some of the hard work has already been done for you. If you build and run your game now, the GraphicsDeviceManager.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Understanding Web-Based Digital Media Production Methods, Software, and Hardware Objective
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
1 CS 106 Computing Fundamentals II Chapter 85 “Excel Tables” Herbert G. Mayer, PSU CS status 6/14/2013 Initial content copied verbatim from CS 106 material.
Windows 7 and file management
Chapter 2 – Introduction to the Visual Studio .NET IDE
MonoGame and Windows 8.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Topics Introduction Hardware and Software How Computers Store Data
Microsoft Office Illustrated Fundamentals
Presentation transcript:

11 Games and Content Session 4.1

Session Overview  Show how games are made up of program code and content  Find out about the content management system in XNA  Discover how content is integrated with XNA Game Studio and an XNA program  Add some content to an XNA Game Studio project  Show how games are made up of program code and content  Find out about the content management system in XNA  Discover how content is integrated with XNA Game Studio and an XNA program  Add some content to an XNA Game Studio project Chapter 4.1: Games and Content2

Games and Content  The first programs were nothing but code  They simply worked with text and numbers  The increasing power of computers made them capable of manipulating images and sounds  This ability was quickly incorporated into the software development process  Users now expect programs to have graphical icons to describe the way they are used  Such assets form a huge part of the gameplay  The first programs were nothing but code  They simply worked with text and numbers  The increasing power of computers made them capable of manipulating images and sounds  This ability was quickly incorporated into the software development process  Users now expect programs to have graphical icons to describe the way they are used  Such assets form a huge part of the gameplay Chapter 4.1: Games and Content3

Content Management in XNA  Content is such an important part of games that the XNA Framework provides a set of tools to manage it  These are often referred to as the “assets” of a game  Resources are managed by the XNA “Content Pipeline”  Raw resources go in at one end and appropriately formatted assets are produced for use by the game program during gameplay  When the game runs the Content Manager component of XNA it fetches content the game needs  Content is such an important part of games that the XNA Framework provides a set of tools to manage it  These are often referred to as the “assets” of a game  Resources are managed by the XNA “Content Pipeline”  Raw resources go in at one end and appropriately formatted assets are produced for use by the game program during gameplay  When the game runs the Content Manager component of XNA it fetches content the game needs Chapter 4.1: Games and Content4

Assets and the Content Pipeline  The Content Pipeline is there to process game content: 1. Artists create the raw content 2. This is given an asset identifier and stored in the Content Management framework 3. The game program loads the game asset and the Content Manager provides it during gameplay 4. The assets are encoded for storage as part of the game distributable  The Content Pipeline is there to process game content: 1. Artists create the raw content 2. This is given an asset identifier and stored in the Content Management framework 3. The game program loads the game asset and the Content Manager provides it during gameplay 4. The assets are encoded for storage as part of the game distributable Chapter 4.1: Games and Content5

XNA Content Manager  All content (sound, images, etc.) is treated the same way  Filters are provided to import the content into the game program  There are also filters to encode the content for storage as part of the game distributable  As an XNA programmer, you don’t have to worry about any of this  All content (sound, images, etc.) is treated the same way  Filters are provided to import the content into the game program  There are also filters to encode the content for storage as part of the game distributable  As an XNA programmer, you don’t have to worry about any of this Chapter 4.1: Games and Content6

Displaying a Picture  We are going to display a picture of Jake  The picture was taken with a digital camera and is in the.jpg format  We will consider other formats later  I adjusted the image size to suit the XNA display (800 x 600 pixels)  We are going to display a picture of Jake  The picture was taken with a digital camera and is in the.jpg format  We will consider other formats later  I adjusted the image size to suit the XNA display (800 x 600 pixels) Chapter 4.1: Games and Content7

Game Content and the Visual Studio Project  Visual Studio organizes all the files that make up a program project  This includes the actual program code and also the files containing any resources that the project needs  When a program is built, content of the project is prepared for use by the program when it runs  Content that is added to an XNA game is held within the Visual Studio Project for that game  Visual Studio organizes all the files that make up a program project  This includes the actual program code and also the files containing any resources that the project needs  When a program is built, content of the project is prepared for use by the program when it runs  Content that is added to an XNA game is held within the Visual Studio Project for that game Chapter 4.1: Games and Content8

1. Investigating an Empty Project Chapter 4.1: Games and Content9  Visual Studio creates and manages a number of folders which all hold parts of the game project  This includes a folder that contains the content for the game  Visual Studio creates and manages a number of folders which all hold parts of the game project  This includes a folder that contains the content for the game

Solutions and Projects  A project is a list of the things that are required to build that project  A solution is a list of projects that are required to build a particular program  A project is a list of the things that are required to build that project  A solution is a list of projects that are required to build a particular program Chapter 4.1: Games and Content10

The Visual Studio Solution Explorer  Visual Studio provides an explorer interface that lets you see the contents of solutions and projects  The Solution Explorer is normally in the top, right- hand corner of the Visual Studio display  There is an entry here for each of the project items  Visual Studio provides an explorer interface that lets you see the contents of solutions and projects  The Solution Explorer is normally in the top, right- hand corner of the Visual Studio display  There is an entry here for each of the project items Chapter 4.1: Games and Content11

Adding Resources to an XNA Game Project  Content can be added using the Context Menu in the Solution Explorer  Visual Studio can create new content or add existing content items  Content can be added using the Context Menu in the Solution Explorer  Visual Studio can create new content or add existing content items Chapter 4.1: Games and Content12

Browsing for Content Resources  You can browse for content the same way as for items in other programs  Selected resources are added to the project when you click Add  You can select multiple items by holding down the CTRL key  You can browse for content the same way as for items in other programs  Selected resources are added to the project when you click Add  You can select multiple items by holding down the CTRL key Chapter 4.1: Games and Content13

Sharing a Content Resource  If you want several games to share the same resources you can add a link to a resource  In this case the resource is not copied into the solution, instead the project file contains a link to the resource item  If you want several games to share the same resources you can add a link to a resource  In this case the resource is not copied into the solution, instead the project file contains a link to the resource item Chapter 4.1: Games and Content14

Added Content  When content is added the selected files are copied into the solution and the project is updated to refer to these items  Visual Studio maintains a content folder in the project which holds the content for the project  When content is added the selected files are copied into the solution and the project is updated to refer to these items  Visual Studio maintains a content folder in the project which holds the content for the project Chapter 4.1: Games and Content15

Content Properties  Visual Studio holds property information about items it is managing  For content items, the property information includes the type of the content and where it is stored  Visual Studio holds property information about items it is managing  For content items, the property information includes the type of the content and where it is stored Chapter 4.1: Games and Content16

2. Adding an Image Resource Chapter 4.1: Games and Content17  It is easy to add content to a project  The content is transferred to the target system when the game project is built  It is easy to add content to a project  The content is transferred to the target system when the game project is built

What Just Happened?  When we built the project, Visual Studio used the Content Manager to fetch the image resources and add them to the files that make up the program  These resources were then sent to the target device so that the XNA game can find them when it runs  At the moment the game does not draw anything however, because we have to add the code to do this  When we built the project, Visual Studio used the Content Manager to fetch the image resources and add them to the files that make up the program  These resources were then sent to the target device so that the XNA game can find them when it runs  At the moment the game does not draw anything however, because we have to add the code to do this Chapter 4.1: Games and Content18

Summary  An application is made up of much more than just a C# program  Visual Studio uses solutions and projects to manage all the items that make up an application  XNA Game Studio provides a Content Manager to import game content and prepare it for use in games  Game content is referred to by a Visual Studio project and can be held inside the project folders or a project can link to an external resource  An application is made up of much more than just a C# program  Visual Studio uses solutions and projects to manage all the items that make up an application  XNA Game Studio provides a Content Manager to import game content and prepare it for use in games  Game content is referred to by a Visual Studio project and can be held inside the project folders or a project can link to an external resource Chapter 4.1: Games and Content19

True/False Revision Quiz  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource.  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource. Chapter 4.1: Games and Content20

True/False Revision Quiz  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource.  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource. Chapter 4.1: Games and Content21

True/False Revision Quiz  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource.  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource. Chapter 4.1: Games and Content22

True/False Revision Quiz  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource.  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource. Chapter 4.1: Games and Content23

True/False Revision Quiz  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource.  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource. Chapter 4.1: Games and Content24

True/False Revision Quiz  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource.  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource. Chapter 4.1: Games and Content25

True/False Revision Quiz  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource.  Games are entirely made up of program code.  Visual Studio contains a Content Manager.  Images are processed by the Content Manager when they are added to a game.  Visual Studio projects contain solutions.  Image resources are held inside the project file in a game.  A game can only contain a single image resource. Chapter 4.1: Games and Content26