{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This 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
Image of page 1

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

View Full Document Right 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#,
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
Image of page 3

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

View Full Document Right 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
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
Image of page 5

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

View Full Document Right 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
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?
Image of page 7

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

View Full Document Right 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
Image of page 8
Computer Science – Game Design UC Santa Cruz 11/10/10 Console.ReadLine ReadLine Program execution blocks until user
Image of page 9

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern