Horizontal Scrolling through Tileset Levels Game Design Experience Professor Jim Whitehead March 4, 2008 Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0.

Slides:



Advertisements
Similar presentations
Using Microsoft PowerPoint in the Classroom
Advertisements

Bring up the graph you want to copy. Click on the Format this page for printing icon. A new window without the left navigation or header information will.
CC SQL Utilities.
Introduction to Microsoft Access
1 Using the Notes Tool Revised Materials License Learn how to access Notes Using Notes Exporting Notes Importing Notes Printing Notes Searching.
Introduction to C# Properties, Arrays, Loops, Lists Game Design Experience Professor Jim Whitehead January 28, 2008 Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0.
2D Graphics in XNA Game Studio Express (Modeling a Class in UML) Game Design Experience Professor Jim Whitehead February 5, 2008 Creative Commons Attribution.
Particle Systems Final Exam Study Guide Game Design Experience Professor Jim Whitehead March 16, 2009 Creative Commons Attribution 3.0 (Except copyrighted.
Introduction to 3D in XNA Game Design Experience Professor Jim Whitehead February 27, 2009 Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0.
Backgrounds, Inheritance in GameMaker (BrickMania 1 of 2) Foundations of Interactive Game Design Professor Jim Whitehead January 28, 2008 Creative Commons.
Power Point Presentation - Advanced Julia J. Stahl Distributed System Specialist.
By: Zaiba Mustafa Copyright ©
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
TrendReader Standard 2 This generation of TrendReader Standard software utilizes the more familiar Windows format (“tree”) views of functions and file.
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.
Customizing forms and writing QuickBooks Letters Lesson 15.
I Can… Define basic file management and related terms Identify levels of a file system Identify and explain ways to view files in Windows OS Explain the.
Using Dreamweaver. Slide 1 Dreamweaver has 2 screens that do different things The Document window where you create your WebPages The Site window where.
© Commonwealth of Australia 2009 Using OneNote in the Classroom.
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.
Backgrounds, Inheritance in GameMaker (BrickMania 1 of 2) Foundations of Interactive Game Design Professor Jim Whitehead January 28, 2008 Creative Commons.
Welcome!. Print Options PDF Comma-Separated Values (CSV) Formatted Excel New Features in Analysis.
11 A First Game Program Session Session Overview  Begin the creation of an arcade game  Learn software design techniques that apply to any form.
Using ArcView GIS: Part 3 Learning more of the basics for ArcMap Using ArcMap Part 3.
Support.ebsco.com EBSCOhost Visual Search Tutorial.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 5 Working with Images Starting Out with Games & Graphics in.
Creating a Large Poster from a PowerPoint Presentation Margy Ingram Learning Technology Services University of Wisconsin-Stout Margy Ingram Learning Technology.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
© 2006 Formic Wednesday 7th November 2007 Formic Scoop Training Mikey Desai.
CC111 Lec7 : Visual Basic 1 Visual Basic(1) Lecture 7.
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.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
Return to Outline Copyright © 2011 by Maribeth H. Price 3-1 Labeling and annotation.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Getting Started with Fireworks A few tips: –Before you begin an assignment, be sure to create a folder on your drive for it. –If your canvas is checkered,
GIS + ADOBE ILLUSTRATOR
Spreadsheets the basics. Readings n As per Module 5.
CRSD Technology Training Tony Judice. Quick Access Toolbar – can be modifiedSave as… allows you to save the file to a different location and also as an.
Jake Mursell. This is me creating a simple box in Flash. To do this I clicked on the rectangle tool which is located on the left interface. Then all you.
Windows 95/NT/XP. What is Windows 95/NT/XP n A program that sets up an environment for you to work in on your computer, based on colorful pictures (icons)
Start with loading the picture Locate your camera’s USB cable –it looks something like this:
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 3 Windows File Management 1 Morrison / Wells / Ruffolo.
Unit 3: Text, Fields & Tables DT2510: Advanced CAD Methods.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Adding a Picture in ArcGIS. Getting Started Open ArcMap in ArcGIS Add shape files Find pictures on the web save in folder with shape files you added to.
Data Storage A Module of the CYC Course Computer Basics.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Introduction to EBSCOhost
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Exporting Data from PowerSchool
Short presentation title up to 2 lines
Short presentation title up to 2 lines
Introduction to Computer CC111
Introduction to Microsoft Access
Chapter 2 – Introduction to the Visual Studio .NET IDE
An Introduction to Computers and Visual Basic
An Introduction to Computers and Visual Basic
Intro to GML.
Welcome to E-Prime E-Prime refers to the Experimenter’s Prime (best) development studio for the creation of computerized behavioral research. E-Prime is.
An Introduction to Computers and Visual Basic
Introduction to EBSCOhost
Integrating Office 2013 Programs
Creating buttons in Fireworks
Presentation transcript:

Horizontal Scrolling through Tileset Levels Game Design Experience Professor Jim Whitehead March 4, 2008 Creative Commons Attribution 3.0 creativecommons.org/licenses/by/3.0

Announcements Weekly help session for CS 20 (C# and XNA Game Studio Express) ► Thursday, 4:30-7pm ► Engineering 2, room 399 (third floor, by elevators) ► Exchange ideas, tips, pointers ► Get assistance from TAs

Final Project Due Monday, March 10 ► In-class What to turn in ► First, build your project Build … Build Solution in Visual C# 2005 (or hit F6) Must not have compile errors ► Put code and executable on a CD-ROM or USB Drive Put entire file hierarchy for your project Go to Visual Studio 2005\Projects folder Copy over the entire tree for your project from this point Label it with game name, team name, team member names ► Create a simple manual Game name, team name, team member names 1-2 paragraphs of backstory Goal of the game Control scheme Cheat codes (if any) Screen shot would be nice Print this out, and also put on disk

Project status check Quick poll of the room to see how your projects are doing Would like to know ► What is currently working ► What more needs to get done before due date ► Any problems blocking your progress

Scrolling gameworlds Many games have a gameworld larger than the visible area on screen ► Permits level design Level design ► Pacing of challenge ► Creation of environment where gameplay takes place Usually convenient to use a level design tool ► Time consuming to write one of these One approach ► Use tiles to construct gameworld

Tile based gameworld A small number of tiles Combine to create game levels

Representing Tile Levels A bitmap image represents the tiles 0, 1, 2, 3, … … … 18, 19

Array Represents Which Tile Goes Where A two dimensional array ► Represents an entire game level ► worldInTiles[y, x] contains the number of a tile ► Look up tile in bitmap array Can use a tile editor to create a level ► Mappy editor ► Demonstration of mappy { {5, 6, 7}, { 25, 26, 27}, { 45, 46, 47} } +

Export Tileset Bitmap from Mappy Once your level has been created Export bitmap ► In Mappy, File … Export ► Select “Graphic blocks as picture (?.BMP)” ► Can select number of blocks per row For XNA, only affects how you perform lookup into bitmap ► Save, then move from Mappy’s “MAPS” folder into Visual Studio Project folder containing source files ► In Visual C# Express: in Solution View (right hand column) Right click project name Choose Add … Existing Item Select bitmap you just created ► Consider converting to PNG or JPG first Appears to work faster under Windows GIMP can do this

Export Game Level Array from Mappy In Mappy: File … Export as Text ► Enter filename ► Unselect “Colour map” ► Select “Map array(s)” ► Clear “Prefix with” field ► Select “2D format: a[y][x]” ► Resulting file stored in MAPS directory under Mappy

Drawing one tile in XNA Texture2D holds tileset bitmap 2D integer array holds game level array Find tile for position ► Tile = game_level_array[y, x]; Draw tile ► Create source and destination rectangles Source is tile in tileset bitmap Destination is on-screen location for the tile Draw current tile into spritebatch batch.Draw(tileset_bitmap, dest, source, Color.White);