Download presentation
Presentation is loading. Please wait.
1
Building Memory… Notes from class on 4/4/07
2
The Game First understand what we are trying to build. Then, create a list of requirements/functionality for our game
3
B Section Functionality Display cards Cards have to be in pairs Face up/face down for cards Keep score / how many pairs player made User clicks on card or types something to select it
4
B Section Functionality How many cards can be clicked at one time? Player 1 / Player 2 – know how to switch Timer for game Difficulty levels
5
B Section Functionality Get rid of matching cards Shuffle cards Indicate match/no match Tell which player won
6
What do we do first? THINK!!!!!
7
What do we do first? Perhaps the more appropriate answer is design –Sketch a design for the user interface –Decide on what objects are needed for the game –Create a small UML for the relationships between those objects
8
What do we do first? More design issues –What happens when the user starts the game –How does the user interact with the game
9
What do we do first? All of these issues should be considered and will give us a place to begin creating our classes and building our relationships. While working on the project, we will often need to come back and re- design or further design different aspects of the game.
10
Separation We will note a separation of graphical concerns and what we will call our game engine. Getting the program to “look” a certain way will take time Getting the program to execute correctly will take some more of our time.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.