Jan112010

Jan112010 - UC Santa Cruz Computer Science Game Design CMPS...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Computer Science – Game Design UC Santa Cruz Click to edit Master subtitle style 11/10/10 CMPS 20: Game Design Experience XNA Game Studio January 12, 2010 Arnav Jhala Adapted from Jim Whitehead’s slides
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer Science – Game Design UC Santa Cruz 11/10/10 Announcements Session schedules being finalized Homework #1 (Hunt the Wumpus) Due Thursday, January 21 Detailed instructions will be up by tomorrow Project themes and timeline Check website frequently for updates Come for help with Homework #1, C#,
Background image of page 2
Computer Science – Game Design UC Santa Cruz 11/10/10 Imagine Cup Worldwide competition Microsoft sponsored Many categories, including game development Registration Feb 1 Multiple rounds – first round ends March 15 Games must use XNA Game Studio 3.0 Games must address contest theme
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer Science – Game Design UC Santa Cruz 11/10/10 Hunt the Wumpus A game where you move through a dodecahedron shaped map Each room is connected to three other rooms Shortest non-repeating path back to same point is five moves A dodecahedron Source: Wikipedia A flattened dodecahedron Source: More BASIC Computer Games www.atariarchives.org/morebasicgames/showpage.php? page=178
Background image of page 4
Computer Science – Game Design UC Santa Cruz 11/10/10 Hunt the Wumpus (cont’d) Turn based game Each turn, player moves or shoots a crooked arrow (up to five rooms) Three main types of obstacles Wumpus If awake, kills player if both in same room at end of turn “I smell a Wumpus” Pits (2 instances) Player falls in and dies “I feel a draft” Superbats Source: Best of Creative Computing, Vol. 1 www.atariarchives.org/bcc1/showpage.php?page=247
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer Science – Game Design UC Santa Cruz 11/10/10 Hunt the Wumpus (cont’d) Main challenges to the homework assignment Reading and parsing input How to represent game world How to represent each room How to represent the set of all the rooms You have a fixed number of them (20) How to represent connections in the map Each room has a number, and each room is connected to exactly three other rooms How to represent Wumpus, pits, bats Each is located in the game map
Background image of page 6
Computer Science – Game Design UC Santa Cruz 11/10/10 Hunt the Wumpus (cont’d) As a rule of thumb, in object oriented design: Nouns are represented as classes What are some of the nouns in Hunt the Wumpus? Verbs are methods on the classes What are some of the actions on the nouns? What can the player do? What can a Wumpus do?
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Computer Science – Game Design UC Santa Cruz 11/10/10 Console input in C# There are three methods for reading console input in C# ReadLine Read a line of input into a string ReadKey Read the next key pressed into ConsoleKeyInfo instance Provides access to whether ctrl, alt, shift were pressed
Background image of page 8
Computer Science – Game Design UC Santa Cruz 11/10/10 Console.ReadLine
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/10/2010 for the course CMPS 20 taught by Professor Jhala,a during the Winter '10 term at UCSC.

Page1 / 28

Jan112010 - UC Santa Cruz Computer Science Game Design CMPS...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online