Researching the Visual_ Images, Objects, - Smith_ Philip D.pdf

(170 KB) Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
Objects and Interactions
These tables set out what each of the objects must do and the users of these behaviors.
BatSpriteStruct
Method
Description
Users
Loads the texture into the bat
BreadAndCheeseGame
LoadTexture
Calculates the bat size and
BreadAndCheeseGame
StartGame
positions it for the start of the
game
Draw
Draws the bat
BreadAndCheeseGame
Update
Updates the bat
BreadAndCheeseGame
CheckCollision Checks for collision with the bat
Ball
BallSpriteStruct
Method
Description
Users
LoadTexture
Loads the texture into the ball
BreadAndCheeseGame
StartGame
Calculates the ball size and
BreadAndCheeseGame
positions it for the start of the
game
Draws the ball
BreadAndCheeseGame
Draw
Updates the ball
BreadAndCheeseGame
Update
878454435.021.png 878454435.022.png 878454435.023.png 878454435.024.png 878454435.001.png 878454435.002.png 878454435.003.png 878454435.004.png 878454435.005.png 878454435.006.png 878454435.007.png 878454435.008.png 878454435.009.png 878454435.010.png 878454435.011.png 878454435.012.png 878454435.013.png
 
BreadAndCheeseGame
Method
Description
Users
LoseLife
Removes a life and reduces ends
Ball
the game if all the lives have
been used up.
Adds to the game score
Ball
UpdateScore
878454435.014.png 878454435.015.png 878454435.016.png 878454435.017.png 878454435.018.png 878454435.019.png 878454435.020.png
 
Zgłoś jeśli naruszono regulamin